declarations2 property
The top-level declarations exposed by the V2 AST view.
The element type is temporarily AnnotatedNode while the V2 AST migration is in progress. Each entry is either a V2 TopLevelDeclaration or a V1 CompilationUnitMember whose V2 representation is not yet available.
Implementation
@experimental
NodeList<AnnotatedNode> get declarations2;