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

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

Issue 103233003: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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 | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/src/generated/html.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 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 3
4 library engine.error; 4 library engine.error;
5 5
6 import 'java_core.dart'; 6 import 'java_core.dart';
7 import 'source.dart'; 7 import 'source.dart';
8 import 'scanner.dart' show Token; 8 import 'scanner.dart' show Token;
9 import 'ast.dart' show ASTNode; 9 import 'ast.dart' show ASTNode;
10 import 'element.dart' show Element; 10 import 'element.dart' show Element;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 * 108 *
109 * @param property the property whose value is to be returned 109 * @param property the property whose value is to be returned
110 * @param value the new value of the given property 110 * @param value the new value of the given property
111 */ 111 */
112 void setProperty(ErrorProperty property, Object value) { 112 void setProperty(ErrorProperty property, Object value) {
113 _propertyMap[property] = value; 113 _propertyMap[property] = value;
114 } 114 }
115 } 115 }
116 116
117 /** 117 /**
118 * Instances of the class `BooleanErrorListener` implement a listener that keeps track of
119 * whether an error has been reported to it.
120 */
121 class BooleanErrorListener implements AnalysisErrorListener {
122 /**
123 * A flag indicating whether an error has been reported to this listener.
124 */
125 bool errorReported = false;
126
127 void onError(AnalysisError error) {
128 errorReported = true;
129 }
130 }
131
132 /**
118 * Instances of the class `ErrorReporter` wrap an error listener with utility me thods used to 133 * Instances of the class `ErrorReporter` wrap an error listener with utility me thods used to
119 * create the errors being reported. 134 * create the errors being reported.
120 * 135 *
121 * @coverage dart.engine.error 136 * @coverage dart.engine.error
122 */ 137 */
123 class ErrorReporter { 138 class ErrorReporter {
124 /** 139 /**
125 * The error listener to which errors will be reported. 140 * The error listener to which errors will be reported.
126 */ 141 */
127 AnalysisErrorListener _errorListener; 142 AnalysisErrorListener _errorListener;
(...skipping 3393 matching lines...) Expand 10 before | Expand all | Expand 10 after
3521 } 3536 }
3522 3537
3523 String get correction => correction6; 3538 String get correction => correction6;
3524 3539
3525 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; 3540 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity;
3526 3541
3527 String get message => _message; 3542 String get message => _message;
3528 3543
3529 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; 3544 ErrorType get type => ErrorType.STATIC_TYPE_WARNING;
3530 } 3545 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/src/generated/html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698