Uses of Class
net.hydromatic.morel.ast.Core.NamedPat
-
Packages that use Core.NamedPat 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.net.hydromatic.morel.eval Evaluates expressions.net.hydromatic.morel.type Type system. -
-
Uses of Core.NamedPat in net.hydromatic.morel.ast
Subclasses of Core.NamedPat in net.hydromatic.morel.ast Modifier and Type Class Description static classCore.AsPatLayered pattern.static classCore.IdPatNamed pattern.Fields in net.hydromatic.morel.ast declared as Core.NamedPat Modifier and Type Field Description Core.NamedPatCore.Id. idPatCore.NamedPatCore.NonRecValDecl. patMethods in net.hydromatic.morel.ast that return Core.NamedPat Modifier and Type Method Description abstract Core.NamedPatCore.NamedPat. accept(Shuttle shuttle)abstract Core.NamedPatCore.NamedPat. withType(Type type)Methods in net.hydromatic.morel.ast with parameters of type Core.NamedPat Modifier and Type Method Description voidCore.BindingConsumer. accept(Core.NamedPat namedPat, Core.Exp exp, Pos pos)intCore.NamedPat. compareTo(Core.NamedPat o)Core.NonRecValDeclCore.NonRecValDecl. copy(Core.NamedPat pat, Core.Exp exp)Core.IdCoreBuilder. id(Core.NamedPat idPat)Creates a reference to a value.Core.NonRecValDeclCoreBuilder. nonRecValDecl(Core.NamedPat pat, Core.Exp exp, Pos pos)Constructors in net.hydromatic.morel.ast with parameters of type Core.NamedPat Constructor Description Id(Core.NamedPat idPat)Creates an Id.NonRecValDecl(Core.NamedPat pat, Core.Exp exp, Pos pos) -
Uses of Core.NamedPat in net.hydromatic.morel.compile
Fields in net.hydromatic.morel.compile declared as Core.NamedPat Modifier and Type Field Description (package private) Core.NamedPatResolver.ResolvedValDecl. patFields in net.hydromatic.morel.compile with type parameters of type Core.NamedPat Modifier and Type Field Description com.google.common.collect.ImmutableMap<Core.NamedPat,Analyzer.Use>Analyzer.Analysis. mapprivate Map<Core.NamedPat,Analyzer.MutableUse>Analyzer. mapprivate Map<Core.NamedPat,Binding>Environments.MapEnvironment. map(package private) Set<Core.NamedPat>Resolver.ReferenceFinder. setprivate Map<Pair<Core.NamedPat,Type>,Core.NamedPat>Resolver. variantIdMapContains variable declarations whose type at the point they are used is different (more specific) than in their declaration.private Map<Pair<Core.NamedPat,Type>,Core.NamedPat>Resolver. variantIdMapContains variable declarations whose type at the point they are used is different (more specific) than in their declaration.Methods in net.hydromatic.morel.compile that return Core.NamedPat Modifier and Type Method Description private Core.NamedPatResolver. getIdPat(Ast.Id id, Binding binding)Converts an Id that is a reference to a variable into an IdPat that represents its declaration.Methods in net.hydromatic.morel.compile with parameters of type Core.NamedPat Modifier and Type Method Description (package private) static voidCompiles. bindPattern(TypeSystem typeSystem, List<Binding> bindings, Core.NamedPat namedPat)private CodeCompiler. compileFieldName(Compiler.Context cx, Core.NamedPat idPat)(package private) abstract intEnvironment. distance(int soFar, Core.NamedPat id)(package private) intEnvironments.EmptyEnvironment. distance(int soFar, Core.NamedPat id)(package private) intEnvironments.MapEnvironment. distance(int soFar, Core.NamedPat id)(package private) intEnvironments.SubEnvironment. distance(int soFar, Core.NamedPat id)abstract @Nullable BindingEnvironment. getOpt(Core.NamedPat id)Returns the binding ofidif bound, null if not.@Nullable BindingEnvironments.EmptyEnvironment. getOpt(Core.NamedPat id)@Nullable BindingEnvironments.MapEnvironment. getOpt(Core.NamedPat id)@Nullable BindingEnvironments.SubEnvironment. getOpt(Core.NamedPat id)private Analyzer.MutableUseAnalyzer. use(Core.NamedPat name)Gets or creates aAnalyzer.MutableUsefor a given name.Method parameters in net.hydromatic.morel.compile with type arguments of type Core.NamedPat Modifier and Type Method Description private voidCompiler. link(Map<Core.NamedPat,Compiler.LinkCode> linkCodes, Core.Pat pat, Code code)(package private) abstract EnvironmentEnvironment. nearestAncestorNotObscuredBy(Set<Core.NamedPat> names)If this environment only defines bindings in the given set, returns its parent.(package private) EnvironmentEnvironments.EmptyEnvironment. nearestAncestorNotObscuredBy(Set<Core.NamedPat> names)(package private) EnvironmentEnvironments.MapEnvironment. nearestAncestorNotObscuredBy(Set<Core.NamedPat> names)(package private) EnvironmentEnvironments.SubEnvironment. nearestAncestorNotObscuredBy(Set<Core.NamedPat> names)private voidCompiler. shredValue(Core.Pat pat, Object o, BiConsumer<Core.NamedPat,Object> consumer)Constructors in net.hydromatic.morel.compile with parameters of type Core.NamedPat Constructor Description ResolvedValDecl(boolean rec, com.google.common.collect.ImmutableList<Resolver.PatExp> patExps, Core.NamedPat pat, Core.Exp exp)Constructor parameters in net.hydromatic.morel.compile with type arguments of type Core.NamedPat Constructor Description Analysis(com.google.common.collect.ImmutableMap<Core.NamedPat,Analyzer.Use> map)Analyzer(TypeSystem typeSystem, Environment env, Map<Core.NamedPat,Analyzer.MutableUse> map, Deque<EnvVisitor.FromContext> fromStack)Private constructor.MapEnvironment(Environment parent, com.google.common.collect.ImmutableMap<Core.NamedPat,Binding> map)ReferenceFinder(TypeSystem typeSystem, Environment env, Set<Core.NamedPat> set, Deque<EnvVisitor.FromContext> fromStack)Resolver(TypeMap typeMap, NameGenerator nameGenerator, Map<Pair<Core.NamedPat,Type>,Core.NamedPat> variantIdMap, Environment env)Resolver(TypeMap typeMap, NameGenerator nameGenerator, Map<Pair<Core.NamedPat,Type>,Core.NamedPat> variantIdMap, Environment env) -
Uses of Core.NamedPat in net.hydromatic.morel.eval
Methods in net.hydromatic.morel.eval with parameters of type Core.NamedPat Modifier and Type Method Description voidClosure.EvalEnvHolder. accept(Core.NamedPat namedPat, Object o)Method parameters in net.hydromatic.morel.eval with type arguments of type Core.NamedPat Modifier and Type Method Description static booleanClosure. bindRecurse(Core.Pat pat, Object argValue, BiConsumer<Core.NamedPat,Object> envRef)Attempts to bind a value to a pattern. -
Uses of Core.NamedPat in net.hydromatic.morel.type
Fields in net.hydromatic.morel.type declared as Core.NamedPat Modifier and Type Field Description Core.NamedPatBinding. idMethods in net.hydromatic.morel.type with parameters of type Core.NamedPat Modifier and Type Method Description static BindingBinding. of(Core.NamedPat id)static BindingBinding. of(Core.NamedPat id, Object value)static BindingBinding. of(Core.NamedPat id, Core.Exp exp)Constructors in net.hydromatic.morel.type with parameters of type Core.NamedPat Constructor Description Binding(Core.NamedPat id, Core.Exp exp, Object value, boolean parameter)
-