scan method

Node scan(
  1. Iterable<Token> tokens, {
  2. String? path,
})

Parse the list of tokens and return the AST node.

This can be useful for debugging or to extract information from templates.

Implementation

Node scan(Iterable<Token> tokens, {String? path}) {
  return Parser(this, path: path).scan(tokens);
}