src/basilisp/lang/compiler/parser.py
def __resolve_bare_symbol(
    ctx: ParserContext, form: sym.Symbol
) -> Union[MaybeClass, VarRef]:
    """Resolve a non-namespaced symbol into a Python name or a local
    Basilisp Var."""
    assert form.ns is None

    # Look up the symbol in the namespace mapping of the current namespace.
    v = ctx.current_ns.find(form)
    if v is not None:
        return VarRef(form=form, var=v, env=ctx.get_node_env())

    if "." in form.name:
        raise ParserException(
            "symbol names may not contain the '.' operator", form=form
        )

    munged = munge(form.name, allow_builtins=True)
    if munged in vars(builtins):
        return MaybeClass(
            form=form,
            class_=munged,
            target=vars(builtins)[munged],
            env=ctx.get_node_env(),
        )

    assert munged not in vars(ctx.current_ns.module)
    raise ParserException(
        f"unable to resolve symbol '{form}' in this context", form=form
    )
def __resolve_bare_symbol(
    ctx: ParserContext, form: sym.Symbol
) -> Union[MaybeClass, VarRef]:
    assert form.ns is None

    # Look up the symbol in the namespace mapping of the current namespace.
    v = ctx.current_ns.find(form)
    if v is not None:
        return VarRef(form=form, var=v, env=ctx.get_node_env())

    if "." in form.name:
        raise ParserException(
            "symbol names may not contain the '.' operator", form=form
        )

    munged = munge(form.name, allow_builtins=True)
    if munged in vars(builtins):
        return MaybeClass(
            form=form,
            class_=munged,
            target=vars(builtins)[munged],
            env=ctx.get_node_env(),
        )

    assert munged not in vars(ctx.current_ns.module)
    raise ParserException(
        f"unable to resolve symbol '{form}' in this context", form=form
    )
def __resolve_bare_symbol ( ctx : ParserContext , form : sym . Symbol ) -> Union [ MaybeClass , VarRef ] : assert form . ns is None # Look up the symbol in the namespace mapping of the current namespace. v = ctx . current_ns . find ( form ) if v is not None : return VarRef ( form = form , var = v , env = ctx . get_node_env ( ) ) if "." in form . name : raise ParserException ( "symbol names may not contain the '.' operator" , form = form ) munged = munge ( form . name , allow_builtins = True ) if munged in vars ( builtins ) : return MaybeClass ( form = form , class_ = munged , target = vars ( builtins ) [ munged ] , env = ctx . get_node_env ( ) , ) assert munged not in vars ( ctx . current_ns . module ) raise ParserException ( f"unable to resolve symbol '{form}' in this context" , form = form )
Resolve a non-namespaced symbol into a Python name or a local
    Basilisp Var.
Resolve a non - namespaced symbol into a Python name or a local Basilisp Var .