MCPcopy Create free account
hub / github.com/chibash/stone / elseBlock

Method elseBlock

src/stone/ast/IfStmnt.java:8–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 public ASTree condition() { return child(0); }
7 public ASTree thenBlock() { return child(1); }
8 public ASTree elseBlock() {
9 return numChildren() > 2 ? child(2) : null;
10 }
11 public String toString() {
12 return "(if " + condition() + " " + thenBlock()
13 + " else " + elseBlock() + ")";

Callers 5

toStringMethod · 0.95
evalMethod · 0.80
typeCheckMethod · 0.80
translateMethod · 0.80
compileMethod · 0.80

Calls 2

numChildrenMethod · 0.45
childMethod · 0.45

Tested by

no test coverage detected