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

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

Issue 2295853002: fix #26992, inference failures are now an error (Closed)
Patch Set: fix comment Created 4 years, 3 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 | « CHANGELOG.md ('k') | pkg/analyzer/lib/src/generated/static_type_analyzer.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.src.generated.error; 5 library analyzer.src.generated.error;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart' show AstNode; 9 import 'package:analyzer/dart/ast/ast.dart' show AstNode;
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 5951 matching lines...) Expand 10 before | Expand all | Expand 10 after
5962 static const StrongModeCode DYNAMIC_CAST = const StrongModeCode( 5962 static const StrongModeCode DYNAMIC_CAST = const StrongModeCode(
5963 ErrorType.HINT, 'DYNAMIC_CAST', _implicitCastMessage); 5963 ErrorType.HINT, 'DYNAMIC_CAST', _implicitCastMessage);
5964 5964
5965 static const StrongModeCode ASSIGNMENT_CAST = const StrongModeCode( 5965 static const StrongModeCode ASSIGNMENT_CAST = const StrongModeCode(
5966 ErrorType.HINT, 'ASSIGNMENT_CAST', _implicitCastMessage); 5966 ErrorType.HINT, 'ASSIGNMENT_CAST', _implicitCastMessage);
5967 5967
5968 static const StrongModeCode INVALID_PARAMETER_DECLARATION = 5968 static const StrongModeCode INVALID_PARAMETER_DECLARATION =
5969 const StrongModeCode(ErrorType.COMPILE_TIME_ERROR, 5969 const StrongModeCode(ErrorType.COMPILE_TIME_ERROR,
5970 'INVALID_PARAMETER_DECLARATION', _typeCheckMessage); 5970 'INVALID_PARAMETER_DECLARATION', _typeCheckMessage);
5971 5971
5972 static const StrongModeCode COULD_NOT_INFER = const StrongModeCode(
5973 ErrorType.COMPILE_TIME_ERROR,
5974 'COULD_NOT_INFER',
5975 "Could not infer type parameter {0}, {1} must be of type {2}.");
5976
5972 static const StrongModeCode INFERRED_TYPE = const StrongModeCode( 5977 static const StrongModeCode INFERRED_TYPE = const StrongModeCode(
5973 ErrorType.HINT, 'INFERRED_TYPE', _inferredTypeMessage); 5978 ErrorType.HINT, 'INFERRED_TYPE', _inferredTypeMessage);
5974 5979
5975 static const StrongModeCode INFERRED_TYPE_LITERAL = const StrongModeCode( 5980 static const StrongModeCode INFERRED_TYPE_LITERAL = const StrongModeCode(
5976 ErrorType.HINT, 'INFERRED_TYPE_LITERAL', _inferredTypeMessage); 5981 ErrorType.HINT, 'INFERRED_TYPE_LITERAL', _inferredTypeMessage);
5977 5982
5978 static const StrongModeCode INFERRED_TYPE_ALLOCATION = const StrongModeCode( 5983 static const StrongModeCode INFERRED_TYPE_ALLOCATION = const StrongModeCode(
5979 ErrorType.HINT, 'INFERRED_TYPE_ALLOCATION', _inferredTypeMessage); 5984 ErrorType.HINT, 'INFERRED_TYPE_ALLOCATION', _inferredTypeMessage);
5980 5985
5981 static const StrongModeCode INFERRED_TYPE_CLOSURE = const StrongModeCode( 5986 static const StrongModeCode INFERRED_TYPE_CLOSURE = const StrongModeCode(
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
6135 * Initialize a newly created error code to have the given [name]. 6140 * Initialize a newly created error code to have the given [name].
6136 */ 6141 */
6137 const TodoCode(String name) : super(name, "{0}"); 6142 const TodoCode(String name) : super(name, "{0}");
6138 6143
6139 @override 6144 @override
6140 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; 6145 ErrorSeverity get errorSeverity => ErrorSeverity.INFO;
6141 6146
6142 @override 6147 @override
6143 ErrorType get type => ErrorType.TODO; 6148 ErrorType get type => ErrorType.TODO;
6144 } 6149 }
OLDNEW
« no previous file with comments | « CHANGELOG.md ('k') | pkg/analyzer/lib/src/generated/static_type_analyzer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698