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

Method type

chapter10/src/main/java/com/seaofnodes/simple/Parser.java:427–438  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

425
426 // Parse a type-or-null
427 private Type type() {
428 int old = _lexer._position;
429 String tname = _lexer.matchId();
430 if( tname==null ) return null;
431 if( tname.equals("int") ) return TypeInteger.BOT;
432 TypeStruct obj = OBJS.get(tname);
433 if( obj != null )
434 return TypeMemPtr.make(obj,match("?"));
435 // Not a type; unwind the parse
436 _lexer._position = old;
437 return null;
438 }
439
440 /**
441 * Parses a declStatement

Callers 1

Calls 5

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

Tested by

no test coverage detected