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

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

Issue 1798993003: Added tests; improved test output; code clean-up (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/constant.dart ('k') | pkg/analyzer/test/src/task/dart_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 analyzer.src.generated.error; 5 library analyzer.src.generated.error;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart' show AstNode; 9 import 'package:analyzer/dart/ast/ast.dart' show AstNode;
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 3042 matching lines...) Expand 10 before | Expand all | Expand 10 after
3053 3053
3054 /** 3054 /**
3055 * The type of the error. 3055 * The type of the error.
3056 */ 3056 */
3057 ErrorType get type; 3057 ErrorType get type;
3058 3058
3059 /** 3059 /**
3060 * The unique name of this error code. 3060 * The unique name of this error code.
3061 */ 3061 */
3062 String get uniqueName => "$runtimeType.$name"; 3062 String get uniqueName => "$runtimeType.$name";
3063
3064 @override
3065 String toString() => uniqueName;
3063 } 3066 }
3064 3067
3065 /** 3068 /**
3066 * The properties that can be associated with an [AnalysisError]. 3069 * The properties that can be associated with an [AnalysisError].
3067 */ 3070 */
3068 class ErrorProperty extends Enum<ErrorProperty> { 3071 class ErrorProperty extends Enum<ErrorProperty> {
3069 /** 3072 /**
3070 * A property whose value is a list of [FieldElement]s that are final, but 3073 * A property whose value is a list of [FieldElement]s that are final, but
3071 * not initialized by a constructor. 3074 * not initialized by a constructor.
3072 */ 3075 */
(...skipping 2671 matching lines...) Expand 10 before | Expand all | Expand 10 after
5744 * Initialize a newly created error code to have the given [name]. 5747 * Initialize a newly created error code to have the given [name].
5745 */ 5748 */
5746 const TodoCode(String name) : super(name, "{0}"); 5749 const TodoCode(String name) : super(name, "{0}");
5747 5750
5748 @override 5751 @override
5749 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; 5752 ErrorSeverity get errorSeverity => ErrorSeverity.INFO;
5750 5753
5751 @override 5754 @override
5752 ErrorType get type => ErrorType.TODO; 5755 ErrorType get type => ErrorType.TODO;
5753 } 5756 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/constant.dart ('k') | pkg/analyzer/test/src/task/dart_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698