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); }
public void Add(ITypedInstance instance, ITypedValue value) { _locals.Add(instance, value); }
public ITypedValue this[ITypedInstance key] => _locals.Fetch(key, defaultValue: null);
ITypedValue ILocalValueScope.this[ITypedInstance key] => _local[key] ?? Parent?[key];