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

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

Issue 137143010: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.error; 8 library engine.error;
9 9
10 import 'java_core.dart'; 10 import 'java_core.dart';
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 _errorReported = true; 136 _errorReported = true;
137 } 137 }
138 } 138 }
139 139
140 /** 140 /**
141 * The enumeration `AngularCode` defines Angular specific problems. 141 * The enumeration `AngularCode` defines Angular specific problems.
142 */ 142 */
143 class AngularCode extends Enum<AngularCode> implements ErrorCode { 143 class AngularCode extends Enum<AngularCode> implements ErrorCode {
144 static final AngularCode CANNOT_PARSE_SELECTOR = new AngularCode.con1('CANNOT_ PARSE_SELECTOR', 0, "The selector '%s' cannot be parsed"); 144 static final AngularCode CANNOT_PARSE_SELECTOR = new AngularCode.con1('CANNOT_ PARSE_SELECTOR', 0, "The selector '%s' cannot be parsed");
145 145
146 static final AngularCode EXPECTED_IDENTIFIER = new AngularCode.con1('EXPECTED_ IDENTIFIER', 1, "Expected an identifier"); 146 static final AngularCode INVALID_PROPERTY_KIND = new AngularCode.con1('INVALID _PROPERTY_KIND', 1, "Unknown property binding kind '%s', use one of the '@', '=> ', '=>!' or '<=>'");
147 147
148 static final AngularCode EXPECTED_IN = new AngularCode.con1('EXPECTED_IN', 2, "Expected 'in' keyword"); 148 static final AngularCode INVALID_PROPERTY_FIELD = new AngularCode.con1('INVALI D_PROPERTY_FIELD', 2, "Unknown property field '%s'");
149 149
150 static final AngularCode INVALID_PROPERTY_KIND = new AngularCode.con1('INVALID _PROPERTY_KIND', 3, "Unknown property binding kind '%s', use one of the '@', '=> ', '=>!' or '<=>'"); 150 static final AngularCode INVALID_PROPERTY_MAP = new AngularCode.con1('INVALID_ PROPERTY_MAP', 3, "Argument 'map' must be a constant map literal");
151 151
152 static final AngularCode INVALID_PROPERTY_FIELD = new AngularCode.con1('INVALI D_PROPERTY_FIELD', 4, "Unknown property field '%s'"); 152 static final AngularCode INVALID_PROPERTY_NAME = new AngularCode.con1('INVALID _PROPERTY_NAME', 4, "Property name must be a string literal");
153 153
154 static final AngularCode INVALID_PROPERTY_MAP = new AngularCode.con1('INVALID_ PROPERTY_MAP', 5, "Argument 'map' must be a constant map literal"); 154 static final AngularCode INVALID_PROPERTY_SPEC = new AngularCode.con1('INVALID _PROPERTY_SPEC', 5, "Property binding specification must be a string literal");
155 155
156 static final AngularCode INVALID_PROPERTY_NAME = new AngularCode.con1('INVALID _PROPERTY_NAME', 6, "Property name must be a string literal"); 156 static final AngularCode INVALID_REPEAT_SYNTAX = new AngularCode.con1('INVALID _REPEAT_SYNTAX', 6, "Expected statement in form '_item_ in _collection_ [tracked by _id_]'");
157 157
158 static final AngularCode INVALID_PROPERTY_SPEC = new AngularCode.con1('INVALID _PROPERTY_SPEC', 7, "Property binding specification must be a string literal"); 158 static final AngularCode INVALID_REPEAT_ITEM_SYNTAX = new AngularCode.con1('IN VALID_REPEAT_ITEM_SYNTAX', 7, "Item must by identifier or in '(_key_, _value_)' pair.");
159 159
160 static final AngularCode MISSING_CSS_URL = new AngularCode.con1('MISSING_CSS_U RL', 8, "Argument 'cssUrl' must be provided"); 160 static final AngularCode INVALID_URI = new AngularCode.con1('INVALID_URI', 8, "Invalid URI syntax: '%s'");
161 161
162 static final AngularCode MISSING_NAME = new AngularCode.con1('MISSING_NAME', 9 , "Argument 'name' must be provided"); 162 static final AngularCode MISSING_CSS_URL = new AngularCode.con1('MISSING_CSS_U RL', 9, "Argument 'cssUrl' must be provided");
163 163
164 static final AngularCode MISSING_PUBLISH_AS = new AngularCode.con1('MISSING_PU BLISH_AS', 10, "Argument 'publishAs' must be provided"); 164 static final AngularCode MISSING_FILTER_COLON = new AngularCode.con1('MISSING_ FILTER_COLON', 10, "Missing ':' before filter argument");
165 165
166 static final AngularCode MISSING_TEMPLATE_URL = new AngularCode.con1('MISSING_ TEMPLATE_URL', 11, "Argument 'templateUrl' must be provided"); 166 static final AngularCode MISSING_NAME = new AngularCode.con1('MISSING_NAME', 1 1, "Argument 'name' must be provided");
167 167
168 static final AngularCode MISSING_SELECTOR = new AngularCode.con1('MISSING_SELE CTOR', 12, "Argument 'selector' must be provided"); 168 static final AngularCode MISSING_PUBLISH_AS = new AngularCode.con1('MISSING_PU BLISH_AS', 12, "Argument 'publishAs' must be provided");
169
170 static final AngularCode MISSING_TEMPLATE_URL = new AngularCode.con1('MISSING_ TEMPLATE_URL', 13, "Argument 'templateUrl' must be provided");
171
172 static final AngularCode MISSING_SELECTOR = new AngularCode.con1('MISSING_SELE CTOR', 14, "Argument 'selector' must be provided");
173
174 static final AngularCode URI_DOES_NOT_EXIST = new AngularCode.con1('URI_DOES_N OT_EXIST', 15, "Target of URI does not exist: '%s'");
169 175
170 static final List<AngularCode> values = [ 176 static final List<AngularCode> values = [
171 CANNOT_PARSE_SELECTOR, 177 CANNOT_PARSE_SELECTOR,
172 EXPECTED_IDENTIFIER,
173 EXPECTED_IN,
174 INVALID_PROPERTY_KIND, 178 INVALID_PROPERTY_KIND,
175 INVALID_PROPERTY_FIELD, 179 INVALID_PROPERTY_FIELD,
176 INVALID_PROPERTY_MAP, 180 INVALID_PROPERTY_MAP,
177 INVALID_PROPERTY_NAME, 181 INVALID_PROPERTY_NAME,
178 INVALID_PROPERTY_SPEC, 182 INVALID_PROPERTY_SPEC,
183 INVALID_REPEAT_SYNTAX,
184 INVALID_REPEAT_ITEM_SYNTAX,
185 INVALID_URI,
179 MISSING_CSS_URL, 186 MISSING_CSS_URL,
187 MISSING_FILTER_COLON,
180 MISSING_NAME, 188 MISSING_NAME,
181 MISSING_PUBLISH_AS, 189 MISSING_PUBLISH_AS,
182 MISSING_TEMPLATE_URL, 190 MISSING_TEMPLATE_URL,
183 MISSING_SELECTOR]; 191 MISSING_SELECTOR,
192 URI_DOES_NOT_EXIST];
184 193
185 /** 194 /**
186 * The template used to create the message to be displayed for this error. 195 * The template used to create the message to be displayed for this error.
187 */ 196 */
188 final String message; 197 String _message;
189 198
190 /** 199 /**
191 * The template used to create the correction to be displayed for this error, or `null` if 200 * The severity of the problem.
192 * there is no correction information for this error.
193 */ 201 */
194 String correction2; 202 ErrorSeverity _severity;
195 203
196 /** 204 /**
197 * Initialize a newly created error code to have the given message. 205 * Initialize a newly created error code to have the given message.
198 * 206 *
199 * @param message the message template used to create the message to be displa yed for the error 207 * @param message the message template used to create the message to be displa yed for the error
200 */ 208 */
201 AngularCode.con1(String name, int ordinal, this.message) : super(name, ordinal ); 209 AngularCode.con1(String name, int ordinal, String message) : this.con2(name, o rdinal, message, ErrorSeverity.WARNING);
202 210
203 /** 211 /**
204 * Initialize a newly created error code to have the given message and correct ion. 212 * Initialize a newly created error code to have the given message.
205 * 213 *
206 * @param message the template used to create the message to be displayed for the error 214 * @param message the message template used to create the message to be displa yed for the error
207 * @param correction the template used to create the correction to be displaye d for the error 215 * @param severity the severity of the problem
208 */ 216 */
209 AngularCode.con2(String name, int ordinal, this.message, String correction) : super(name, ordinal) { 217 AngularCode.con2(String name, int ordinal, String message, ErrorSeverity sever ity) : super(name, ordinal) {
210 this.correction2 = correction; 218 this._message = message;
219 this._severity = severity;
211 } 220 }
212 221
213 String get correction => correction2; 222 String get correction => null;
214 223
215 ErrorSeverity get errorSeverity => ErrorType.TOOLKIT.severity; 224 ErrorSeverity get errorSeverity => _severity;
225
226 String get message => _message;
216 227
217 ErrorType get type => ErrorType.TOOLKIT; 228 ErrorType get type => ErrorType.TOOLKIT;
218 } 229 }
219 230
220 /** 231 /**
221 * Instances of the class `ErrorReporter` wrap an error listener with utility me thods used to 232 * Instances of the class `ErrorReporter` wrap an error listener with utility me thods used to
222 * create the errors being reported. 233 * create the errors being reported.
223 * 234 *
224 * @coverage dart.engine.error 235 * @coverage dart.engine.error
225 */ 236 */
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 783
773 /** 784 /**
774 * The template used to create the message to be displayed for this error. 785 * The template used to create the message to be displayed for this error.
775 */ 786 */
776 final String message; 787 final String message;
777 788
778 /** 789 /**
779 * The template used to create the correction to be displayed for this error, or `null` if 790 * The template used to create the correction to be displayed for this error, or `null` if
780 * there is no correction information for this error. 791 * there is no correction information for this error.
781 */ 792 */
782 String correction4; 793 String correction3;
783 794
784 /** 795 /**
785 * Initialize a newly created error code to have the given message. 796 * Initialize a newly created error code to have the given message.
786 * 797 *
787 * @param message the message template used to create the message to be displa yed for the error 798 * @param message the message template used to create the message to be displa yed for the error
788 */ 799 */
789 HintCode.con1(String name, int ordinal, this.message) : super(name, ordinal); 800 HintCode.con1(String name, int ordinal, this.message) : super(name, ordinal);
790 801
791 /** 802 /**
792 * Initialize a newly created error code to have the given message and correct ion. 803 * Initialize a newly created error code to have the given message and correct ion.
793 * 804 *
794 * @param message the template used to create the message to be displayed for the error 805 * @param message the template used to create the message to be displayed for the error
795 * @param correction the template used to create the correction to be displaye d for the error 806 * @param correction the template used to create the correction to be displaye d for the error
796 */ 807 */
797 HintCode.con2(String name, int ordinal, this.message, String correction) : sup er(name, ordinal) { 808 HintCode.con2(String name, int ordinal, this.message, String correction) : sup er(name, ordinal) {
798 this.correction4 = correction; 809 this.correction3 = correction;
799 } 810 }
800 811
801 String get correction => correction4; 812 String get correction => correction3;
802 813
803 ErrorSeverity get errorSeverity => ErrorType.HINT.severity; 814 ErrorSeverity get errorSeverity => ErrorType.HINT.severity;
804 815
805 ErrorType get type => ErrorType.HINT; 816 ErrorType get type => ErrorType.HINT;
806 } 817 }
807 818
808 /** 819 /**
809 * The interface `ErrorCode` defines the behavior common to objects representing error codes 820 * The interface `ErrorCode` defines the behavior common to objects representing error codes
810 * associated with [AnalysisError]. 821 * associated with [AnalysisError].
811 * 822 *
(...skipping 1430 matching lines...) Expand 10 before | Expand all | Expand 10 after
2242 2253
2243 /** 2254 /**
2244 * The template used to create the message to be displayed for this error. 2255 * The template used to create the message to be displayed for this error.
2245 */ 2256 */
2246 final String message; 2257 final String message;
2247 2258
2248 /** 2259 /**
2249 * The template used to create the correction to be displayed for this error, or `null` if 2260 * The template used to create the correction to be displayed for this error, or `null` if
2250 * there is no correction information for this error. 2261 * there is no correction information for this error.
2251 */ 2262 */
2252 String correction3; 2263 String correction2;
2253 2264
2254 /** 2265 /**
2255 * Initialize a newly created error code to have the given message. 2266 * Initialize a newly created error code to have the given message.
2256 * 2267 *
2257 * @param message the message template used to create the message to be displa yed for the error 2268 * @param message the message template used to create the message to be displa yed for the error
2258 */ 2269 */
2259 CompileTimeErrorCode.con1(String name, int ordinal, this.message) : super(name , ordinal); 2270 CompileTimeErrorCode.con1(String name, int ordinal, this.message) : super(name , ordinal);
2260 2271
2261 /** 2272 /**
2262 * Initialize a newly created error code to have the given message and correct ion. 2273 * Initialize a newly created error code to have the given message and correct ion.
2263 * 2274 *
2264 * @param message the template used to create the message to be displayed for the error 2275 * @param message the template used to create the message to be displayed for the error
2265 * @param correction the template used to create the correction to be displaye d for the error 2276 * @param correction the template used to create the correction to be displaye d for the error
2266 */ 2277 */
2267 CompileTimeErrorCode.con2(String name, int ordinal, this.message, String corre ction) : super(name, ordinal) { 2278 CompileTimeErrorCode.con2(String name, int ordinal, this.message, String corre ction) : super(name, ordinal) {
2268 this.correction3 = correction; 2279 this.correction2 = correction;
2269 } 2280 }
2270 2281
2271 String get correction => correction3; 2282 String get correction => correction2;
2272 2283
2273 ErrorSeverity get errorSeverity => ErrorType.COMPILE_TIME_ERROR.severity; 2284 ErrorSeverity get errorSeverity => ErrorType.COMPILE_TIME_ERROR.severity;
2274 2285
2275 ErrorType get type => ErrorType.COMPILE_TIME_ERROR; 2286 ErrorType get type => ErrorType.COMPILE_TIME_ERROR;
2276 } 2287 }
2277 2288
2278 /** 2289 /**
2279 * The enumeration `PubSuggestionCode` defines the suggestions used for reportin g deviations 2290 * The enumeration `PubSuggestionCode` defines the suggestions used for reportin g deviations
2280 * from pub best practices. The convention for this class is for the name of the bad practice to 2291 * from pub best practices. The convention for this class is for the name of the bad practice to
2281 * indicate the problem that caused the suggestion to be generated and for the m essage to explain 2292 * indicate the problem that caused the suggestion to be generated and for the m essage to explain
(...skipping 30 matching lines...) Expand all
2312 2323
2313 /** 2324 /**
2314 * The template used to create the message to be displayed for this error. 2325 * The template used to create the message to be displayed for this error.
2315 */ 2326 */
2316 final String message; 2327 final String message;
2317 2328
2318 /** 2329 /**
2319 * The template used to create the correction to be displayed for this error, or `null` if 2330 * The template used to create the correction to be displayed for this error, or `null` if
2320 * there is no correction information for this error. 2331 * there is no correction information for this error.
2321 */ 2332 */
2322 String correction6; 2333 String correction5;
2323 2334
2324 /** 2335 /**
2325 * Initialize a newly created error code to have the given message. 2336 * Initialize a newly created error code to have the given message.
2326 * 2337 *
2327 * @param message the message template used to create the message to be displa yed for the error 2338 * @param message the message template used to create the message to be displa yed for the error
2328 */ 2339 */
2329 PubSuggestionCode.con1(String name, int ordinal, this.message) : super(name, o rdinal); 2340 PubSuggestionCode.con1(String name, int ordinal, this.message) : super(name, o rdinal);
2330 2341
2331 /** 2342 /**
2332 * Initialize a newly created error code to have the given message and correct ion. 2343 * Initialize a newly created error code to have the given message and correct ion.
2333 * 2344 *
2334 * @param message the template used to create the message to be displayed for the error 2345 * @param message the template used to create the message to be displayed for the error
2335 * @param correction the template used to create the correction to be displaye d for the error 2346 * @param correction the template used to create the correction to be displaye d for the error
2336 */ 2347 */
2337 PubSuggestionCode.con2(String name, int ordinal, this.message, String correcti on) : super(name, ordinal) { 2348 PubSuggestionCode.con2(String name, int ordinal, this.message, String correcti on) : super(name, ordinal) {
2338 this.correction6 = correction; 2349 this.correction5 = correction;
2339 } 2350 }
2340 2351
2341 String get correction => correction6; 2352 String get correction => correction5;
2342 2353
2343 ErrorSeverity get errorSeverity => ErrorType.PUB_SUGGESTION.severity; 2354 ErrorSeverity get errorSeverity => ErrorType.PUB_SUGGESTION.severity;
2344 2355
2345 ErrorType get type => ErrorType.PUB_SUGGESTION; 2356 ErrorType get type => ErrorType.PUB_SUGGESTION;
2346 } 2357 }
2347 2358
2348 /** 2359 /**
2349 * The enumeration `StaticWarningCode` defines the error codes used for static w arnings. The 2360 * The enumeration `StaticWarningCode` defines the error codes used for static w arnings. The
2350 * convention for this class is for the name of the error code to indicate the p roblem that caused 2361 * convention for this class is for the name of the error code to indicate the p roblem that caused
2351 * the error to be generated and for the error message to explain what is wrong and, when 2362 * the error to be generated and for the error message to explain what is wrong and, when
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
3202 3213
3203 /** 3214 /**
3204 * The template used to create the message to be displayed for this error. 3215 * The template used to create the message to be displayed for this error.
3205 */ 3216 */
3206 final String message; 3217 final String message;
3207 3218
3208 /** 3219 /**
3209 * The template used to create the correction to be displayed for this error, or `null` if 3220 * The template used to create the correction to be displayed for this error, or `null` if
3210 * there is no correction information for this error. 3221 * there is no correction information for this error.
3211 */ 3222 */
3212 String correction8; 3223 String correction7;
3213 3224
3214 /** 3225 /**
3215 * Initialize a newly created error code to have the given message. 3226 * Initialize a newly created error code to have the given message.
3216 * 3227 *
3217 * @param message the message template used to create the message to be displa yed for the error 3228 * @param message the message template used to create the message to be displa yed for the error
3218 */ 3229 */
3219 StaticWarningCode.con1(String name, int ordinal, this.message) : super(name, o rdinal); 3230 StaticWarningCode.con1(String name, int ordinal, this.message) : super(name, o rdinal);
3220 3231
3221 /** 3232 /**
3222 * Initialize a newly created error code to have the given message and correct ion. 3233 * Initialize a newly created error code to have the given message and correct ion.
3223 * 3234 *
3224 * @param message the template used to create the message to be displayed for the error 3235 * @param message the template used to create the message to be displayed for the error
3225 * @param correction the template used to create the correction to be displaye d for the error 3236 * @param correction the template used to create the correction to be displaye d for the error
3226 */ 3237 */
3227 StaticWarningCode.con2(String name, int ordinal, this.message, String correcti on) : super(name, ordinal) { 3238 StaticWarningCode.con2(String name, int ordinal, this.message, String correcti on) : super(name, ordinal) {
3228 this.correction8 = correction; 3239 this.correction7 = correction;
3229 } 3240 }
3230 3241
3231 String get correction => correction8; 3242 String get correction => correction7;
3232 3243
3233 ErrorSeverity get errorSeverity => ErrorType.STATIC_WARNING.severity; 3244 ErrorSeverity get errorSeverity => ErrorType.STATIC_WARNING.severity;
3234 3245
3235 ErrorType get type => ErrorType.STATIC_WARNING; 3246 ErrorType get type => ErrorType.STATIC_WARNING;
3236 } 3247 }
3237 3248
3238 /** 3249 /**
3239 * The interface `AnalysisErrorListener` defines the behavior of objects that li sten for 3250 * The interface `AnalysisErrorListener` defines the behavior of objects that li sten for
3240 * [AnalysisError] being produced by the analysis engine. 3251 * [AnalysisError] being produced by the analysis engine.
3241 * 3252 *
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
3289 3300
3290 /** 3301 /**
3291 * The template used to create the message to be displayed for this error. 3302 * The template used to create the message to be displayed for this error.
3292 */ 3303 */
3293 final String message; 3304 final String message;
3294 3305
3295 /** 3306 /**
3296 * The template used to create the correction to be displayed for this error, or `null` if 3307 * The template used to create the correction to be displayed for this error, or `null` if
3297 * there is no correction information for this error. 3308 * there is no correction information for this error.
3298 */ 3309 */
3299 String correction5; 3310 String correction4;
3300 3311
3301 /** 3312 /**
3302 * Initialize a newly created error code to have the given message. 3313 * Initialize a newly created error code to have the given message.
3303 * 3314 *
3304 * @param message the message template used to create the message to be displa yed for the error 3315 * @param message the message template used to create the message to be displa yed for the error
3305 */ 3316 */
3306 HtmlWarningCode.con1(String name, int ordinal, this.message) : super(name, ord inal); 3317 HtmlWarningCode.con1(String name, int ordinal, this.message) : super(name, ord inal);
3307 3318
3308 /** 3319 /**
3309 * Initialize a newly created error code to have the given message and correct ion. 3320 * Initialize a newly created error code to have the given message and correct ion.
3310 * 3321 *
3311 * @param message the template used to create the message to be displayed for the error 3322 * @param message the template used to create the message to be displayed for the error
3312 * @param correction the template used to create the correction to be displaye d for the error 3323 * @param correction the template used to create the correction to be displaye d for the error
3313 */ 3324 */
3314 HtmlWarningCode.con2(String name, int ordinal, this.message, String correction ) : super(name, ordinal) { 3325 HtmlWarningCode.con2(String name, int ordinal, this.message, String correction ) : super(name, ordinal) {
3315 this.correction5 = correction; 3326 this.correction4 = correction;
3316 } 3327 }
3317 3328
3318 String get correction => correction5; 3329 String get correction => correction4;
3319 3330
3320 ErrorSeverity get errorSeverity => ErrorSeverity.WARNING; 3331 ErrorSeverity get errorSeverity => ErrorSeverity.WARNING;
3321 3332
3322 ErrorType get type => ErrorType.STATIC_WARNING; 3333 ErrorType get type => ErrorType.STATIC_WARNING;
3323 } 3334 }
3324 3335
3325 /** 3336 /**
3326 * The enumeration `StaticTypeWarningCode` defines the error codes used for stat ic type 3337 * The enumeration `StaticTypeWarningCode` defines the error codes used for stat ic type
3327 * warnings. The convention for this class is for the name of the error code to indicate the problem 3338 * warnings. The convention for this class is for the name of the error code to indicate the problem
3328 * that caused the error to be generated and for the error message to explain wh at is wrong and, 3339 * that caused the error to be generated and for the error message to explain wh at is wrong and,
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
3616 3627
3617 /** 3628 /**
3618 * The template used to create the message to be displayed for this error. 3629 * The template used to create the message to be displayed for this error.
3619 */ 3630 */
3620 final String message; 3631 final String message;
3621 3632
3622 /** 3633 /**
3623 * The template used to create the correction to be displayed for this error, or `null` if 3634 * The template used to create the correction to be displayed for this error, or `null` if
3624 * there is no correction information for this error. 3635 * there is no correction information for this error.
3625 */ 3636 */
3626 String correction7; 3637 String correction6;
3627 3638
3628 /** 3639 /**
3629 * Initialize a newly created error code to have the given message. 3640 * Initialize a newly created error code to have the given message.
3630 * 3641 *
3631 * @param message the message template used to create the message to be displa yed for the error 3642 * @param message the message template used to create the message to be displa yed for the error
3632 */ 3643 */
3633 StaticTypeWarningCode.con1(String name, int ordinal, this.message) : super(nam e, ordinal); 3644 StaticTypeWarningCode.con1(String name, int ordinal, this.message) : super(nam e, ordinal);
3634 3645
3635 /** 3646 /**
3636 * Initialize a newly created error code to have the given message and correct ion. 3647 * Initialize a newly created error code to have the given message and correct ion.
3637 * 3648 *
3638 * @param message the template used to create the message to be displayed for the error 3649 * @param message the template used to create the message to be displayed for the error
3639 * @param correction the template used to create the correction to be displaye d for the error 3650 * @param correction the template used to create the correction to be displaye d for the error
3640 */ 3651 */
3641 StaticTypeWarningCode.con2(String name, int ordinal, this.message, String corr ection) : super(name, ordinal) { 3652 StaticTypeWarningCode.con2(String name, int ordinal, this.message, String corr ection) : super(name, ordinal) {
3642 this.correction7 = correction; 3653 this.correction6 = correction;
3643 } 3654 }
3644 3655
3645 String get correction => correction7; 3656 String get correction => correction6;
3646 3657
3647 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; 3658 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity;
3648 3659
3649 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; 3660 ErrorType get type => ErrorType.STATIC_TYPE_WARNING;
3650 } 3661 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698