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

Side by Side Diff: pkg/analyzer/lib/src/generated/error.dart

Issue 843583003: Lint cleanup. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 engine.error; 5 library engine.error;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'ast.dart' show AstNode; 9 import 'ast.dart' show AstNode;
10 import 'element.dart'; 10 import 'element.dart';
(...skipping 3236 matching lines...) Expand 10 before | Expand all | Expand 10 after
3247 * 3247 *
3248 * Unlike [HintCode]s, which are akin to traditional static warnings from a comp iler, lint recommendations focus on 3248 * Unlike [HintCode]s, which are akin to traditional static warnings from a comp iler, lint recommendations focus on
3249 * matters of style and practices that might aggregated to define a project's st yle guide. 3249 * matters of style and practices that might aggregated to define a project's st yle guide.
3250 */ 3250 */
3251 class LintCode extends ErrorCode { 3251 class LintCode extends ErrorCode {
3252 3252
3253 const LintCode(String name, String message, [String correction]) 3253 const LintCode(String name, String message, [String correction])
3254 : super(name, message, correction); 3254 : super(name, message, correction);
3255 3255
3256 @override 3256 @override
3257 ErrorSeverity get errorSeverity => ErrorSeverity.LINT; 3257 ErrorSeverity get errorSeverity => ErrorSeverity.INFO;
3258 3258
3259 @override 3259 @override
3260 ErrorType get type => ErrorType.LINT; 3260 ErrorType get type => ErrorType.LINT;
3261 } 3261 }
3262 3262
3263 /** 3263 /**
3264 * The enumeration `PolymerCode` defines Polymer specific problems. 3264 * The enumeration `PolymerCode` defines Polymer specific problems.
3265 */ 3265 */
3266 class PolymerCode extends ErrorCode { 3266 class PolymerCode extends ErrorCode {
3267 static const PolymerCode ATTRIBUTE_FIELD_NOT_PUBLISHED = const PolymerCode( 3267 static const PolymerCode ATTRIBUTE_FIELD_NOT_PUBLISHED = const PolymerCode(
(...skipping 1765 matching lines...) Expand 10 before | Expand all | Expand 10 after
5033 * Initialize a newly created error code to have the given [name]. 5033 * Initialize a newly created error code to have the given [name].
5034 */ 5034 */
5035 const TodoCode(String name) : super(name, "{0}"); 5035 const TodoCode(String name) : super(name, "{0}");
5036 5036
5037 @override 5037 @override
5038 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; 5038 ErrorSeverity get errorSeverity => ErrorSeverity.INFO;
5039 5039
5040 @override 5040 @override
5041 ErrorType get type => ErrorType.TODO; 5041 ErrorType get type => ErrorType.TODO;
5042 } 5042 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698