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

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

Issue 2639883005: Add parser support for covariant parameters (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/error/syntactic_errors.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.error.error; 5 library analyzer.error.error;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/error/listener.dart'; 9 import 'package:analyzer/error/listener.dart';
10 import 'package:analyzer/src/dart/scanner/scanner.dart' show ScannerErrorCode; 10 import 'package:analyzer/src/dart/scanner/scanner.dart' show ScannerErrorCode;
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 ParserErrorCode.ABSTRACT_STATIC_METHOD, 289 ParserErrorCode.ABSTRACT_STATIC_METHOD,
290 ParserErrorCode.ABSTRACT_TOP_LEVEL_FUNCTION, 290 ParserErrorCode.ABSTRACT_TOP_LEVEL_FUNCTION,
291 ParserErrorCode.ABSTRACT_TOP_LEVEL_VARIABLE, 291 ParserErrorCode.ABSTRACT_TOP_LEVEL_VARIABLE,
292 ParserErrorCode.ABSTRACT_TYPEDEF, 292 ParserErrorCode.ABSTRACT_TYPEDEF,
293 ParserErrorCode.ANNOTATION_ON_ENUM_CONSTANT, 293 ParserErrorCode.ANNOTATION_ON_ENUM_CONSTANT,
294 ParserErrorCode.ASYNC_KEYWORD_USED_AS_IDENTIFIER, 294 ParserErrorCode.ASYNC_KEYWORD_USED_AS_IDENTIFIER,
295 ParserErrorCode.BREAK_OUTSIDE_OF_LOOP, 295 ParserErrorCode.BREAK_OUTSIDE_OF_LOOP,
296 ParserErrorCode.CLASS_IN_CLASS, 296 ParserErrorCode.CLASS_IN_CLASS,
297 ParserErrorCode.COLON_IN_PLACE_OF_IN, 297 ParserErrorCode.COLON_IN_PLACE_OF_IN,
298 ParserErrorCode.CONSTRUCTOR_WITH_RETURN_TYPE, 298 ParserErrorCode.CONSTRUCTOR_WITH_RETURN_TYPE,
299 ParserErrorCode.CONST_AND_COVARIANT,
299 ParserErrorCode.CONST_AND_FINAL, 300 ParserErrorCode.CONST_AND_FINAL,
300 ParserErrorCode.CONST_AND_VAR, 301 ParserErrorCode.CONST_AND_VAR,
301 ParserErrorCode.CONST_CLASS, 302 ParserErrorCode.CONST_CLASS,
302 ParserErrorCode.CONST_CONSTRUCTOR_WITH_BODY, 303 ParserErrorCode.CONST_CONSTRUCTOR_WITH_BODY,
303 ParserErrorCode.CONST_ENUM, 304 ParserErrorCode.CONST_ENUM,
304 ParserErrorCode.CONST_FACTORY, 305 ParserErrorCode.CONST_FACTORY,
305 ParserErrorCode.CONST_METHOD, 306 ParserErrorCode.CONST_METHOD,
306 ParserErrorCode.CONST_TYPEDEF, 307 ParserErrorCode.CONST_TYPEDEF,
307 ParserErrorCode.CONTINUE_OUTSIDE_OF_LOOP, 308 ParserErrorCode.CONTINUE_OUTSIDE_OF_LOOP,
308 ParserErrorCode.CONTINUE_WITHOUT_LABEL_IN_CASE, 309 ParserErrorCode.CONTINUE_WITHOUT_LABEL_IN_CASE,
310 ParserErrorCode.COVARIANT_AFTER_VAR,
311 ParserErrorCode.COVARIANT_AND_STATIC,
312 ParserErrorCode.COVARIANT_CONSTRUCTOR,
313 ParserErrorCode.COVARIANT_TOP_LEVEL_DECLARATION,
309 ParserErrorCode.DEFAULT_VALUE_IN_FUNCTION_TYPE, 314 ParserErrorCode.DEFAULT_VALUE_IN_FUNCTION_TYPE,
310 ParserErrorCode.DIRECTIVE_AFTER_DECLARATION, 315 ParserErrorCode.DIRECTIVE_AFTER_DECLARATION,
311 ParserErrorCode.DUPLICATED_MODIFIER, 316 ParserErrorCode.DUPLICATED_MODIFIER,
312 ParserErrorCode.DUPLICATE_LABEL_IN_SWITCH_STATEMENT, 317 ParserErrorCode.DUPLICATE_LABEL_IN_SWITCH_STATEMENT,
313 ParserErrorCode.EMPTY_ENUM_BODY, 318 ParserErrorCode.EMPTY_ENUM_BODY,
314 ParserErrorCode.ENUM_IN_CLASS, 319 ParserErrorCode.ENUM_IN_CLASS,
315 ParserErrorCode.EQUALITY_CANNOT_BE_EQUALITY_OPERAND, 320 ParserErrorCode.EQUALITY_CANNOT_BE_EQUALITY_OPERAND,
316 ParserErrorCode.EXPECTED_CASE_OR_DEFAULT, 321 ParserErrorCode.EXPECTED_CASE_OR_DEFAULT,
317 ParserErrorCode.EXPECTED_CLASS_MEMBER, 322 ParserErrorCode.EXPECTED_CLASS_MEMBER,
318 ParserErrorCode.EXPECTED_EXECUTABLE, 323 ParserErrorCode.EXPECTED_EXECUTABLE,
(...skipping 11 matching lines...) Expand all
330 ParserErrorCode.EXTERNAL_FIELD, 335 ParserErrorCode.EXTERNAL_FIELD,
331 ParserErrorCode.EXTERNAL_GETTER_WITH_BODY, 336 ParserErrorCode.EXTERNAL_GETTER_WITH_BODY,
332 ParserErrorCode.EXTERNAL_METHOD_WITH_BODY, 337 ParserErrorCode.EXTERNAL_METHOD_WITH_BODY,
333 ParserErrorCode.EXTERNAL_OPERATOR_WITH_BODY, 338 ParserErrorCode.EXTERNAL_OPERATOR_WITH_BODY,
334 ParserErrorCode.EXTERNAL_SETTER_WITH_BODY, 339 ParserErrorCode.EXTERNAL_SETTER_WITH_BODY,
335 ParserErrorCode.EXTERNAL_TYPEDEF, 340 ParserErrorCode.EXTERNAL_TYPEDEF,
336 ParserErrorCode.FACTORY_TOP_LEVEL_DECLARATION, 341 ParserErrorCode.FACTORY_TOP_LEVEL_DECLARATION,
337 ParserErrorCode.FACTORY_WITHOUT_BODY, 342 ParserErrorCode.FACTORY_WITHOUT_BODY,
338 ParserErrorCode.FACTORY_WITH_INITIALIZERS, 343 ParserErrorCode.FACTORY_WITH_INITIALIZERS,
339 ParserErrorCode.FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR, 344 ParserErrorCode.FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR,
345 ParserErrorCode.FINAL_AND_COVARIANT,
340 ParserErrorCode.FINAL_AND_VAR, 346 ParserErrorCode.FINAL_AND_VAR,
341 ParserErrorCode.FINAL_CLASS, 347 ParserErrorCode.FINAL_CLASS,
342 ParserErrorCode.FINAL_CONSTRUCTOR, 348 ParserErrorCode.FINAL_CONSTRUCTOR,
343 ParserErrorCode.FINAL_ENUM, 349 ParserErrorCode.FINAL_ENUM,
344 ParserErrorCode.FINAL_METHOD, 350 ParserErrorCode.FINAL_METHOD,
345 ParserErrorCode.FINAL_TYPEDEF, 351 ParserErrorCode.FINAL_TYPEDEF,
346 ParserErrorCode.FUNCTION_TYPED_PARAMETER_VAR, 352 ParserErrorCode.FUNCTION_TYPED_PARAMETER_VAR,
347 ParserErrorCode.GETTER_IN_FUNCTION, 353 ParserErrorCode.GETTER_IN_FUNCTION,
348 ParserErrorCode.GETTER_WITH_PARAMETERS, 354 ParserErrorCode.GETTER_WITH_PARAMETERS,
349 ParserErrorCode.ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE, 355 ParserErrorCode.ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE,
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 895
890 @override 896 @override
891 int get hashCode => ordinal; 897 int get hashCode => ordinal;
892 898
893 @override 899 @override
894 int compareTo(ErrorProperty other) => ordinal - other.ordinal; 900 int compareTo(ErrorProperty other) => ordinal - other.ordinal;
895 901
896 @override 902 @override
897 String toString() => name; 903 String toString() => name;
898 } 904 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/error/syntactic_errors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698