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 library options_helper; | 5 library options_helper; |
6 | 6 |
7 import 'package:compiler/src/options.dart'; | 7 import 'package:compiler/src/options.dart'; |
8 export 'package:compiler/src/options.dart'; | 8 export 'package:compiler/src/options.dart'; |
9 | 9 |
10 class MockDiagnosticOptions implements DiagnosticOptions { | 10 class MockDiagnosticOptions implements DiagnosticOptions { |
11 const MockDiagnosticOptions(); | 11 const MockDiagnosticOptions(); |
12 | 12 |
13 bool get fatalWarnings => false; | 13 bool get fatalWarnings => false; |
14 bool get terseDiagnostics => false; | 14 bool get terseDiagnostics => false; |
15 bool get suppressWarnings => false; | 15 bool get suppressWarnings => false; |
16 bool get suppressHints => false; | 16 bool get suppressHints => false; |
17 bool get showAllPackageWarnings => false; | 17 bool get showAllPackageWarnings => false; |
18 bool get hidePackageWarnings => true; | 18 bool get hidePackageWarnings => true; |
19 bool showPackageWarningsFor(Uri uri) => false; | 19 bool showPackageWarningsFor(Uri uri) => false; |
20 } | 20 } |
21 | 21 |
22 class MockParserOptions implements ParserOptions { | 22 class MockParserOptions implements ParserOptions { |
23 bool get enableConditionalDirectives => true; | |
24 bool get enableGenericMethodSyntax => true; | 23 bool get enableGenericMethodSyntax => true; |
25 } | 24 } |
OLD | NEW |