Uses of Class
net.hydromatic.morel.ast.Visitor
Packages that use Visitor
Package
Description
Abstract syntax tree.
Validates programs
(represented as
AstNode),
deduces their type,
and compiles them into code that can be evaluated.-
Uses of Visitor in net.hydromatic.morel.ast
Subclasses of Visitor in net.hydromatic.morel.astModifier and TypeClassDescriptionprivate classCalls the method to re-register a step.Methods in net.hydromatic.morel.ast with parameters of type VisitorModifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidabstract voidAccepts a visitor, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid -
Uses of Visitor in net.hydromatic.morel.compile
Subclasses of Visitor in net.hydromatic.morel.compileModifier and TypeClassDescriptionclassShuttle that counts how many times each expression is used.private static class(package private) classShuttle that keeps an environment of what variables are in scope.classValidates expressions, making sure that everyCore.Idexists in the environment.private classVisitor that convertsAst.FromtoCore.Fromby handling each subtype ofAst.FromStepcallingFromBuilderappropriately.(package private) static classVisitor that finds all references to unbound variables in an expression.(package private) static classVisitor that expands progressive types if they are used in field references.