Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move GetText(), SetText(), and String() from CommonToken to BaseToken #4397

Merged
merged 1 commit into from Sep 4, 2023

Conversation

googleberg
Copy link
Contributor

This change means that BaseToken satisfies the Token interface.

The recent addition of the String() function to the Token interface means that any custom BaseToken derivatives no longer satisfy the Token interface. Rather than forcing them all to implement their own String() function, put the CommonToken String function (plus GetText and SetText) into the BaseToken.

This change means that BaseToken satisfies the Token interface.

Signed-off-by: Jerry Berg <107155935+googleberg@users.noreply.github.com>
@parrt parrt requested a review from jimidle August 28, 2023 16:45
@parrt parrt added this to the 4.13.1 milestone Aug 28, 2023
@parrt parrt merged commit dae2d27 into antlr:dev Sep 4, 2023
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants