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

Side by Side Diff: frog/leg/warnings.dart

Issue 9703105: Re-land r5529. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « frog/leg/universe.dart ('k') | tests/co19/co19-leg.status » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 class MessageKind { 5 class MessageKind {
6 final String template; 6 final String template;
7 const MessageKind(this.template); 7 const MessageKind(this.template);
8 8
9 static final GENERIC = const MessageKind('#{1}'); 9 static final GENERIC = const MessageKind('#{1}');
10 10
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 static final UNUSED_LABEL = const MessageKind( 115 static final UNUSED_LABEL = const MessageKind(
116 'unused label #{1}'); 116 'unused label #{1}');
117 static final INVALID_CONTINUE = const MessageKind( 117 static final INVALID_CONTINUE = const MessageKind(
118 'target of continue is not a loop or switch case'); 118 'target of continue is not a loop or switch case');
119 static final INVALID_BREAK = const MessageKind( 119 static final INVALID_BREAK = const MessageKind(
120 'target of break is not a statement'); 120 'target of break is not a statement');
121 static final INVALID_USE_OF_SUPER = const MessageKind( 121 static final INVALID_USE_OF_SUPER = const MessageKind(
122 'super not allowed here'); 122 'super not allowed here');
123 static final INVALID_CASE_DEFAULT = const MessageKind( 123 static final INVALID_CASE_DEFAULT = const MessageKind(
124 'default only allowed on last case of a switch'); 124 'default only allowed on last case of a switch');
125 static final INVALID_ARGUMENT_AFTER_NAMED = const MessageKind(
126 'non-named argument after named argument');
125 127
126 static final NOT_A_COMPILE_TIME_CONSTANT = const MessageKind( 128 static final NOT_A_COMPILE_TIME_CONSTANT = const MessageKind(
127 'not a compile-time constant'); 129 'not a compile-time constant');
128 static final CYCLIC_COMPILE_TIME_CONSTANTS = const MessageKind( 130 static final CYCLIC_COMPILE_TIME_CONSTANTS = const MessageKind(
129 'cycle in the compile-time constant computation'); 131 'cycle in the compile-time constant computation');
130 132
131 static final KEY_NOT_A_STRING_LITERAL = const MessageKind( 133 static final KEY_NOT_A_STRING_LITERAL = const MessageKind(
132 'map-literal key not a string literal'); 134 'map-literal key not a string literal');
133 135
134 static final NO_SUCH_LIBRARY_MEMBER = const MessageKind( 136 static final NO_SUCH_LIBRARY_MEMBER = const MessageKind(
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 String toString() => message.toString(); 205 String toString() => message.toString();
204 } 206 }
205 207
206 class CompileTimeConstantError { 208 class CompileTimeConstantError {
207 final Message message; 209 final Message message;
208 CompileTimeConstantError.message(this.message); 210 CompileTimeConstantError.message(this.message);
209 CompileTimeConstantError(MessageKind kind, List<Type> arguments) 211 CompileTimeConstantError(MessageKind kind, List<Type> arguments)
210 : message = new Message(kind, arguments); 212 : message = new Message(kind, arguments);
211 String toString() => message.toString(); 213 String toString() => message.toString();
212 } 214 }
OLDNEW
« no previous file with comments | « frog/leg/universe.dart ('k') | tests/co19/co19-leg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698