Uses of Class
net.hydromatic.morel.ast.Ast.Type
-
Packages that use Ast.Type Package Description net.hydromatic.morel.ast Abstract syntax tree.net.hydromatic.morel.compile Validates programs (represented asAstNode), deduces their type, and compiles them into code that can be evaluated. -
-
Uses of Ast.Type in net.hydromatic.morel.ast
Subclasses of Ast.Type in net.hydromatic.morel.ast Modifier and Type Class Description static classAst.CompositeTypeNot really a type, just a way for the parser to represent the type arguments to a type constructor.static classAst.FunctionTypeFunction type.static classAst.NamedTypeParse tree for a named type (e.g.static classAst.RecordTypeParse tree node of a record type.static classAst.TupleTypeTuple type.static classAst.TyVarParse tree node of a type variable.Fields in net.hydromatic.morel.ast declared as Ast.Type Modifier and Type Field Description Ast.TypeAst.FunctionType. paramTypeAst.TypeAst.FunctionType. resultType@Nullable Ast.TypeAst.FunMatch. returnTypeAst.TypeAst.AnnotatedExp. typeAst.TypeAst.AnnotatedPat. type@Nullable Ast.TypeAst.TyCon. typeFields in net.hydromatic.morel.ast with type parameters of type Ast.Type Modifier and Type Field Description Map<String,Ast.Type>Ast.RecordType. fieldTypesList<Ast.Type>Ast.CompositeType. typesList<Ast.Type>Ast.NamedType. typesList<Ast.Type>Ast.TupleType. typesMethods in net.hydromatic.morel.ast that return Ast.Type Modifier and Type Method Description Ast.TypeAst.CompositeType. accept(Shuttle shuttle)Ast.TypeAst.FunctionType. accept(Shuttle shuttle)Ast.TypeAst.NamedType. accept(Shuttle shuttle)Ast.TypeAst.TupleType. accept(Shuttle shuttle)abstract Ast.TypeAst.Type. accept(Shuttle shuttle)Ast.TypeAstBuilder. compositeType(Pos pos, Iterable<Ast.Type> types)Ast.TypeAstBuilder. foldFunctionType(List<Ast.Type> types)Ast.TypeAstBuilder. namedType(Pos pos, Iterable<? extends Ast.Type> types, String name)Ast.TypeAstBuilder. tupleType(Pos pos, Iterable<Ast.Type> types)protected Ast.TypeShuttle. visit(Ast.CompositeType compositeType)protected Ast.TypeShuttle. visit(Ast.FunctionType functionType)protected Ast.TypeShuttle. visit(Ast.NamedType namedType)protected Ast.TypeShuttle. visit(Ast.TupleType tupleType)Methods in net.hydromatic.morel.ast with parameters of type Ast.Type Modifier and Type Method Description Ast.ExpAstBuilder. annotatedExp(Pos pos, Ast.Exp expression, Ast.Type type)Ast.AnnotatedPatAstBuilder. annotatedPat(Pos pos, Ast.Pat pat, Ast.Type type)Ast.AnnotatedPatAst.AnnotatedPat. copy(Ast.Pat pat, Ast.Type type)Creates a copy of thisAnnotatedPatwith given contents, orthisif the contents are the same.Ast.FunctionTypeAstBuilder. functionType(Pos pos, Ast.Type fromType, Ast.Type toType)Ast.FunMatchAstBuilder. funMatch(Pos pos, String name, Iterable<? extends Ast.Pat> patList, Ast.Type returnType, Ast.Exp exp)Ast.TyConAstBuilder. typeConstructor(Pos pos, Ast.Id id, Ast.Type type)Method parameters in net.hydromatic.morel.ast with type arguments of type Ast.Type Modifier and Type Method Description Ast.TypeAstBuilder. compositeType(Pos pos, Iterable<Ast.Type> types)Ast.TypeAstBuilder. foldFunctionType(List<Ast.Type> types)Ast.TypeAstBuilder. namedType(Pos pos, Iterable<? extends Ast.Type> types, String name)Ast.RecordTypeAstBuilder. recordType(Pos pos, Map<String,Ast.Type> fieldTypes)Ast.TypeAstBuilder. tupleType(Pos pos, Iterable<Ast.Type> types)Constructors in net.hydromatic.morel.ast with parameters of type Ast.Type Constructor Description AnnotatedExp(Pos pos, Ast.Exp exp, Ast.Type type)Creates a type annotation.AnnotatedPat(Pos pos, Ast.Pat pat, Ast.Type type)FunctionType(Pos pos, Ast.Type paramType, Ast.Type resultType)FunMatch(Pos pos, String name, com.google.common.collect.ImmutableList<Ast.Pat> patList, @Nullable Ast.Type returnType, Ast.Exp exp)TyCon(Pos pos, Ast.Id id, Ast.Type type)Constructor parameters in net.hydromatic.morel.ast with type arguments of type Ast.Type Constructor Description CompositeType(Pos pos, com.google.common.collect.ImmutableList<Ast.Type> types)NamedType(Pos pos, com.google.common.collect.ImmutableList<Ast.Type> types, String name)Creates a type.RecordType(Pos pos, com.google.common.collect.ImmutableMap<String,Ast.Type> fieldTypes)Creates a TyVar.TupleType(Pos pos, com.google.common.collect.ImmutableList<Ast.Type> types) -
Uses of Ast.Type in net.hydromatic.morel.compile
Methods in net.hydromatic.morel.compile with parameters of type Ast.Type Modifier and Type Method Description private TypeTypeResolver. toType(Ast.Type type)static TypeTypeResolver. toType(Ast.Type type, TypeSystem typeSystem)Converts a type AST to a type.Method parameters in net.hydromatic.morel.compile with type arguments of type Ast.Type Modifier and Type Method Description private List<Type>TypeResolver. toTypes(List<Ast.Type> typeList)
-