Exemplo n.º 1
0
  protected void checkMethod(JavaMethod d) {
    enclosingScopes.push(d);

    checkStatement(d.body());

    enclosingScopes.pop();
  }
Exemplo n.º 2
0
  protected void checkClass(JavaClass c) {
    enclosingScopes.push(c);

    for (Decl d : c.declarations()) {
      checkDeclaration(d);
    }

    enclosingScopes.pop();
  }
Exemplo n.º 3
0
  protected void checkInterface(JavaInterface c) {
    enclosingScopes.push(c);

    for (Decl d : c.declarations()) {
      checkDeclaration(d);
    }

    enclosingScopes.pop();
  }