/// <inheritdoc/> public TypeOrValue Analyze(ILocalScope Scope) { string name = Identifier.Contents; // TODO: handle types, functions and globals return(new TypeOrValue(Scope.GetLocal(name))); }
/// <inheritdoc/> public IValue GetLocal(string Name) { if (variableName == Name) { return(variable); } else { return(parentScope.GetLocal(Name)); } }