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

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

Issue 837393004: Error code enum fix [TBR]. (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 | no next file » | 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 2824 matching lines...) Expand 10 before | Expand all | Expand 10 after
2835 /** 2835 /**
2836 * Polymer specific semantic problems. 2836 * Polymer specific semantic problems.
2837 */ 2837 */
2838 static const ErrorType POLYMER = 2838 static const ErrorType POLYMER =
2839 const ErrorType('POLYMER', 7, ErrorSeverity.INFO); 2839 const ErrorType('POLYMER', 7, ErrorSeverity.INFO);
2840 2840
2841 /** 2841 /**
2842 * Lint warnings describe style and best practice recommendations that can be used to formalize a project's style 2842 * Lint warnings describe style and best practice recommendations that can be used to formalize a project's style
2843 * guidelines. 2843 * guidelines.
2844 */ 2844 */
2845 static const ErrorType LINT = const ErrorType('LINT', 9, ErrorSeverity.INFO); 2845 static const ErrorType LINT = const ErrorType('LINT', 8, ErrorSeverity.INFO);
2846 2846
2847 static const List<ErrorType> values = const [ 2847 static const List<ErrorType> values = const [
2848 TODO, 2848 TODO,
2849 HINT, 2849 HINT,
2850 COMPILE_TIME_ERROR, 2850 COMPILE_TIME_ERROR,
2851 CHECKED_MODE_COMPILE_TIME_ERROR, 2851 CHECKED_MODE_COMPILE_TIME_ERROR,
2852 STATIC_WARNING, 2852 STATIC_WARNING,
2853 STATIC_TYPE_WARNING, 2853 STATIC_TYPE_WARNING,
2854 SYNTACTIC_ERROR, 2854 SYNTACTIC_ERROR,
2855 POLYMER, 2855 POLYMER,
(...skipping 2177 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 | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698