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

Side by Side Diff: pkg/analysis_server/lib/src/services/correction/status.dart

Issue 2879273002: Make server use the common protocol classes (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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 import 'package:analyzer_plugin/protocol/protocol_common.dart';
6
7 import 'package:analysis_server/protocol/protocol_generated.dart';
8 6
9 /** 7 /**
10 * An outcome of a condition checking operation. 8 * An outcome of a condition checking operation.
11 */ 9 */
12 class RefactoringStatus { 10 class RefactoringStatus {
13 /** 11 /**
14 * The current severity of this [RefactoringStatus] - the maximum of the 12 * The current severity of this [RefactoringStatus] - the maximum of the
15 * severities of its [entries]. 13 * severities of its [entries].
16 */ 14 */
17 RefactoringProblemSeverity _severity = null; 15 RefactoringProblemSeverity _severity = null;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 /** 170 /**
173 * Adds the given [RefactoringProblem] and updates [severity]. 171 * Adds the given [RefactoringProblem] and updates [severity].
174 */ 172 */
175 void _addProblem(RefactoringProblem problem) { 173 void _addProblem(RefactoringProblem problem) {
176 problems.add(problem); 174 problems.add(problem);
177 // update maximum severity 175 // update maximum severity
178 RefactoringProblemSeverity severity = problem.severity; 176 RefactoringProblemSeverity severity = problem.severity;
179 _severity = RefactoringProblemSeverity.max(_severity, severity); 177 _severity = RefactoringProblemSeverity.max(_severity, severity);
180 } 178 }
181 } 179 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698