Skip to content

Commit f8b60d9

Browse files
committed
deprecated test_sdk_layout's soundNullSafety
1 parent b2c1366 commit f8b60d9

File tree

1 file changed

+26
-86
lines changed

1 file changed

+26
-86
lines changed

test_common/lib/test_sdk_layout.dart

Lines changed: 26 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -27,84 +27,45 @@ class TestSdkLayout {
2727
factory TestSdkLayout.createDefaultFromSdkLayout(SdkLayout sdkLayout) =>
2828
TestSdkLayout(
2929
sdkDirectory: sdkLayout.sdkDirectory,
30-
soundSummaryPath: sdkLayout.soundSummaryPath,
31-
soundFullDillPath: p.join(
30+
summaryPath: sdkLayout.summaryPath,
31+
fullDillPath: p.join(
3232
sdkLayout.sdkDirectory,
3333
'lib',
3434
'_internal',
3535
'ddc_platform.dill',
3636
),
37-
soundAmdJsPath: p.join(
37+
amdJsPath: p.join(
3838
sdkLayout.sdkDirectory,
3939
'lib',
4040
'dev_compiler',
4141
'kernel',
4242
'amd',
4343
'dart_sdk.js',
4444
),
45-
soundAmdJsMapPath: p.join(
45+
amdJsMapPath: p.join(
4646
sdkLayout.sdkDirectory,
4747
'lib',
4848
'dev_compiler',
4949
'kernel',
5050
'amd',
5151
'dart_sdk.js.map',
5252
),
53-
soundDdcJsPath: p.join(
53+
ddcJsPath: p.join(
5454
sdkLayout.sdkDirectory,
5555
'lib',
5656
'dev_compiler',
5757
'kernel',
5858
'ddc',
5959
'dart_sdk.js',
6060
),
61-
soundDdcJsMapPath: p.join(
61+
ddcJsMapPath: p.join(
6262
sdkLayout.sdkDirectory,
6363
'lib',
6464
'dev_compiler',
6565
'kernel',
6666
'ddc',
6767
'dart_sdk.js.map',
6868
),
69-
weakSummaryPath: sdkLayout.weakSummaryPath,
70-
weakFullDillPath: p.join(
71-
sdkLayout.sdkDirectory,
72-
'lib',
73-
'_internal',
74-
'ddc_platform_unsound.dill',
75-
),
76-
weakAmdJsPath: p.join(
77-
sdkLayout.sdkDirectory,
78-
'lib',
79-
'dev_compiler',
80-
'kernel',
81-
'amd',
82-
'dart_sdk_unsound.js',
83-
),
84-
weakAmdJsMapPath: p.join(
85-
sdkLayout.sdkDirectory,
86-
'lib',
87-
'dev_compiler',
88-
'kernel',
89-
'amd',
90-
'dart_sdk_unsound.js.map',
91-
),
92-
weakDdcJsPath: p.join(
93-
sdkLayout.sdkDirectory,
94-
'lib',
95-
'dev_compiler',
96-
'kernel',
97-
'ddc',
98-
'dart_sdk_unsound.js',
99-
),
100-
weakDdcJsMapPath: p.join(
101-
sdkLayout.sdkDirectory,
102-
'lib',
103-
'dev_compiler',
104-
'kernel',
105-
'ddc',
106-
'dart_sdk_unsound.js.map',
107-
),
10869
ddcModuleLoaderJsPath: p.join(
10970
sdkLayout.sdkDirectory,
11071
'lib',
@@ -159,33 +120,19 @@ class TestSdkLayout {
159120

160121
final String sdkDirectory;
161122

162-
String get soundAmdJsFileName => p.basename(soundAmdJsPath);
163-
String get soundAmdJsMapFileName => p.basename(soundAmdJsMapPath);
164-
String get soundDdcJsFileName => p.basename(soundDdcJsPath);
165-
String get soundDdcJsMapFileName => p.basename(soundDdcJsMapPath);
166-
String get soundSummaryFileName => p.basename(soundSummaryPath);
167-
String get soundFullDillFileName => p.basename(soundFullDillPath);
168-
169-
final String soundAmdJsPath;
170-
final String soundAmdJsMapPath;
171-
final String soundDdcJsPath;
172-
final String soundDdcJsMapPath;
173-
final String soundSummaryPath;
174-
final String soundFullDillPath;
175-
176-
String get weakAmdJsFileName => p.basename(weakAmdJsPath);
177-
String get weakAmdJsMapFileName => p.basename(weakAmdJsMapPath);
178-
String get weakDdcJsFileName => p.basename(weakDdcJsPath);
179-
String get weakDdcJsMapFileName => p.basename(weakDdcJsMapPath);
180-
String get weakSummaryFileName => p.basename(weakSummaryPath);
181-
String get weakFullDillFileName => p.basename(weakFullDillPath);
182-
183-
final String weakAmdJsPath;
184-
final String weakAmdJsMapPath;
185-
final String weakDdcJsPath;
186-
final String weakDdcJsMapPath;
187-
final String weakSummaryPath;
188-
final String weakFullDillPath;
123+
String get amdJsFileName => p.basename(amdJsPath);
124+
String get amdJsMapFileName => p.basename(amdJsMapPath);
125+
String get ddcJsFileName => p.basename(ddcJsPath);
126+
String get ddcJsMapFileName => p.basename(ddcJsMapPath);
127+
String get summaryFileName => p.basename(summaryPath);
128+
String get fullDillFileName => p.basename(fullDillPath);
129+
130+
final String amdJsPath;
131+
final String amdJsMapPath;
132+
final String ddcJsPath;
133+
final String ddcJsMapPath;
134+
final String summaryPath;
135+
final String fullDillPath;
189136

190137
final String ddcModuleLoaderJsPath;
191138
final String requireJsPath;
@@ -200,18 +147,12 @@ class TestSdkLayout {
200147

201148
const TestSdkLayout({
202149
required this.sdkDirectory,
203-
required this.soundAmdJsPath,
204-
required this.soundAmdJsMapPath,
205-
required this.soundDdcJsPath,
206-
required this.soundDdcJsMapPath,
207-
required this.soundSummaryPath,
208-
required this.soundFullDillPath,
209-
required this.weakAmdJsPath,
210-
required this.weakAmdJsMapPath,
211-
required this.weakDdcJsPath,
212-
required this.weakDdcJsMapPath,
213-
required this.weakSummaryPath,
214-
required this.weakFullDillPath,
150+
required this.amdJsPath,
151+
required this.amdJsMapPath,
152+
required this.ddcJsPath,
153+
required this.ddcJsMapPath,
154+
required this.summaryPath,
155+
required this.fullDillPath,
215156
required this.ddcModuleLoaderJsPath,
216157
required this.requireJsPath,
217158
required this.stackTraceMapperPath,
@@ -227,8 +168,7 @@ class TestSdkLayout {
227168
static SdkConfiguration createConfiguration(TestSdkLayout sdkLayout) =>
228169
SdkConfiguration(
229170
sdkDirectory: sdkLayout.sdkDirectory,
230-
weakSdkSummaryPath: sdkLayout.weakSummaryPath,
231-
soundSdkSummaryPath: sdkLayout.soundSummaryPath,
171+
sdkSummaryPath: sdkLayout.summaryPath,
232172
compilerWorkerPath: sdkLayout.dartdevcSnapshotPath,
233173
);
234174
}

0 commit comments

Comments
 (0)