Uses of Interface
net.hydromatic.morel.compile.TypeResolver.TypeEnv
Packages that use TypeResolver.TypeEnv
Package
Description
Validates programs
(represented as
AstNode),
deduces their type,
and compiles them into code that can be evaluated.-
Uses of TypeResolver.TypeEnv in net.hydromatic.morel.compile
Classes in net.hydromatic.morel.compile that implement TypeResolver.TypeEnvModifier and TypeClassDescriptionprivate static classA type environment that consists of a type environment plus one binding.(package private) static enumEmpty type environment.Fields in net.hydromatic.morel.compile declared as TypeResolver.TypeEnvModifier and TypeFieldDescriptionprivate final TypeResolver.TypeEnvTypeResolver.BindTypeEnv.parentprivate TypeResolver.TypeEnvTypeResolver.TypeEnvHolder.typeEnvMethods in net.hydromatic.morel.compile that return TypeResolver.TypeEnvModifier and TypeMethodDescriptionTypeResolver.BindTypeEnv.bind(String name, Function<TypeSystem, Unifier.Term> termFactory) TypeResolver.EmptyTypeEnv.bind(String name, Function<TypeSystem, Unifier.Term> termFactory) TypeResolver.TypeEnv.bind(String name, Function<TypeSystem, Unifier.Term> termFactory) default TypeResolver.TypeEnvTypeResolver.TypeEnv.bind(String name, Unifier.Term term) private static TypeResolver.TypeEnvTypeResolver.bindAll(TypeResolver.TypeEnv env, Map<Ast.IdPat, Unifier.Term> termMap) Methods in net.hydromatic.morel.compile that return types with arguments of type TypeResolver.TypeEnvModifier and TypeMethodDescriptionprivate Pair<TypeResolver.TypeEnv, Unifier.Variable> TypeResolver.deduceStepType(TypeResolver.TypeEnv env, Ast.FromStep step, Unifier.Variable v, TypeResolver.TypeEnv env2, Map<Ast.Id, Unifier.Variable> fieldVars, List<Ast.FromStep> fromSteps) Methods in net.hydromatic.morel.compile with parameters of type TypeResolver.TypeEnvModifier and TypeMethodDescriptionprivate static TypeResolver.TypeEnvTypeResolver.bindAll(TypeResolver.TypeEnv env, Map<Ast.IdPat, Unifier.Term> termMap) 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) TypeResolver.deduceMatchListType(TypeResolver.TypeEnv env, List<Ast.Match> matchList, NavigableSet<String> labelNames, Unifier.Variable argVariable, Unifier.Variable resultVariable) private Ast.MatchTypeResolver.deduceMatchType(TypeResolver.TypeEnv env, Ast.Match match, Map<Ast.IdPat, Unifier.Term> termMap, Unifier.Variable argVariable, Unifier.Variable resultVariable) private Ast.PatTypeResolver.deducePatType(TypeResolver.TypeEnv env, Ast.Pat pat, Map<Ast.IdPat, Unifier.Term> termMap, NavigableSet<String> labelNames, Unifier.Variable v) Derives a type term for a pattern, collecting the names of pattern variables.private Ast.RecordSelectorTypeResolver.deduceRecordSelectorType(TypeResolver.TypeEnv env, Unifier.Variable vResult, Unifier.Variable vArg, Ast.RecordSelector recordSelector) private Pair<TypeResolver.TypeEnv, Unifier.Variable> TypeResolver.deduceStepType(TypeResolver.TypeEnv env, Ast.FromStep step, Unifier.Variable v, TypeResolver.TypeEnv env2, Map<Ast.Id, Unifier.Variable> fieldVars, List<Ast.FromStep> fromSteps) private Ast.ExpTypeResolver.deduceType(TypeResolver.TypeEnv env, Ast.Exp node, Unifier.Variable v) private AstNodeTypeResolver.deduceValBindType(TypeResolver.TypeEnv env, Ast.ValBind valBind, Map<Ast.IdPat, Unifier.Term> termMap, Unifier.Variable v, Unifier.Variable vPat) private Ast.DeclTypeResolver.deduceValDeclType(TypeResolver.TypeEnv env, Ast.ValDecl valDecl, Map<Ast.IdPat, Unifier.Term> termMap) private Ast.ExpTypeResolver.infix(TypeResolver.TypeEnv env, Ast.InfixCall call, Unifier.Variable v) Registers an infix operator.private Ast.ExpTypeResolver.infix(TypeResolver.TypeEnv env, Ast.InfixCall call, Unifier.Variable v, Type type) Registers an infix operator whose type is a given type.private Ast.PatTypeResolver.patTuple(TypeResolver.TypeEnv env, List<Ast.Pat> patList) Converts a list of patterns to a singleton pattern or tuple pattern.private Ast.ExpTypeResolver.prefix(TypeResolver.TypeEnv env, Ast.PrefixCall call, Unifier.Variable v) Registers a prefix operator.private Ast.ValBindTypeResolver.toValBind(TypeResolver.TypeEnv env, Ast.FunBind funBind) private Ast.ValDeclTypeResolver.toValDecl(TypeResolver.TypeEnv env, Ast.FunDecl funDecl) Converts a function declaration to a value declaration.Constructors in net.hydromatic.morel.compile with parameters of type TypeResolver.TypeEnvModifierConstructorDescription(package private)BindTypeEnv(String definedName, Function<TypeSystem, Unifier.Term> termFactory, TypeResolver.TypeEnv parent) (package private)TypeEnvHolder(TypeResolver.TypeEnv typeEnv)