Skip to content

Commit f1c89d6

Browse files
fishythefishCommit Queue
authored andcommitted
[sourcemap_testing] Update pubspec to 3.8 and reformat.
Change-Id: Ia019903abd75f2c1df78503fa8f836f7f56714b1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/427564 Reviewed-by: Nate Biggs <[email protected]> Commit-Queue: Nate Biggs <[email protected]> Auto-Submit: Mayank Patke <[email protected]>
1 parent 2c90e5d commit f1c89d6

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

pkg/sourcemap_testing/lib/src/stacktrace_helper.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,9 @@ Future testStackTrace(
284284
}
285285
}
286286
if (line.isMapped && !found) {
287-
List<LineException> exceptions =
288-
expectedIndex == 0 ? beforeExceptions : afterExceptions;
287+
List<LineException> exceptions = expectedIndex == 0
288+
? beforeExceptions
289+
: afterExceptions;
289290
for (LineException exception in exceptions) {
290291
String fileName = exception.fileName;
291292
if (line.methodName == exception.methodName &&

pkg/sourcemap_testing/lib/src/stepping_helper.dart

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,20 +99,24 @@ void checkD8Steps(
9999
outputFilename,
100100
);
101101

102-
List<_DartStackTraceDataEntry> trace =
103-
result.map((entry) => entry.first).toList();
102+
List<_DartStackTraceDataEntry> trace = result
103+
.map((entry) => entry.first)
104+
.toList();
104105
if (debug) _debugPrint(trace, outputPath);
105106

106-
List<String> recordStops =
107-
trace.where((entry) => !entry.isError).map((entry) => '$entry').toList();
108-
109-
Set<int> recordStopLines =
110-
trace.where((entry) => !entry.isError).map((entry) => entry.line).toSet();
111-
Set<String> recordStopLineColumns =
112-
trace
113-
.where((entry) => !entry.isError)
114-
.map((entry) => '${entry.line}:${entry.column}')
115-
.toSet();
107+
List<String> recordStops = trace
108+
.where((entry) => !entry.isError)
109+
.map((entry) => '$entry')
110+
.toList();
111+
112+
Set<int> recordStopLines = trace
113+
.where((entry) => !entry.isError)
114+
.map((entry) => entry.line)
115+
.toSet();
116+
Set<String> recordStopLineColumns = trace
117+
.where((entry) => !entry.isError)
118+
.map((entry) => '${entry.line}:${entry.column}')
119+
.toSet();
116120

117121
List<String?> expectedStops = [];
118122
for (Annotation annotation in code.annotations.where(

pkg/sourcemap_testing/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: sourcemap_testing
44
publish_to: none
55

66
environment:
7-
sdk: ^3.7.0
7+
sdk: ^3.8.0
88

99
resolution: workspace
1010

0 commit comments

Comments
 (0)