Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ad004cf

Browse files
scheglovCommit Bot
authored andcommitted
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>
1 parent 56dc3e3 commit ad004cf

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

pkg/analyzer/test/src/summary/elements_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15646,11 +15646,11 @@ library
1564615646
SymbolLiteral
1564715647
poundSign: # @382
1564815648
components
15649-
components: aaa
15649+
aaa
1565015650
offset: 383
15651-
components: bbb
15651+
bbb
1565215652
offset: 387
15653-
components: ccc
15653+
ccc
1565415654
offset: 391
1565515655
accessors
1565615656
synthetic static get vNull @-1

pkg/analyzer/test/src/summary/resolved_ast_printer.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,13 +1643,12 @@ class ResolvedAstPrinter extends ThrowingAstVisitor<void> {
16431643
}
16441644
}
16451645

1646-
/// TODO(scheglov) maybe inline?
16471646
void _writeTokenList(String name, List<Token> tokens) {
16481647
if (tokens.isNotEmpty) {
16491648
_writelnWithIndent(name);
16501649
_withIndent(() {
16511650
for (var token in tokens) {
1652-
_writelnWithIndent('$name: $token');
1651+
_writelnWithIndent(token.lexeme);
16531652
_withIndent(() {
16541653
_writeOffset('offset', token.offset);
16551654
});

0 commit comments

Comments
 (0)