Skip to content

Commit

Permalink
feat(#3706): use correct token names
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Dec 20, 2024
1 parent 0c68033 commit bad3869
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ private void emitDedent(final int shift) {
* @param type Type.
*/
private void emitToken(final int type) {
final CommonToken tkn = new CommonToken(type, this.getRuleNames()[type]);
final CommonToken tkn = new CommonToken(type, EoParser.VOCABULARY.getSymbolicName(type));
tkn.setLine(this.getLine() + 1);
this.tokens.offer(tkn);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.cactoos.text.TextOf;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

/**
Expand Down

0 comments on commit bad3869

Please sign in to comment.