Skip to content

identifier resolve ast.undefined does not throw exception. #11

@Berserker66

Description

@Berserker66

At the end of resolve_identifier of LiteralResolver it currently just returns ast.Undefined().
As far as I can tell, there is no method to check for any undefined values. In my particular project I replaced that line with "raise AttributeError("{} could not be resolved.".format(identifier))" as any unresolved identifier would be an error.

Either throwing an error or giving a method to check for unresolved identifiers would be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions