Skip to content

Assert in ParserRuleContext.java makes copyFrom unusable #57

@fedorusov

Description

@fedorusov

assert t.getParent() == null || t.getParent() == this;

If you call

context1.copyFrom(context2)

you necessarily call addAnyChild which have this assert, so it fails.
Vanilla antlr doesn't have this, why do you?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions