commit | 0586be25a46377be707f891f5636f0997d77f1bd | [log] [tgz] |
---|---|---|
author | Konstantin Shcheglov <scheglov@google.com> | Thu May 02 21:37:25 2019 +0000 |
committer | Konstantin Shcheglov <scheglov@google.com> | Thu May 02 21:37:25 2019 +0000 |
tree | 3913dbdf2a8aab2bb4194bd2c7efb105b99fe403 | |
parent | 0950a540d79de437f1dbfa88d04f352e2e9220d0 [diff] |
Read partOf directive metadata lazily. R=brianwilkerson@google.com Change-Id: Ida31471bde95b6693a357bcdf6aa94cc96eb587e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/101200 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
diff --git a/pkg/analyzer/lib/src/summary2/ast_binary_reader.dart b/pkg/analyzer/lib/src/summary2/ast_binary_reader.dart index e7b2b94..4927499 100644 --- a/pkg/analyzer/lib/src/summary2/ast_binary_reader.dart +++ b/pkg/analyzer/lib/src/summary2/ast_binary_reader.dart
@@ -963,7 +963,7 @@ PartOfDirective _read_partOfDirective(LinkedNode data) { var node = astFactory.partOfDirective( _readNode(data.annotatedNode_comment), - _readNodeList(data.annotatedNode_metadata), + _readNodeListLazy(data.annotatedNode_metadata), _getToken(data.directive_keyword), _getToken(data.partOfDirective_ofKeyword), _readNode(data.partOfDirective_uri),