33// BSD-style license that can be found in the LICENSE file.
44import 'dart:io' ;
55
6- // TODO(rnystrom): Differences from test.dart's version:
7- // - Remove special handling for "ff" as firefox.
8- // - "windows" -> "win".
9- // - "macos" -> "mac".
10- // - toString() on enum classes is just name.
11- // - builderTag and babel default to empty string, not null.
12- // Need to migrate test.dart to not expect the above before it can use this.
13-
146// READ ME! If you add a new field to this, make sure to add it to
157// [parse()], [optionsEqual()], [hashCode], and [toString()]. A good check is to
168// comment out an existing field and see what breaks. Every error is a place
@@ -257,7 +249,6 @@ class Configuration {
257249 isCsp: boolOption ("csp" ),
258250 isHostChecked: boolOption ("host-checked" ),
259251 isMinified: boolOption ("minified" ),
260- previewDart2: boolOption ("preview-dart-2" ),
261252 useAnalyzerCfe: boolOption ("use-cfe" ),
262253 useAnalyzerFastaParser: boolOption ("analyzer-use-fasta-parser" ),
263254 useBlobs: boolOption ("use-blobs" ),
@@ -308,9 +299,6 @@ class Configuration {
308299
309300 final bool isMinified;
310301
311- // TODO(rnystrom): Remove this when Dart 1.0 is no longer supported.
312- final bool previewDart2;
313-
314302 // TODO(whesse): Remove these when only fasta front end is in analyzer.
315303 final bool useAnalyzerCfe;
316304 final bool useAnalyzerFastaParser;
@@ -336,7 +324,6 @@ class Configuration {
336324 bool isCsp,
337325 bool isHostChecked,
338326 bool isMinified,
339- bool previewDart2,
340327 bool useAnalyzerCfe,
341328 bool useAnalyzerFastaParser,
342329 bool useBlobs,
@@ -354,7 +341,6 @@ class Configuration {
354341 isCsp = isCsp ?? false ,
355342 isHostChecked = isHostChecked ?? false ,
356343 isMinified = isMinified ?? false ,
357- previewDart2 = previewDart2 ?? true ,
358344 useAnalyzerCfe = useAnalyzerCfe ?? false ,
359345 useAnalyzerFastaParser = useAnalyzerFastaParser ?? false ,
360346 useBlobs = useBlobs ?? false ,
@@ -381,7 +367,6 @@ class Configuration {
381367 isCsp == other.isCsp &&
382368 isHostChecked == other.isHostChecked &&
383369 isMinified == other.isMinified &&
384- previewDart2 == other.previewDart2 &&
385370 useAnalyzerCfe == other.useAnalyzerCfe &&
386371 useAnalyzerFastaParser == other.useAnalyzerFastaParser &&
387372 useBlobs == other.useBlobs &&
@@ -414,7 +399,6 @@ class Configuration {
414399 isCsp,
415400 isHostChecked,
416401 isMinified,
417- previewDart2,
418402 useAnalyzerCfe,
419403 useAnalyzerFastaParser,
420404 useBlobs,
@@ -448,7 +432,6 @@ class Configuration {
448432 if (isCsp) fields.add ("csp" );
449433 if (isHostChecked) fields.add ("host-checked" );
450434 if (isMinified) fields.add ("minified" );
451- if (previewDart2) fields.add ("preview-dart-2" );
452435 if (useAnalyzerCfe) fields.add ("use-cfe" );
453436 if (useAnalyzerFastaParser) fields.add ("analyzer-use-fasta-parser" );
454437 if (useBlobs) fields.add ("use-blobs" );
@@ -509,9 +492,6 @@ class Configuration {
509492 if (isMinified || other.isMinified) {
510493 fields.add ("isMinified $isMinified ${other .isMinified }" );
511494 }
512- if (previewDart2 || other.previewDart2) {
513- fields.add ("previewDart2 $previewDart2 ${other .previewDart2 }" );
514- }
515495 if (useAnalyzerCfe || other.useAnalyzerCfe) {
516496 fields.add ("useAnalyzerCfe $useAnalyzerCfe ${other .useAnalyzerCfe }" );
517497 }
0 commit comments