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

Method con

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

Source from the content-addressed store, hash-verified

1426 */
1427 private ConstantNode parseLiteral() { return con(_lexer.parseNumber()); }
1428 public static Node con( long con ) { return con==0 ? ZERO : con(TypeInteger.constant(con)); }
1429 public static ConstantNode con( Type t ) { return (ConstantNode)new ConstantNode(t).peephole(); }
1430 public Node peep( Node n ) {
1431 // 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