Package net.hydromatic.morel.compile
Class TypeResolver.TypeEnvHolder
java.lang.Object
net.hydromatic.morel.compile.TypeResolver.TypeEnvHolder
- All Implemented Interfaces:
TriConsumer<String,Binding.Kind, Type>
- Enclosing class:
TypeResolver
private class TypeResolver.TypeEnvHolder
extends Object
implements TriConsumer<String,Binding.Kind,Type>
Contains a
TypeResolver.TypeEnv and adds to it by calling TypeResolver.TypeEnv.bind(String, Kind, Function).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(String name, Binding.Kind kind, Type type) Performs this operation on the given arguments.voidbind(String name, Unifier.Term term) private Function<TypeSystem, Unifier.Term> typeToTerm(Type type)
-
Field Details
-
typeEnv
-
-
Constructor Details
-
TypeEnvHolder
TypeEnvHolder(TypeResolver.TypeEnv typeEnv)
-
-
Method Details
-
accept
Description copied from interface:TriConsumerPerforms this operation on the given arguments.- Specified by:
acceptin interfaceTriConsumer<String,Binding.Kind, Type> - Parameters:
name- the first input argumentkind- the second input argumenttype- the third input argument
-
typeToTerm
-
bind
-