class EmptyScope(object):
def lookup(self, name):
return None
-
+
empty_scope = EmptyScope()
def interpret_compiletime_options(optlist, optdict, type_env=None, type_args=()):
raise CompileError(node.pos, "Type not allowed here.")
else:
return (node.compile_time_value(empty_scope), node.pos)
-
+
if optlist:
optlist = [interpret(x, ix) for ix, x in enumerate(optlist)]
if optdict: