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

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

Issue 1398293002: Move the wire protocol support into the public API (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add missed files Created 5 years, 2 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 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698