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

Method match

output/java8/1.4.13/STLexer.java:206–212  ·  view source on GitHub ↗

Consume if x is next character on the input stream.

(char x)

Source from the content-addressed store, hash-verified

204 */
205
206 public void match(char x) {
207 if ( c!= x ) {
208 NoViableAltException e = new NoViableAltException("", 0, 0, input);
209 errMgr.lexerError(input.getSourceName(), "expecting '"+x+"', found '"+str(c)+"'", templateToken, e);
210 }
211 consume();
212 }
213
214 protected void consume() {
215 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