Virtual semantic checking method in ASTNode.