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

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

Issue 2640143007: Issue 28100. Implement new strong mode instantiate to bound rules in analyzer. (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
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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 StrongModeCode.INVALID_CAST_METHOD, 619 StrongModeCode.INVALID_CAST_METHOD,
620 StrongModeCode.INVALID_CAST_FUNCTION, 620 StrongModeCode.INVALID_CAST_FUNCTION,
621 StrongModeCode.INVALID_FIELD_OVERRIDE, 621 StrongModeCode.INVALID_FIELD_OVERRIDE,
622 StrongModeCode.INVALID_METHOD_OVERRIDE, 622 StrongModeCode.INVALID_METHOD_OVERRIDE,
623 StrongModeCode.INVALID_METHOD_OVERRIDE_FROM_BASE, 623 StrongModeCode.INVALID_METHOD_OVERRIDE_FROM_BASE,
624 StrongModeCode.INVALID_METHOD_OVERRIDE_FROM_MIXIN, 624 StrongModeCode.INVALID_METHOD_OVERRIDE_FROM_MIXIN,
625 StrongModeCode.INVALID_PARAMETER_DECLARATION, 625 StrongModeCode.INVALID_PARAMETER_DECLARATION,
626 StrongModeCode.INVALID_SUPER_INVOCATION, 626 StrongModeCode.INVALID_SUPER_INVOCATION,
627 StrongModeCode.NON_GROUND_TYPE_CHECK_INFO, 627 StrongModeCode.NON_GROUND_TYPE_CHECK_INFO,
628 StrongModeCode.NOT_INSTANTIATED_BOUND, 628 StrongModeCode.NOT_INSTANTIATED_BOUND,
629 StrongModeCode.UNABLE_INSTANTIATE_TO_BOUNDS,
Leaf 2017/01/20 20:31:52 Maybe a better name might be "NO_DEFAULT_BOUNDS"?
scheglov 2017/01/21 02:11:23 Done.
629 StrongModeCode.UNSAFE_BLOCK_CLOSURE_INFERENCE, 630 StrongModeCode.UNSAFE_BLOCK_CLOSURE_INFERENCE,
630 TodoCode.TODO, 631 TodoCode.TODO,
631 ]; 632 ];
632 633
633 /** 634 /**
634 * The lazy initialized map from [ErrorCode.uniqueName] to the [ErrorCode] 635 * The lazy initialized map from [ErrorCode.uniqueName] to the [ErrorCode]
635 * instance. 636 * instance.
636 */ 637 */
637 HashMap<String, ErrorCode> _uniqueNameToCodeMap; 638 HashMap<String, ErrorCode> _uniqueNameToCodeMap;
638 639
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 897
897 @override 898 @override
898 int get hashCode => ordinal; 899 int get hashCode => ordinal;
899 900
900 @override 901 @override
901 int compareTo(ErrorProperty other) => ordinal - other.ordinal; 902 int compareTo(ErrorProperty other) => ordinal - other.ordinal;
902 903
903 @override 904 @override
904 String toString() => name; 905 String toString() => name;
905 } 906 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/error/codes.dart » ('j') | pkg/analyzer/lib/src/error/codes.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698