typeCheckOverride
public Node typeCheckOverride(Node parent,
TypeChecker tc)
throws SemanticException
Description copied from interface: NodeOps
Type check the AST.
This method is called by the override()
method of the
visitor. If this method returns non-null, the node's children
will not be visited automatically. Thus, the method should check
both the node this
and it's children, usually by
invoking visitChildren
with tc
or
with another visitor, returning a non-null node. OR, the method
should do nothing and simply return null
to allow
enter
, visitChildren
, and leave
to be invoked on the node.
The default implementation returns null
.
Overriding of this method is discouraged, but sometimes necessary.
- Specified by:
typeCheckOverride
in interface NodeOps
- Overrides:
typeCheckOverride
in class Ext_c
tc
- The type checking visitor.
- Throws:
SemanticException