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

Method con

chapter21/src/main/java/com/seaofnodes/simple/Parser.java:1449–1449  ·  view source on GitHub ↗
( long con )

Source from the content-addressed store, hash-verified

1447 */
1448 private ConstantNode parseLiteral() { return con(_lexer.parseNumber()); }
1449 public static Node con( long con ) { return con==0 ? ZERO : con(TypeInteger.constant(con)); }
1450 public static ConstantNode con( Type t ) { return (ConstantNode)new ConstantNode(t).peephole(); }
1451 public Node peep( Node n ) {
1452 // Peephole, then improve with lexically scoped guards

Callers 15

ParserMethod · 0.95
parseFunctionBodyMethod · 0.95
parseLoopingMethod · 0.95
parseTrinaryMethod · 0.95
parseDeclarationMethod · 0.95
parseUnaryMethod · 0.95
parsePrimaryMethod · 0.95
opAssignMethod · 0.95
allocMethod · 0.95
newStructMethod · 0.95
newArrayMethod · 0.95
parsePostfixMethod · 0.95

Calls 2

constantMethod · 0.95
peepholeMethod · 0.45

Tested by

no test coverage detected