visit<T extends TemplateAst> method

T? visit<T extends TemplateAst>(
  1. T? astNode, [
  2. C? context
])

Visits a single TemplateAst node, capturing the type.

Implementation

T? visit<T extends TemplateAst>(T? astNode, [C? context]) =>
    astNode?.accept(this, context) as T?;