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

Side by Side Diff: compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java

Issue 12038035: Issue 8022. Report compile-time error when using mixing with not Object superclass. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 package com.google.dart.compiler.resolver; 4 package com.google.dart.compiler.resolver;
5 5
6 import com.google.dart.compiler.ErrorCode; 6 import com.google.dart.compiler.ErrorCode;
7 import com.google.dart.compiler.ErrorSeverity; 7 import com.google.dart.compiler.ErrorSeverity;
8 import com.google.dart.compiler.SubSystem; 8 import com.google.dart.compiler.SubSystem;
9 9
10 /** 10 /**
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 NOT_A_CLASS("\"%s\" is not a class"), 171 NOT_A_CLASS("\"%s\" is not a class"),
172 NOT_A_CLASS_OR_INTERFACE("\"%s\" is not a class or interface"), 172 NOT_A_CLASS_OR_INTERFACE("\"%s\" is not a class or interface"),
173 // TODO(zundel): error message needs JUnit test (reachable code?) 173 // TODO(zundel): error message needs JUnit test (reachable code?)
174 NOT_A_LABEL("\"%s\" is not a label"), 174 NOT_A_LABEL("\"%s\" is not a label"),
175 NOT_A_STATIC_FIELD(ErrorSeverity.WARNING, "\"%s\" is not a static field"), 175 NOT_A_STATIC_FIELD(ErrorSeverity.WARNING, "\"%s\" is not a static field"),
176 NOT_A_STATIC_METHOD("\"%s\" is not a static method"), 176 NOT_A_STATIC_METHOD("\"%s\" is not a static method"),
177 NOT_A_TYPE("type \"%s\" expected, but \"%s\" found"), 177 NOT_A_TYPE("type \"%s\" expected, but \"%s\" found"),
178 // TODO(zundel): error message needs JUnit test (reachable code?) 178 // TODO(zundel): error message needs JUnit test (reachable code?)
179 NOT_AN_INSTANCE_FIELD("%s is not an instance field"), 179 NOT_AN_INSTANCE_FIELD("%s is not an instance field"),
180 NOT_GENERATIVE_SUPER_CONSTRUCTOR("Constructor '%s' in class '%s' is not genera tive."), 180 NOT_GENERATIVE_SUPER_CONSTRUCTOR("Constructor '%s' in class '%s' is not genera tive."),
181 ONLY_OBJECT_MIXIN_SUPERCLASS("Only Object is allowed to be a superclass of a m ixin."),
181 OPTIONAL_PARAMETERS_CANNOT_START_WITH_UNDER("Optional parameters cannot start with an '_' character"), 182 OPTIONAL_PARAMETERS_CANNOT_START_WITH_UNDER("Optional parameters cannot start with an '_' character"),
182 PARAMETER_INIT_OUTSIDE_CONSTRUCTOR("Parameter initializers can only be used in constructors"), 183 PARAMETER_INIT_OUTSIDE_CONSTRUCTOR("Parameter initializers can only be used in constructors"),
183 SUPER_METHOD_INVOCATION_IN_CONSTRUCTOR_INITIALIZER( 184 SUPER_METHOD_INVOCATION_IN_CONSTRUCTOR_INITIALIZER(
184 "Super method invocation is not allowed in constructor initializer"), 185 "Super method invocation is not allowed in constructor initializer"),
185 PARAMETER_INIT_STATIC_FIELD( 186 PARAMETER_INIT_STATIC_FIELD(
186 "Parameter initializer cannot be use to initialize a static field '%s'"), 187 "Parameter initializer cannot be use to initialize a static field '%s'"),
187 // TODO(zundel): error message needs JUnit test (reachable code?) 188 // TODO(zundel): error message needs JUnit test (reachable code?)
188 PARAMETER_INIT_WITH_REDIR_CONSTRUCTOR( 189 PARAMETER_INIT_WITH_REDIR_CONSTRUCTOR(
189 "Parameter initializers cannot be used with redirected constructors"), 190 "Parameter initializers cannot be used with redirected constructors"),
190 // TODO(zundel): error message needs JUnit test 191 // TODO(zundel): error message needs JUnit test
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 @Override 258 @Override
258 public SubSystem getSubSystem() { 259 public SubSystem getSubSystem() {
259 return SubSystem.RESOLVER; 260 return SubSystem.RESOLVER;
260 } 261 }
261 262
262 @Override 263 @Override
263 public boolean needsRecompilation() { 264 public boolean needsRecompilation() {
264 return true; 265 return true;
265 } 266 }
266 } 267 }
OLDNEW
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698