Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
        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]);
        }