vala r2093 - in trunk: . gobject vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2093 - in trunk: . gobject vala
- Date: Sun, 30 Nov 2008 11:02:07 +0000 (UTC)
Author: juergbi
Date: Sun Nov 30 11:02:07 2008
New Revision: 2093
URL: http://svn.gnome.org/viewvc/vala?rev=2093&view=rev
Log:
2008-11-30 JÃrg Billeter <j bitron ch>
* vala/valadeclarationstatement.vala:
* vala/valasymbolresolver.vala:
* gobject/valaccodebasemodule.vala:
Separate visiting declaration from visiting declaration statement
Modified:
trunk/ChangeLog
trunk/gobject/valaccodebasemodule.vala
trunk/vala/valadeclarationstatement.vala
trunk/vala/valasymbolresolver.vala
Modified: trunk/gobject/valaccodebasemodule.vala
==============================================================================
--- trunk/gobject/valaccodebasemodule.vala (original)
+++ trunk/gobject/valaccodebasemodule.vala Sun Nov 30 11:02:07 2008
@@ -1266,6 +1266,8 @@
}
public override void visit_declaration_statement (DeclarationStatement stmt) {
+ stmt.declaration.accept (codegen);
+
stmt.ccodenode = stmt.declaration.ccodenode;
var local = stmt.declaration as LocalVariable;
Modified: trunk/vala/valadeclarationstatement.vala
==============================================================================
--- trunk/vala/valadeclarationstatement.vala (original)
+++ trunk/vala/valadeclarationstatement.vala Sun Nov 30 11:02:07 2008
@@ -54,13 +54,15 @@
this.declaration = declaration;
this.source_reference = source_reference;
}
-
+
public override void accept (CodeVisitor visitor) {
- declaration.accept (visitor);
-
visitor.visit_declaration_statement (this);
}
+ public override void accept_children (CodeVisitor visitor) {
+ declaration.accept (visitor);
+ }
+
public override bool check (SemanticAnalyzer analyzer) {
if (checked) {
return !error;
Modified: trunk/vala/valasymbolresolver.vala
==============================================================================
--- trunk/vala/valasymbolresolver.vala (original)
+++ trunk/vala/valasymbolresolver.vala Sun Nov 30 11:02:07 2008
@@ -323,6 +323,10 @@
unresolved_type.parent_node.replace_type (unresolved_type, resolve_type (unresolved_type));
}
+ public override void visit_declaration_statement (DeclarationStatement stmt) {
+ stmt.accept_children (this);
+ }
+
public override void visit_local_variable (LocalVariable local) {
local.accept_children (this);
if (local.variable_type is ReferenceType) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]