| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:collection' show HashSet; | 5 import 'dart:collection' show HashSet; |
| 6 import 'package:args/args.dart' show ArgParser, ArgResults; | 6 import 'package:args/args.dart' show ArgParser, ArgResults; |
| 7 import 'package:args/src/usage_exception.dart' show UsageException; | 7 import 'package:args/src/usage_exception.dart' show UsageException; |
| 8 import 'package:analyzer/analyzer.dart' | 8 import 'package:analyzer/analyzer.dart' |
| 9 show | 9 show |
| 10 AnalysisError, | 10 AnalysisError, |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 } | 355 } |
| 356 return map; | 356 return map; |
| 357 } | 357 } |
| 358 } | 358 } |
| 359 | 359 |
| 360 /// (Public for tests) the error code used when a part is missing. | 360 /// (Public for tests) the error code used when a part is missing. |
| 361 final missingPartErrorCode = const CompileTimeErrorCode( | 361 final missingPartErrorCode = const CompileTimeErrorCode( |
| 362 'MISSING_PART', 'The part was not supplied as an input to the compiler.'); | 362 'MISSING_PART', 'The part was not supplied as an input to the compiler.'); |
| 363 | 363 |
| 364 /// (Public for tests) the error code used when a part is unused. | 364 /// (Public for tests) the error code used when a part is unused. |
| 365 final unusedPartWarningCode = const StaticWarningCode( | 365 final unusedPartWarningCode = const StaticWarningCode('UNUSED_PART', |
| 366 'UNUSED_PART', 'The part was not used by any libraries being compiled.'); | 366 'The part was not used by any libraries being compiled.', null, false); |
| OLD | NEW |