Пример #1
0
        public override complexVariableClass complexVariable(complexVariableClass context)
        {
            var scope = scopeChain(context.chain, context._this == null? indexed : indexed.Parent);

            if (context._this != null && scope == null && indexed.Parent != null)
            {
                scope = indexed.Parent;
            }

            BaseAHKNode retVal = null;

            switch (context.variable)
            {
            case variableClass o:
                o.extraInfo = scope;
                retVal      = variable(o);
                break;

            case dotUnwrapClass o:
                o.variableOrFunction.extraInfo = scope;
                retVal = variable((variableClass)o.variableOrFunction);
                break;
            }

            if (retVal == null)
            {
                return(null);
            }

            context.extraInfo = retVal.extraInfo;
            return(context);
        }
Пример #2
0
 public virtual string complexVariable(complexVariableClass context)
 {
     return(context.defaultValue);
 }
Пример #3
0
 public override complexVariableClass complexVariable(complexVariableClass context)
 {
     return(visitor.complexVariable(context));
 }