Uses of Class
net.hydromatic.morel.ast.Ast.Decl
Packages that use Ast.Decl
Package
Description
Abstract syntax tree.
Validates programs
(represented as
AstNode),
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.astModifier and TypeClassDescriptionstatic classParse tree node of a datatype declaration.static classParse tree node of a function declaration.static classParse tree node of a value declaration.Fields in net.hydromatic.morel.ast with type parameters of type Ast.DeclMethods in net.hydromatic.morel.ast that return Ast.DeclModifier and TypeMethodDescriptionabstract Ast.Declprotected Ast.DeclShuttle.visit(Ast.FunDecl funDecl) Method parameters in net.hydromatic.morel.ast with type arguments of type Ast.DeclModifier and TypeMethodDescriptionCreates a copy of thisLetExpwith given contents, orthisif the contents are the same.Constructor parameters in net.hydromatic.morel.ast with type arguments of type Ast.Decl -
Uses of Ast.Decl in net.hydromatic.morel.compile
Fields in net.hydromatic.morel.compile declared as Ast.DeclModifier and TypeFieldDescriptionfinal Ast.DeclTypeResolver.Resolved.nodefinal Ast.DeclTypeResolver.Resolved.originalNodeMethods in net.hydromatic.morel.compile that return Ast.DeclModifier and TypeMethodDescriptionprivate 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.DeclConverts an expression or declaration to a declaration.Methods in net.hydromatic.morel.compile with parameters of type Ast.DeclModifier and TypeMethodDescriptionprivate static voidTypeResolver.checkNoUnresolvedFieldRefs(Ast.Decl decl, TypeMap typeMap) Checks that there are no field references "x.y" or "#y x" where "x" has an unresolved type.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 datatype of a declaration.private TypeResolver.ResolvedTypeResolver.deduceType_(Environment env, Ast.Decl decl) private static voidTypeResolver.forEachUnresolvedField(Ast.Decl decl, TypeMap typeMap, Consumer<Ast.Apply> consumer) private static @Nullable Core.NamedPatCompiles.getSkipPat(Ast.Decl decl, Core.Decl coreDecl) Returns a pattern that should not be printed, or null.(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, Consumer<CompileException> warningConsumer, Tracer tracer) Validates and compiles a declaration, and compiles it to code that can be evaluated by the interpreter.private Resolver.ResolvedDeclMethod parameters in net.hydromatic.morel.compile with type arguments of type Ast.DeclModifier and TypeMethodDescriptionprivate Core.ExpResolver.flattenLet(List<Ast.Decl> decls, Ast.Exp exp) Constructors in net.hydromatic.morel.compile with parameters of type Ast.DeclModifierConstructorDescriptionprivateResolved(Environment env, Ast.Decl originalNode, Ast.Decl node, TypeMap typeMap)