From 2042f2750fce14224fb30a846ad411d53b47c8e9 Mon Sep 17 00:00:00 2001 From: Juerg Billeter Date: Wed, 28 May 2008 17:05:40 +0000 Subject: Add dynamic symbols to scope instead of code context 2008-05-28 Juerg Billeter * vala/valacodecontext.vala: * vala/valascope.vala: * vala/valasemanticanalyzer.vala: Add dynamic symbols to scope instead of code context svn path=/trunk/; revision=1464 --- vala/valascope.vala | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vala/valascope.vala') diff --git a/vala/valascope.vala b/vala/valascope.vala index 21ff65355..73c085de1 100644 --- a/vala/valascope.vala +++ b/vala/valascope.vala @@ -38,6 +38,7 @@ public class Vala.Scope : Object { public weak Scope parent_scope { get; set; } private Map symbol_table; + private Gee.List anonymous_members; /** * Creates a new scope. @@ -66,6 +67,12 @@ public class Vala.Scope : Object { } symbol_table[(string) name] = sym; + } else { + if (anonymous_members == null) { + anonymous_members = new ArrayList (); + } + + anonymous_members.add (sym); } sym.owner = this; } -- cgit v1.2.1