MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / matchId

Method matchId

chapter17/src/main/java/com/seaofnodes/simple/Parser.java:1193–1200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1191 }
1192
1193 private String matchId() {
1194 int old = pos();
1195 String id = _lexer.matchId();
1196 if( id==null ) return null;
1197 if( !KEYWORDS.contains(id) ) return id;
1198 pos(old);
1199 return null;
1200 }
1201
1202 // Require an exact match
1203 private Parser require(String syntax) { require(null, syntax); return this; }

Callers 5

parseAsgnMethod · 0.45
typeMethod · 0.45
parseUnaryMethod · 0.45
requireLookupIdMethod · 0.45
requireIdMethod · 0.45

Calls 2

posMethod · 0.95
containsMethod · 0.45

Tested by

no test coverage detected