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

Method con

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

Source from the content-addressed store, hash-verified

1702 */
1703 private ConstantNode parseLiteral() { return con(_lexer.parseNumber()); }
1704 public static Node con( long con ) { return con==0 ? ZERO : con(TypeInteger.constant(con)); }
1705 public static ConstantNode con( Type t ) { return (ConstantNode)new ConstantNode(t).peephole(); }
1706 public static ConFldOffNode off( TypeStruct base, String fname ) { return (ConFldOffNode)(new ConFldOffNode(base._name,fname).peephole()); }
1707 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