| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2015, 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 /// Configuration of DDC rule set. | |
| 6 library dev_compiler.config; | |
| 7 | |
| 8 // Options shared by the compiler and runtime. | |
| 9 class TypeOptions { | |
| 10 // A list of non-nullable type names (e.g., 'int') | |
| 11 static const List<String> NONNULLABLE_TYPES = const <String>[]; | |
| 12 final List<String> nonnullableTypes; | |
| 13 | |
| 14 TypeOptions({this.nonnullableTypes: NONNULLABLE_TYPES}); | |
| 15 } | |
| 16 | |
| 17 List<String> optionsToList(String option, | |
| 18 {List<String> defaultValue: const <String>[]}) { | |
| 19 if (option == null) { | |
| 20 return defaultValue; | |
| 21 } else if (option.isEmpty) { | |
| 22 return <String>[]; | |
| 23 } else { | |
| 24 return option.split(','); | |
| 25 } | |
| 26 } | |
| OLD | NEW |