OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 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 | 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 dart_style.src.rule.rule; | 5 library dart_style.src.rule.rule; |
6 | 6 |
7 import '../chunk.dart'; | 7 import '../chunk.dart'; |
8 import '../fast_hash.dart'; | 8 import '../fast_hash.dart'; |
9 | 9 |
10 /// A constraint that determines the different ways a related set of chunks may | 10 /// A constraint that determines the different ways a related set of chunks may |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 SimpleRule({int cost, bool splitsOnInnerRules}) | 112 SimpleRule({int cost, bool splitsOnInnerRules}) |
113 : cost = cost != null ? cost : Cost.normal, | 113 : cost = cost != null ? cost : Cost.normal, |
114 splitsOnInnerRules = | 114 splitsOnInnerRules = |
115 splitsOnInnerRules != null ? splitsOnInnerRules : true; | 115 splitsOnInnerRules != null ? splitsOnInnerRules : true; |
116 | 116 |
117 bool isSplit(int value, Chunk chunk) => value == 1; | 117 bool isSplit(int value, Chunk chunk) => value == 1; |
118 | 118 |
119 String toString() => "Simple${super.toString()}"; | 119 String toString() => "Simple${super.toString()}"; |
120 } | 120 } |
OLD | NEW |