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

Method type

chapter12/src/main/java/com/seaofnodes/simple/Parser.java:443–454  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

441
442 // Parse a type-or-null
443 private Type type() {
444 int old = _lexer._position;
445 String tname = _lexer.matchId();
446 if( tname==null ) return null;
447 Type t = TYPES.get(tname);
448 if( t == null ) {
449 // Not a type; unwind the parse
450 _lexer._position = old;
451 return null;
452 }
453 return t instanceof TypeStruct obj ? TypeMemPtr.make(obj,match("?")) : t;
454 }
455
456
457 /**

Callers 2

parseFieldMethod · 0.95

Calls 4

makeMethod · 0.95
matchMethod · 0.95
matchIdMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected