public virtual void GetScopedValues(LuatScript script, ref Dictionary <string, LuatValue> scopedValues) { LuatAstNodeBase parent = this.ParentNode as LuatAstNodeBase; if (null != parent) { parent.GetScopedValues(script, ref scopedValues); } }
public override void Invalidate(LuatScript script) { if (null == this.ResolvedValues[script]) { return; } // Add this expression to the needs-resolving list Database.Instance.AddUnresolvedExpression(script, this); // Drop the value this.ResolvedValues.Invalidate(script); // Propagate invalidation up the syntax tree LuatAstNodeBase parent = this.ParentNode as LuatAstNodeBase; if (null != parent) { parent.Invalidate(script); } }
public virtual IEnumerable <AutoCompleteItem> GetAutoCompleteList(LuatScript script, int offset) { LuatAstNodeBase parent = this.ParentNode as LuatAstNodeBase; return((null != parent) ? parent.GetAutoCompleteList(script, offset) : new AutoCompleteItem[0]); }