[core] AntlrTokenizer.getCharStreamFromSourceCode is now public
This commit is contained in:
@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user