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