public ArgumentVariable(int index, string name, LexicalScope parentScope, IChelaType type) : base(type, parentScope.GetModule()) { base.SetName(name); this.parentScope = parentScope; // Add the variable into the scope. this.index = index; parentScope.AddArgument(this); }
public LocalVariable(string name, LexicalScope parentScope, IChelaType type, bool pseudoLocal) : base(type, parentScope.GetModule()) { base.SetName(name); this.parentScope = parentScope; // Add the variable into this. this.isPseudoLocal = pseudoLocal; this.index = parentScope.AddLocal(this); this.argumentIndex = -1; this.position = null; // Check for generated locals. if(name.StartsWith("._gsym")) localType = LocalType.Generated; }
public LocalVariable(string name, LexicalScope parentScope, IChelaType type, bool pseudoLocal) : base(type, parentScope.GetModule()) { base.SetName(name); this.parentScope = parentScope; // Add the variable into this. this.isPseudoLocal = pseudoLocal; this.index = parentScope.AddLocal(this); this.argumentIndex = -1; this.position = null; // Check for generated locals. if (name.StartsWith("._gsym")) { localType = LocalType.Generated; } }