Package net.hydromatic.morel.ast
Class Ast.CompositeType
java.lang.Object
net.hydromatic.morel.ast.AstNode
net.hydromatic.morel.ast.Ast.Type
net.hydromatic.morel.ast.Ast.CompositeType
- Enclosing class:
Ast
Not really a type, just a way for the parser to represent the type
arguments to a type constructor.
For example, in datatype foo = Pair of (int, string) list,
(int, string) is briefly represented as a composite type,
then int and string becomes the two type parameters to
the list Ast.NamedType.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCompositeType(Pos pos, com.google.common.collect.ImmutableList<Ast.Type> types) -
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.(package private) AstWriter
-
Field Details
-
types
-
-
Constructor Details
-
CompositeType
-
-
Method Details
-
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
-