Package net.hydromatic.morel.ast
Class Ast.DatatypeBind
java.lang.Object
net.hydromatic.morel.ast.AstNode
net.hydromatic.morel.ast.Ast.DatatypeBind
- Enclosing class:
Ast
Parse tree node of a datatype binding.
Example: the datatype declaration
datatype 'a x = X1 of 'a | X2 and y = Y
consists of type bindings 'a x = X1 of 'a | X2 and
y = Y.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDatatypeBind(Pos pos, com.google.common.collect.ImmutableList<Ast.TyVar> tyVars, Ast.Id name, com.google.common.collect.ImmutableList<Ast.TyCon> tyCons) -
Method Summary
Modifier and TypeMethodDescriptionAccepts a shuttle, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result.voidAccepts a visitor, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result.booleaninthashCode()(package private) AstWriter
-
Field Details
-
tyVars
-
name
-
tyCons
-
-
Constructor Details
-
DatatypeBind
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
accept
Description copied from class:AstNodeAccepts a shuttle, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result. -
accept
Description copied from class:AstNodeAccepts a visitor, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result. -
unparse
-