| 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', isHidden: true); | |
| 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 BooleanUserOption incrementalCompilation = | |
| 94 const BooleanUserOption('incrementalCompilation'); | |
| 95 | |
| 96 const BooleanUserOption live = const BooleanUserOption('live', isHidden: true); | |
| 97 | |
| 98 const BooleanUserOption alwaysRunInIframe = | |
| 99 const BooleanUserOption('alwaysRunInIframe', isHidden: true); | |
| 100 | |
| 101 const BooleanUserOption communicateViaBlobs = | |
| 102 const BooleanUserOption('communicateViaBlobs', isHidden: true); | |
| 103 | |
| 104 const BooleanUserOption hasSelectionModify = | |
| 105 const BooleanUserOption('hasSelectionModify', isHidden: true); | |
| 106 | |
| 107 const List<UserOption> options = const <UserOption>[ | |
| 108 _alwaysRunInWorker, | |
| 109 _verboseCompiler, | |
| 110 _minified, | |
| 111 _onlyAnalyze, | |
| 112 _enableDartMind, | |
| 113 _compilationPaused, | |
| 114 incrementalCompilation, | |
| 115 live, | |
| 116 enableCodeCompletion, | |
| 117 _codeFont, | |
| 118 _theme, | |
| 119 _currentSample, | |
| 120 alwaysRunInIframe, | |
| 121 communicateViaBlobs, | |
| 122 hasSelectionModify, | |
| 123 ]; | |
| OLD | NEW |