| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2014, 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 trydart.settings; |
| 6 |
| 7 import 'user_option.dart'; |
| 8 |
| 9 const BooleanUserOption _alwaysRunInWorker = |
| 10 const BooleanUserOption('alwaysRunInWorker'); |
| 11 |
| 12 bool get alwaysRunInWorker => _alwaysRunInWorker.value; |
| 13 |
| 14 void set alwaysRunInWorker(bool b) { |
| 15 _alwaysRunInWorker.value = b; |
| 16 } |
| 17 |
| 18 const BooleanUserOption _verboseCompiler = |
| 19 const BooleanUserOption('verboseCompiler'); |
| 20 |
| 21 bool get verboseCompiler => _verboseCompiler.value; |
| 22 |
| 23 void set verboseCompiler(bool b) { |
| 24 _verboseCompiler.value = b; |
| 25 } |
| 26 |
| 27 const BooleanUserOption _minified = |
| 28 const BooleanUserOption('minified'); |
| 29 |
| 30 bool get minified => _minified.value; |
| 31 |
| 32 void set minified(bool b) { |
| 33 _minified.value = b; |
| 34 } |
| 35 |
| 36 const BooleanUserOption _onlyAnalyze = |
| 37 const BooleanUserOption('onlyAnalyze'); |
| 38 |
| 39 bool get onlyAnalyze => _onlyAnalyze.value; |
| 40 |
| 41 void set onlyAnalyze(bool b) { |
| 42 _onlyAnalyze.value = b; |
| 43 } |
| 44 |
| 45 const BooleanUserOption _enableDartMind = |
| 46 const BooleanUserOption('enableDartMind'); |
| 47 |
| 48 bool get enableDartMind => _enableDartMind.value; |
| 49 |
| 50 void set enableDartMind(bool b) { |
| 51 _enableDartMind.value = b; |
| 52 } |
| 53 |
| 54 const BooleanUserOption _compilationPaused = |
| 55 const BooleanUserOption('compilationPaused'); |
| 56 |
| 57 bool get compilationPaused => _compilationPaused.value; |
| 58 |
| 59 void set compilationPaused(bool b) { |
| 60 _compilationPaused.value = b; |
| 61 } |
| 62 |
| 63 const StringUserOption _codeFont = |
| 64 const StringUserOption('codeFont'); |
| 65 |
| 66 String get codeFont => _codeFont.value; |
| 67 |
| 68 void set codeFont(String b) { |
| 69 _codeFont.value = b; |
| 70 } |
| 71 |
| 72 const StringUserOption _currentSample = |
| 73 const StringUserOption('currentSample', isHidden: true); |
| 74 |
| 75 String get currentSample => _currentSample.value; |
| 76 |
| 77 void set currentSample(String b) { |
| 78 _currentSample.value = b; |
| 79 } |
| 80 |
| 81 const StringUserOption _theme = |
| 82 const StringUserOption('theme'); |
| 83 |
| 84 String get theme => _theme.value; |
| 85 |
| 86 void set theme(String b) { |
| 87 _theme.value = b; |
| 88 } |
| 89 |
| 90 const BooleanUserOption enableCodeCompletion = |
| 91 const BooleanUserOption('enableCodeCompletion', isHidden: true); |
| 92 |
| 93 const List<UserOption> options = const <UserOption>[ |
| 94 _alwaysRunInWorker, |
| 95 _verboseCompiler, |
| 96 _minified, |
| 97 _onlyAnalyze, |
| 98 _enableDartMind, |
| 99 _compilationPaused, |
| 100 _codeFont, |
| 101 _theme, |
| 102 _currentSample, |
| 103 enableCodeCompletion, |
| 104 ]; |
| OLD | NEW |