| 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/protocol.dart'; | 7 import 'package:analysis_server/plugin/protocol/protocol.dart'; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * An outcome of a condition checking operation. | 10 * An outcome of a condition checking operation. |
| 11 */ | 11 */ |
| 12 class RefactoringStatus { | 12 class RefactoringStatus { |
| 13 /** | 13 /** |
| 14 * The current severity of this [RefactoringStatus] - the maximum of the | 14 * The current severity of this [RefactoringStatus] - the maximum of the |
| 15 * severities of its [entries]. | 15 * severities of its [entries]. |
| 16 */ | 16 */ |
| 17 RefactoringProblemSeverity _severity = null; | 17 RefactoringProblemSeverity _severity = null; |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 /** | 172 /** |
| 173 * Adds the given [RefactoringProblem] and updates [severity]. | 173 * Adds the given [RefactoringProblem] and updates [severity]. |
| 174 */ | 174 */ |
| 175 void _addProblem(RefactoringProblem problem) { | 175 void _addProblem(RefactoringProblem problem) { |
| 176 problems.add(problem); | 176 problems.add(problem); |
| 177 // update maximum severity | 177 // update maximum severity |
| 178 RefactoringProblemSeverity severity = problem.severity; | 178 RefactoringProblemSeverity severity = problem.severity; |
| 179 _severity = RefactoringProblemSeverity.max(_severity, severity); | 179 _severity = RefactoringProblemSeverity.max(_severity, severity); |
| 180 } | 180 } |
| 181 } | 181 } |
| OLD | NEW |