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

Method con

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

Source from the content-addressed store, hash-verified

1761 */
1762 private ConstantNode parseLiteral() { return con(_lexer.parseNumber()); }
1763 public static Node con( long con ) { return con==0 ? ZERO : con(TypeInteger.constant(con)); }
1764 public static ConstantNode con( Type t ) { return (ConstantNode)new ConstantNode(t).peephole(); }
1765 public static ConFldOffNode off( TypeStruct base, String fname ) { return (ConFldOffNode)(new ConFldOffNode(base._name,fname).peephole()); }
1766 public Node peep( Node n ) {

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
newArrayMethod · 0.95
newStringMethod · 0.95
parsePostfixNameMethod · 0.95

Calls 2

constantMethod · 0.95
peepholeMethod · 0.45

Tested by

no test coverage detected