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
static class Resolver.ResolvedDatatypeDecl extends Resolver.ResolvedDecl
Resolved datatype declaration.
-
-
Constructor Summary
Constructors Constructor Description ResolvedDatatypeDecl(com.google.common.collect.ImmutableList<DataType> dataTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Core.DatatypeDecltoDecl()Creates a datatype declaration that may have multiple datatypes.private Core.ExptoExp(List<DataType> dataTypes, Core.Exp resultExp)(package private) Core.ExptoExp(Core.Exp resultExp)Converts the declaration to aletor alocal.
-
-
-
Field Detail
-
dataTypes
private final com.google.common.collect.ImmutableList<DataType> dataTypes
-
-
Constructor Detail
-
ResolvedDatatypeDecl
ResolvedDatatypeDecl(com.google.common.collect.ImmutableList<DataType> dataTypes)
-
-
Method Detail
-
toExp
Core.Exp toExp(Core.Exp resultExp)
Description copied from class:Resolver.ResolvedDeclConverts the declaration to aletor alocal.- Specified by:
toExpin classResolver.ResolvedDecl
-
toDecl
public Core.DatatypeDecl 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
-
-