vala r1330 - in trunk: . vala vapigen
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1330 - in trunk: . vala vapigen
- Date: Thu, 1 May 2008 14:51:59 +0100 (BST)
Author: juergbi
Date: Thu May 1 13:51:58 2008
New Revision: 1330
URL: http://svn.gnome.org/viewvc/vala?rev=1330&view=rev
Log:
2008-05-01 Juerg Billeter <j bitron ch>
* vala/valacfgbuilder.vala:
* vala/valanullchecker.vala:
* vala/valasemanticanalyzer.vala:
* vala/valasymbolresolver.vala:
* vapigen/valagidlparser.vala:
Fix crash when using errordomain methods,
based on patch by Phil Housley, fixes bug 530537
Modified:
trunk/ChangeLog
trunk/vala/valacfgbuilder.vala
trunk/vala/valanullchecker.vala
trunk/vala/valasemanticanalyzer.vala
trunk/vala/valasymbolresolver.vala
trunk/vapigen/valagidlparser.vala
Modified: trunk/vala/valacfgbuilder.vala
==============================================================================
--- trunk/vala/valacfgbuilder.vala (original)
+++ trunk/vala/valacfgbuilder.vala Thu May 1 13:51:58 2008
@@ -114,6 +114,10 @@
en.accept_children (this);
}
+ public override void visit_error_domain (ErrorDomain ed) {
+ ed.accept_children (this);
+ }
+
public override void visit_method (Method m) {
if (m.body == null) {
return;
Modified: trunk/vala/valanullchecker.vala
==============================================================================
--- trunk/vala/valanullchecker.vala (original)
+++ trunk/vala/valanullchecker.vala Thu May 1 13:51:58 2008
@@ -77,6 +77,10 @@
en.accept_children (this);
}
+ public override void visit_error_domain (ErrorDomain ed) {
+ ed.accept_children (this);
+ }
+
public override void visit_field (Field f) {
f.accept_children (this);
}
Modified: trunk/vala/valasemanticanalyzer.vala
==============================================================================
--- trunk/vala/valasemanticanalyzer.vala (original)
+++ trunk/vala/valasemanticanalyzer.vala Thu May 1 13:51:58 2008
@@ -310,6 +310,10 @@
ev.accept_children (this);
}
+ public override void visit_error_domain (ErrorDomain ed) {
+ ed.accept_children (this);
+ }
+
public override void visit_delegate (Delegate d) {
d.accept_children (this);
}
Modified: trunk/vala/valasymbolresolver.vala
==============================================================================
--- trunk/vala/valasymbolresolver.vala (original)
+++ trunk/vala/valasymbolresolver.vala Thu May 1 13:51:58 2008
@@ -109,6 +109,14 @@
current_scope = current_scope.parent_scope;
}
+ public override void visit_error_domain (ErrorDomain ed) {
+ current_scope = ed.scope;
+
+ ed.accept_children (this);
+
+ current_scope = current_scope.parent_scope;
+ }
+
public override void visit_delegate (Delegate cb) {
current_scope = cb.scope;
Modified: trunk/vapigen/valagidlparser.vala
==============================================================================
--- trunk/vapigen/valagidlparser.vala (original)
+++ trunk/vapigen/valagidlparser.vala Thu May 1 13:51:58 2008
@@ -77,6 +77,10 @@
visit_type (en);
}
+ public override void visit_error_domain (ErrorDomain ed) {
+ visit_type (ed);
+ }
+
public override void visit_delegate (Delegate d) {
visit_type (d);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]