readRoot method

ASTRoot readRoot(
  1. Uint8List bytes
)

Decodes bytes into a fully resolved ASTRoot.

resolveNode has already been called on the result, so parent links and name resolution are in place exactly as after a parse.

Implementation

ASTRoot readRoot(Uint8List bytes) => _read(bytes).root;