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

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

Issue 506433002: Finish modifying analysis server to make use of code generation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
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/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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698