ValidationVisitor
interface ValidationVisitor
Methods
visit
abstract fun visit(node: T, context: Context): Context
Validates the given node, and if necessary: its children (recursively, using other ValidationVisitor instances).
Parameters
Name | Description |
---|---|
node: T
|
|
context: Context
|
ReturnValue
Name | Description |
---|---|
Context
|
Base visitor interface used during validation.
T is the class of AstNode this ValidationVisitor is capable of validating, Context is the required ValidationContext type needed to perform validation.