[core] AntlrTokenizer.getCharStreamFromSourceCode is now public

This commit is contained in:
Andreas Dangel
2020-05-08 10:55:35 +02:00
parent 4f96286902
commit 9eba0a03c3

View File

@ -53,7 +53,7 @@ public abstract class AntlrTokenizer implements Tokenizer {
return new AntlrTokenFilter(tokenManager);
}
public /* default */ static CharStream getCharStreamFromSourceCode(final SourceCode sourceCode) {
public static CharStream getCharStreamFromSourceCode(final SourceCode sourceCode) {
StringBuilder buffer = sourceCode.getCodeBuffer();
return CharStreams.fromString(buffer.toString());
}