parse method

Node parse(
  1. String source, {
  2. String? path,
})

Parse the source code and return the AST node.

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

Implementation

Node parse(String source, {String? path}) {
  return scan(lex(source), path: path);
}