Package net.hydromatic.morel.compile
Class Resolver.ResolvedDatatypeDecl
java.lang.Object
net.hydromatic.morel.compile.Resolver.ResolvedDecl
net.hydromatic.morel.compile.Resolver.ResolvedDatatypeDecl
- Enclosing class:
Resolver
Resolved datatype declaration.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResolvedDatatypeDecl(com.google.common.collect.ImmutableList<DataType> dataTypes) -
Method Summary
-
Field Details
-
dataTypes
-
-
Constructor Details
-
ResolvedDatatypeDecl
ResolvedDatatypeDecl(com.google.common.collect.ImmutableList<DataType> dataTypes)
-
-
Method Details
-
toExp
Description copied from class:Resolver.ResolvedDeclConverts the declaration to aletor alocal.- Specified by:
toExpin classResolver.ResolvedDecl
-
toExp
-
toDecl
Creates a datatype declaration that may have multiple datatypes.Only the REPL needs this. Because datatypes are not recursive, a composite declaration
datatype d1 ... and d2 ...can always be converted to a chained local,
local datatype d1 ... in local datatype d2 ... end end
-