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

Method typeCheckForAssign

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

Source from the content-addressed store, hash-verified

81 }
82 }
83 protected TypeInfo typeCheckForAssign(TypeEnv tenv)
84 throws TypeException
85 {
86 rightType = ((ASTreeTypeEx)right()).typeCheck(tenv);
87 ASTree le = left();
88 if (le instanceof Name)
89 return ((NameEx2)le).typeCheckForAssign(tenv, rightType);
90 else
91 throw new TypeException("bad assignment", this);
92 }
93 }
94 @Reviser public static class BlockEx extends BlockStmnt {
95 TypeInfo type;

Callers 1

typeCheckMethod · 0.95

Calls 4

rightMethod · 0.80
leftMethod · 0.80
typeCheckMethod · 0.45
typeCheckForAssignMethod · 0.45

Tested by

no test coverage detected