io.eleven19.krueger.ast.AstVisitor
See theAstVisitor companion trait
object AstVisitor
Utilities for visiting and folding over AST trees.
Traversal uses trampolining (scala.util.control.TailCalls) for stack safety, so arbitrarily deep AST trees can be processed without risk of stack overflow.
Attributes
- Companion
- trait
- Source
- AstVisitor.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
AstVisitor.type
Members list
Value members
Concrete methods
Return the direct children of a node.
Collect nodes matching a partial function, pre-order.
Collect nodes matching a partial function, post-order.
Count all nodes in the tree.
Pre-order left fold over all nodes.
Dispatch a node to the appropriate visitor method.
Extensions
Extensions
extension (node: AstNode)
Attributes
- Source
- AstVisitor.scala
Attributes
- Source
- AstVisitor.scala
Attributes
- Source
- AstVisitor.scala
Attributes
- Source
- AstVisitor.scala
Attributes
- Source
- AstVisitor.scala
In this article