Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1176)

Unified Diff: packages/dart_style/lib/src/line_splitting/solve_state.dart

Issue 2990843002: Removed fixed dependencies (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/dart_style/lib/src/formatter_options.dart ('k') | packages/dart_style/lib/src/rule/argument.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/dart_style/lib/src/line_splitting/solve_state.dart
diff --git a/packages/dart_style/lib/src/line_splitting/solve_state.dart b/packages/dart_style/lib/src/line_splitting/solve_state.dart
index e1e9168c2a2570e90e5c7b149978e27c1776ab0f..64e96300b58ba40ccf70555d08f0f27f7714d04b 100644
--- a/packages/dart_style/lib/src/line_splitting/solve_state.dart
+++ b/packages/dart_style/lib/src/line_splitting/solve_state.dart
@@ -195,7 +195,7 @@ class SolveState {
for (var value = 1; value < rule.numValues; value++) {
var boundRules = unsplitRules.clone();
- var mustSplitRules;
+ List<Rule> mustSplitRules;
var valid = boundRules.tryBind(_splitter.rules, rule, value, (rule) {
if (mustSplitRules == null) mustSplitRules = [];
mustSplitRules.add(rule);
@@ -453,9 +453,9 @@ class SolveState {
void _ensureBoundRulesInUnboundLines() {
if (_boundRulesInUnboundLines != null) return;
- _boundRulesInUnboundLines = new Set();
+ _boundRulesInUnboundLines = new Set<Rule>();
- var boundInLine = new Set();
+ var boundInLine = new Set<Rule>();
var hasUnbound = false;
for (var i = 0; i < _splitter.chunks.length - 1; i++) {
@@ -528,7 +528,7 @@ class SolveState {
_unboundConstraints = {};
for (var unbound in _unboundRules) {
- var disallowedValues;
+ Set<int> disallowedValues;
for (var bound in unbound.constrainedRules) {
if (!_boundRules.contains(bound)) continue;
@@ -552,7 +552,7 @@ class SolveState {
}
if (disallowedValues == null) {
- disallowedValues = new Set();
+ disallowedValues = new Set<int>();
_unboundConstraints[unbound] = disallowedValues;
}
« no previous file with comments | « packages/dart_style/lib/src/formatter_options.dart ('k') | packages/dart_style/lib/src/rule/argument.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698