/// <inheritdoc/>
        public TypeOrValue Analyze(ILocalScope Scope)
        {
            string name = Identifier.Contents;

            // TODO: handle types, functions and globals
            return(new TypeOrValue(Scope.GetLocal(name)));
        }
Пример #2
0
 /// <inheritdoc/>
 public IValue GetLocal(string Name)
 {
     if (variableName == Name)
     {
         return(variable);
     }
     else
     {
         return(parentScope.GetLocal(Name));
     }
 }