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

Method print

chapter13/src/main/java/com/seaofnodes/simple/type/Type.java:186–186  ·  view source on GitHub ↗
(StringBuilder sb)

Source from the content-addressed store, hash-verified

184 }
185
186 public StringBuilder print(StringBuilder sb) { return is_simple() ? sb.append(STRS[_type]) : sb;}
187
188 // This is used by error messages, and is a shorted print.
189 public String str() { return STRS[_type]; }

Callers 15

typeNameMethod · 0.95
toStringMethod · 0.95
testVarDeclMethod · 0.45
testVarAddMethod · 0.45
testVarScopeMethod · 0.45
testVarDistMethod · 0.45
testParseGrammarMethod · 0.45
testAddPeepholeMethod · 0.45
testSubPeepholeMethod · 0.45
testMulPeepholeMethod · 0.45
testDivPeepholeMethod · 0.45

Calls 1

is_simpleMethod · 0.95

Tested by 15

testVarDeclMethod · 0.36
testVarAddMethod · 0.36
testVarScopeMethod · 0.36
testVarDistMethod · 0.36
testParseGrammarMethod · 0.36
testAddPeepholeMethod · 0.36
testSubPeepholeMethod · 0.36
testMulPeepholeMethod · 0.36
testDivPeepholeMethod · 0.36
testMinusPeepholeMethod · 0.36
testExampleMethod · 0.36