Exemple #1
0
 internal static object defined_in_current_scope(string id)
 {
     if (infos.InCurrentScope(Symbol.CreateSymbol(id)))
     {
         return(Get(id));
     }
     return(null);
 }
Exemple #2
0
        internal bool InCurrentScope(string ns, Symbol id)
        {
            IdentificationTable symbols = (IdentificationTable)namespaces [ns];

            if (symbols == null)
            {
                throw new Exception(ns + " does not exist");
            }

            return(symbols.InCurrentScope(id));
        }