Beispiel #1
0
 public override bool ResolveNames(LexicalScope scope)
 {
     if (scope != null)
     {
         declaration = scope.Resolve(name);
     }
     return(true);
 }
Beispiel #2
0
        public Declaration Resolve(string symbol)
        {
            Declaration local = ResolveHere(symbol);

            if (local != null)
            {
                return(local);
            }
            else if (parentScope != null)
            {
                return(parentScope.Resolve(symbol));
            }
            else
            {
                return(null);
            }
        }