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

Method typeCheck

src/chap14/TypeChecker.java:97–103  ·  view source on GitHub ↗
(TypeEnv tenv)

Source from the content-addressed store, hash-verified

95 TypeInfo type;
96 public BlockEx(List<ASTree> c) { super(c); }
97 public TypeInfo typeCheck(TypeEnv tenv) throws TypeException {
98 type = TypeInfo.INT;
99 for (ASTree t: this)
100 if (!(t instanceof NullStmnt))
101 type = ((ASTreeTypeEx)t).typeCheck(tenv);
102 return type;
103 }
104 }
105 @Reviser public static class IfEx extends IfStmnt {
106 public IfEx(List<ASTree> c) { super(c); }

Callers

nothing calls this directly

Calls 1

typeCheckMethod · 0.45

Tested by

no test coverage detected