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

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

Issue 2642683006: Get the rest of the shared tests for covariant to pass (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 | « pkg/analyzer/lib/error/error.dart ('k') | pkg/analyzer/lib/src/generated/parser.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 /** 5 /**
6 * The errors produced during syntactic analysis (scanning and parsing). 6 * The errors produced during syntactic analysis (scanning and parsing).
7 */ 7 */
8 library analyzer.src.dart.error.syntactic_errors; 8 library analyzer.src.dart.error.syntactic_errors;
9 9
10 import 'package:analyzer/error/error.dart'; 10 import 'package:analyzer/error/error.dart';
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 static const ParserErrorCode COVARIANT_AFTER_VAR = const ParserErrorCode( 150 static const ParserErrorCode COVARIANT_AFTER_VAR = const ParserErrorCode(
151 'COVARIANT_AFTER_VAR', 151 'COVARIANT_AFTER_VAR',
152 "The modifier 'covariant' should be before the modifier 'var'.", 152 "The modifier 'covariant' should be before the modifier 'var'.",
153 "Try re-ordering the modifiers."); 153 "Try re-ordering the modifiers.");
154 154
155 static const ParserErrorCode COVARIANT_AND_STATIC = const ParserErrorCode( 155 static const ParserErrorCode COVARIANT_AND_STATIC = const ParserErrorCode(
156 'COVARIANT_AND_STATIC', 156 'COVARIANT_AND_STATIC',
157 "Members can't be declared to be both 'covariant' and 'static'.", 157 "Members can't be declared to be both 'covariant' and 'static'.",
158 "Try removing either the 'covariant' or 'static' keyword."); 158 "Try removing either the 'covariant' or 'static' keyword.");
159 159
160 static const ParserErrorCode COVARIANT_MEMBER = const ParserErrorCode(
161 'COVARIANT_MEMBER',
162 "Getters, setters and methods can't be declared to be 'covariant'.",
163 "Try removing the 'covariant' keyword.");
164
160 static const ParserErrorCode COVARIANT_TOP_LEVEL_DECLARATION = 165 static const ParserErrorCode COVARIANT_TOP_LEVEL_DECLARATION =
161 const ParserErrorCode( 166 const ParserErrorCode(
162 'COVARIANT_TOP_LEVEL_DECLARATION', 167 'COVARIANT_TOP_LEVEL_DECLARATION',
163 "Top-level declarations can't be declared to be covariant.", 168 "Top-level declarations can't be declared to be covariant.",
164 "Try removing the keyword 'covariant'."); 169 "Try removing the keyword 'covariant'.");
165 170
166 static const ParserErrorCode COVARIANT_CONSTRUCTOR = const ParserErrorCode( 171 static const ParserErrorCode COVARIANT_CONSTRUCTOR = const ParserErrorCode(
167 'COVARIANT_CONSTRUCTOR', 172 'COVARIANT_CONSTRUCTOR',
168 "A constructor can't be declared to be 'covariant'.", 173 "A constructor can't be declared to be 'covariant'.",
169 "Try removing the keyword 'covariant'."); 174 "Try removing the keyword 'covariant'.");
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 */ 986 */
982 const ParserErrorCode(String name, String message, [String correction]) 987 const ParserErrorCode(String name, String message, [String correction])
983 : super(name, message, correction); 988 : super(name, message, correction);
984 989
985 @override 990 @override
986 ErrorSeverity get errorSeverity => ErrorSeverity.ERROR; 991 ErrorSeverity get errorSeverity => ErrorSeverity.ERROR;
987 992
988 @override 993 @override
989 ErrorType get type => ErrorType.SYNTACTIC_ERROR; 994 ErrorType get type => ErrorType.SYNTACTIC_ERROR;
990 } 995 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/error/error.dart ('k') | pkg/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698