void StartInside() { cur_inside = new InsideInfo(); insides.Add(cur_inside); cur_nlc = cur_inside.Context; }
internal WrenchProvider (GraphBuilder gb, string basis, short id) : base (gb, basis) { namecontext = new NameLookupContext (); this.id = id; }
internal WrenchProvider(GraphBuilder gb, string basis, short id) : base(gb, basis) { namecontext = new NameLookupContext(); this.id = id; }
public BuildfileParser(StreamReader reader, string topsrc, string resource_subdir, string location_base, WrenchProvider wp, IWarningLogger log) { lexer = new BuildfileTokenizer(reader); this.topsrc = topsrc; this.resource_subdir = resource_subdir; this.location_base = location_base; this.wp = wp; this.log = log; cur_nlc = wp.NameContext; }
public BuildfileParser (StreamReader reader, string topsrc, string resource_subdir, string location_base, WrenchProvider wp, IWarningLogger log) { lexer = new BuildfileTokenizer (reader); this.topsrc = topsrc; this.resource_subdir = resource_subdir; this.location_base = location_base; this.wp = wp; this.log = log; cur_nlc = wp.NameContext; }
// blah public object Clone() { if (this.bm != null) { throw new InvalidOperationException(); } NameLookupContext clone = new NameLookupContext(); clone.nsqueue = new Dictionary <string, string> (nsqueue); clone.known_structs = new Dictionary <Type, StructureTemplate> (known_structs); clone.namespaces = new List <string> (namespaces); return(clone); }
internal bool DoFixup(NameLookupContext nlc, IWarningLogger log) { log.PushLocation(FullName); try { if (ResolveTemplate(nlc, log)) { return(true); } ApplyWaitTags(); // Now register our tags with the GraphBuilder GraphBuilder gb = (GraphBuilder)Owner.Owner; foreach (string tag in TagsWithValues) { if (gb.GetTagId(tag) < 0) { return(true); } } // Now make sure that all of our argument names are valid. Rule rinst = (Rule)Activator.CreateInstance(Rule); Dictionary <string, int> argmap = rinst.MakeArgNameMap(); foreach (string arg in ArgsWithDeps) { if (argmap.ContainsKey(arg)) { continue; } string s = String.Format("Argument `{0}' does not exist in rule " + "`{1}'", arg, Rule); log.Error(2024, s, null); return(true); } } finally { log.PopLocation(); } return(false); }
public InsideProviderLoader (string basis, NameLookupContext tmpl) : base (basis, null) { this.nlc = (NameLookupContext) tmpl.Clone (); }
public InsideProviderLoader(string basis, NameLookupContext tmpl) : base(basis, null) { this.nlc = (NameLookupContext)tmpl.Clone(); }
// blah public object Clone () { if (this.bm != null) throw new InvalidOperationException (); NameLookupContext clone = new NameLookupContext (); clone.nsqueue = new Dictionary<string,string> (nsqueue); clone.known_structs = new Dictionary<Type,StructureTemplate> (known_structs); clone.namespaces = new List<string> (namespaces); return clone; }
void FinishInside() { cur_nlc = wp.NameContext; }
public InsideInfo() { nlc = new NameLookupContext(); bases = new List <string> (); }
internal bool DoFixup (NameLookupContext nlc, IWarningLogger log) { log.PushLocation (FullName); try { if (ResolveTemplate (nlc, log)) return true; ApplyWaitTags (); // Now register our tags with the GraphBuilder GraphBuilder gb = (GraphBuilder) Owner.Owner; foreach (string tag in TagsWithValues) { if (gb.GetTagId (tag) < 0) return true; } // Now make sure that all of our argument names are valid. Rule rinst = (Rule) Activator.CreateInstance (Rule); Dictionary<string,int> argmap = rinst.MakeArgNameMap (); foreach (string arg in ArgsWithDeps) { if (argmap.ContainsKey (arg)) continue; string s = String.Format ("Argument `{0}' does not exist in rule " + "`{1}'", arg, Rule); log.Error (2024, s, null); return true; } } finally { log.PopLocation (); } return false; }
void FinishInside () { cur_nlc = wp.NameContext; }
void StartInside () { cur_inside = new InsideInfo (); insides.Add (cur_inside); cur_nlc = cur_inside.Context; }
public InsideInfo () { nlc = new NameLookupContext (); bases = new List<string> (); }