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

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

Issue 2641213002: Issue 28100. In strong mode verify that TypeParameter bound has required type arguments. (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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 StrongModeCode.INVALID_CAST_NEW_EXPR, 618 StrongModeCode.INVALID_CAST_NEW_EXPR,
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.UNSAFE_BLOCK_CLOSURE_INFERENCE, 629 StrongModeCode.UNSAFE_BLOCK_CLOSURE_INFERENCE,
629 TodoCode.TODO, 630 TodoCode.TODO,
630 ]; 631 ];
631 632
632 /** 633 /**
633 * The lazy initialized map from [ErrorCode.uniqueName] to the [ErrorCode] 634 * The lazy initialized map from [ErrorCode.uniqueName] to the [ErrorCode]
634 * instance. 635 * instance.
635 */ 636 */
636 HashMap<String, ErrorCode> _uniqueNameToCodeMap; 637 HashMap<String, ErrorCode> _uniqueNameToCodeMap;
637 638
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 896
896 @override 897 @override
897 int get hashCode => ordinal; 898 int get hashCode => ordinal;
898 899
899 @override 900 @override
900 int compareTo(ErrorProperty other) => ordinal - other.ordinal; 901 int compareTo(ErrorProperty other) => ordinal - other.ordinal;
901 902
902 @override 903 @override
903 String toString() => name; 904 String toString() => name;
904 } 905 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/error/codes.dart » ('j') | pkg/analyzer/lib/src/generated/error_verifier.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698