evaluate method

dynamic evaluate(
  1. ASTNode node
)

Evaluates the provided AST node by calling its accept method with this Evaluator instance.

This method is used to evaluate individual AST nodes during the template evaluation process. It delegates the evaluation of the node to the node's own accept method, passing in the current Evaluator instance.

@param node The AST node to evaluate. @return The result of evaluating the AST node.

Implementation

dynamic evaluate(ASTNode node) {
  return node.accept(this);
}