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

Method matchId

chapter23/src/main/java/com/seaofnodes/simple/Parser.java:1764–1771  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1762 }
1763
1764 private String matchId() {
1765 int old = pos();
1766 String id = _lexer.matchId();
1767 if( id==null ) return null;
1768 if( !KEYWORDS.contains(id) ) return id;
1769 pos(old);
1770 return null;
1771 }
1772
1773 // Require an exact match
1774 private Parser require(String syntax) { require(null, syntax); return this; }

Callers 5

parseAsgnMethod · 0.45
typeMethod · 0.45
parseUnaryMethod · 0.45
parsePrimaryMethod · 0.45
requireIdMethod · 0.45

Calls 2

posMethod · 0.95
containsMethod · 0.45

Tested by

no test coverage detected