Uses of Class
net.hydromatic.morel.ast.Ast.Decl
-
Packages that use Ast.Decl 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.Decl in net.hydromatic.morel.ast
Subclasses of Ast.Decl in net.hydromatic.morel.ast Modifier and Type Class Description static classAst.DatatypeDeclParse tree node of a datatype declaration.static classAst.FunDeclParse tree node of a function declaration.static classAst.ValDeclParse tree node of a value declaration.Fields in net.hydromatic.morel.ast with type parameters of type Ast.Decl Modifier and Type Field Description List<Ast.Decl>Ast.Let. declsMethods in net.hydromatic.morel.ast that return Ast.Decl Modifier and Type Method Description abstract Ast.DeclAst.Decl. accept(Shuttle shuttle)Ast.DeclAst.FunDecl. accept(Shuttle shuttle)protected Ast.DeclShuttle. visit(Ast.FunDecl funDecl)Method parameters in net.hydromatic.morel.ast with type arguments of type Ast.Decl Modifier and Type Method Description Ast.LetAst.Let. copy(Iterable<Ast.Decl> decls, Ast.Exp exp)Creates a copy of thisLetExpwith given contents, orthisif the contents are the same.Ast.LetAstBuilder. let(Pos pos, Iterable<? extends Ast.Decl> decls, Ast.Exp exp)Constructor parameters in net.hydromatic.morel.ast with type arguments of type Ast.Decl Constructor Description Let(Pos pos, com.google.common.collect.ImmutableList<Ast.Decl> decls, Ast.Exp exp) -
Uses of Ast.Decl in net.hydromatic.morel.compile
Fields in net.hydromatic.morel.compile declared as Ast.Decl Modifier and Type Field Description Ast.DeclTypeResolver.Resolved. nodeAst.DeclTypeResolver.Resolved. originalNodeMethods in net.hydromatic.morel.compile that return Ast.Decl Modifier and Type Method Description private Ast.DeclTypeResolver. deduceDataTypeDeclType(TypeResolver.TypeEnv env, Ast.DatatypeDecl datatypeDecl, Map<Ast.IdPat,Unifier.Term> termMap)private Ast.DeclTypeResolver. deduceDeclType(TypeResolver.TypeEnv env, Ast.Decl node, Map<Ast.IdPat,Unifier.Term> termMap)private Ast.DeclTypeResolver. deduceValDeclType(TypeResolver.TypeEnv env, Ast.ValDecl valDecl, Map<Ast.IdPat,Unifier.Term> termMap)static Ast.DeclCompiles. toDecl(AstNode statement)Converts an expression or declaration to a declaration.Methods in net.hydromatic.morel.compile with parameters of type Ast.Decl Modifier and Type Method Description private Ast.DeclTypeResolver. deduceDeclType(TypeResolver.TypeEnv env, Ast.Decl node, Map<Ast.IdPat,Unifier.Term> termMap)static TypeResolver.ResolvedTypeResolver. deduceType(Environment env, Ast.Decl decl, TypeSystem typeSystem)Deduces the type of a declaration.private TypeResolver.ResolvedTypeResolver. deduceType_(Environment env, Ast.Decl decl)(package private) static TypeResolver.ResolvedTypeResolver.Resolved. of(Environment env, Ast.Decl originalNode, Ast.Decl node, TypeMap typeMap)private static CompiledStatementCompiles. prepareDecl(TypeSystem typeSystem, Session session, Environment env, @Nullable Calcite calcite, Ast.Decl decl, boolean isDecl, Consumer<CompileException> warningConsumer, Tracer tracer)Validates and compiles a declaration, and compiles it to code that can be evaluated by the interpreter.private Resolver.ResolvedDeclResolver. resolve(Ast.Decl decl, List<Binding> bindings)Core.DeclResolver. toCore(Ast.Decl node)Method parameters in net.hydromatic.morel.compile with type arguments of type Ast.Decl Modifier and Type Method Description private Core.ExpResolver. flattenLet(List<Ast.Decl> decls, Ast.Exp exp)Constructors in net.hydromatic.morel.compile with parameters of type Ast.Decl Constructor Description Resolved(Environment env, Ast.Decl originalNode, Ast.Decl node, TypeMap typeMap)
-