MCPcopy Index your code
hub / github.com/antlr/codebuff / match

Method match

output/java8/1.4.17/STLexer.java:209–218  ·  view source on GitHub ↗

Consume if x is next character on the input stream.

(char x)

Source from the content-addressed store, hash-verified

207 */
208
209 public void match(char x) {
210 if ( c!= x ) {
211 NoViableAltException e = new NoViableAltException("", 0, 0, input);
212 errMgr.lexerError(input.getSourceName(),
213 "expecting '" +x+"', found '"+str(c)+"'",
214 templateToken,
215 e);
216 }
217 consume();
218 }
219
220 protected void consume() {
221 input.consume();

Callers 5

insideMethod · 0.95
ESCAPEMethod · 0.95
UNICODEMethod · 0.95
COMMENTMethod · 0.95
LINEBREAKMethod · 0.95

Calls 4

strMethod · 0.95
consumeMethod · 0.95
lexerErrorMethod · 0.45
getSourceNameMethod · 0.45

Tested by

no test coverage detected