Class TypeResolver.TypeMap

  • Enclosing class:
    TypeResolver

    public static class TypeResolver.TypeMap
    extends java.lang.Object
    The result of type resolution, a map from AST nodes to types.
    • Method Detail

      • getType

        public Type getType​(AstNode node)
        Returns a type of an AST node.
      • hasType

        public boolean hasType​(AstNode node)
        Returns whether an AST node has a type.

        If it does not, perhaps it was ignored by the unification algorithm because it is not relevant to the program.