commit | ad004cf922b4e18e9d236d6881106d8c0e15faf4 | [log] [tgz] |
---|---|---|
author | Konstantin Shcheglov <scheglov@google.com> | Sun Jul 24 18:25:39 2022 +0000 |
committer | Commit Bot <commit-bot@chromium.org> | Sun Jul 24 18:25:39 2022 +0000 |
tree | 0ed21b328e29be17b542b82f5530ce74da945cea | |
parent | 56dc3e360ac07e9a7a1d952f2e576c73e0f4d92e [diff] |
Update ResolvedAstPrinter._writeTokenList() Change-Id: I4dc1b4f50b8d3f23aa1015bbcad9f2861b9b78b5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252564 Commit-Queue: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com>
diff --git a/pkg/analyzer/test/src/summary/elements_test.dart b/pkg/analyzer/test/src/summary/elements_test.dart index 0c04b60..566a19d 100644 --- a/pkg/analyzer/test/src/summary/elements_test.dart +++ b/pkg/analyzer/test/src/summary/elements_test.dart
@@ -15646,11 +15646,11 @@ SymbolLiteral poundSign: # @382 components - components: aaa + aaa offset: 383 - components: bbb + bbb offset: 387 - components: ccc + ccc offset: 391 accessors synthetic static get vNull @-1
diff --git a/pkg/analyzer/test/src/summary/resolved_ast_printer.dart b/pkg/analyzer/test/src/summary/resolved_ast_printer.dart index ac8fd7c..3139dc0 100644 --- a/pkg/analyzer/test/src/summary/resolved_ast_printer.dart +++ b/pkg/analyzer/test/src/summary/resolved_ast_printer.dart
@@ -1643,13 +1643,12 @@ } } - /// TODO(scheglov) maybe inline? void _writeTokenList(String name, List<Token> tokens) { if (tokens.isNotEmpty) { _writelnWithIndent(name); _withIndent(() { for (var token in tokens) { - _writelnWithIndent('$name: $token'); + _writelnWithIndent(token.lexeme); _withIndent(() { _writeOffset('offset', token.offset); });