| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 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 | 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 services.status; | 5 library services.status; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/protocol2.dart'; | 7 import 'package:analysis_server/src/protocol.dart'; |
| 8 | 8 |
| 9 | 9 |
| 10 /** | 10 /** |
| 11 * An outcome of a condition checking operation. | 11 * An outcome of a condition checking operation. |
| 12 */ | 12 */ |
| 13 class RefactoringStatus { | 13 class RefactoringStatus { |
| 14 /** | 14 /** |
| 15 * The current severity of this [RefactoringStatus] - the maximum of the | 15 * The current severity of this [RefactoringStatus] - the maximum of the |
| 16 * severities of its [entries]. | 16 * severities of its [entries]. |
| 17 */ | 17 */ |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 /** | 182 /** |
| 183 * Adds the given [RefactoringProblem] and updates [severity]. | 183 * Adds the given [RefactoringProblem] and updates [severity]. |
| 184 */ | 184 */ |
| 185 void _addProblem(RefactoringProblem problem) { | 185 void _addProblem(RefactoringProblem problem) { |
| 186 problems.add(problem); | 186 problems.add(problem); |
| 187 // update maximum severity | 187 // update maximum severity |
| 188 RefactoringProblemSeverity severity = problem.severity; | 188 RefactoringProblemSeverity severity = problem.severity; |
| 189 _severity = RefactoringProblemSeverity.max(_severity, severity); | 189 _severity = RefactoringProblemSeverity.max(_severity, severity); |
| 190 } | 190 } |
| 191 } | 191 } |
| OLD | NEW |