Example #1
0
        static IExpression ParseResolved(
            ITypedInstance typed,
            INamedExpressionTuple leftArguments,
            IEnumerator <TokenData> tokens,
            IContext context,
            ref bool done)
        {
            var result = new TypedReference {
                Range    = tokens.Current.Range,
                Type     = typed.Type,
                Instance = typed
            };

            if (!tokens.MoveNext())
            {
                done = true;
            }
            return(result);
        }
Example #2
0
 public void Add(ITypedInstance instance, ITypedValue value)
 {
     _locals.Add(instance, value);
 }
Example #3
0
 public ITypedValue this[ITypedInstance key] => _locals.Fetch(key, defaultValue: null);
Example #4
0
 ITypedValue ILocalValueScope.this[ITypedInstance key] => _local[key] ?? Parent?[key];