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

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

Issue 9186037: Issue 986: Static type warning when overriding static super members (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updating enum name Created 8 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
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 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 /**
11 * {@link ErrorCode}s for resolver. 11 * {@link ErrorCode}s for resolver.
12 */ 12 */
13 public enum ResolverErrorCode implements ErrorCode { 13 public enum ResolverErrorCode implements ErrorCode {
14 BLACK_LISTED_EXTENDS("'%s' can not be used as superclass"), 14 BLACK_LISTED_EXTENDS("'%s' can not be used as superclass"),
15 BLACK_LISTED_IMPLEMENTS("'%s' can not be used as superinterface"), 15 BLACK_LISTED_IMPLEMENTS("'%s' can not be used as superinterface"),
16 CANNOT_ACCESS_OUTER_LABEL("Cannot access label %s declared in an outer functio n"), 16 CANNOT_ACCESS_OUTER_LABEL("Cannot access label %s declared in an outer functio n"),
17 CANNOT_ACCESS_FIELD_IN_INIT("Cannot access an instance field in an initializer expression"), 17 CANNOT_ACCESS_FIELD_IN_INIT("Cannot access an instance field in an initializer expression"),
18 CANNOT_ASSIGN_TO_FINAL("cannot assign value to final variable \"%s\"."), 18 CANNOT_ASSIGN_TO_FINAL("cannot assign value to final variable \"%s\"."),
19 CANNOT_ASSIGN_TO_METHOD("cannot assign value to method '%s'."), 19 CANNOT_ASSIGN_TO_METHOD("cannot assign value to method '%s'."),
20 CANNOT_BE_RESOLVED("cannot resolve %s"), 20 CANNOT_BE_RESOLVED("cannot resolve %s"),
21 CANNOT_BE_RESOLVED_LIBRARY("cannot resolve %s in library %s"), 21 CANNOT_BE_RESOLVED_LIBRARY("cannot resolve %s in library %s"),
22 CANNOT_BE_INITIALIZED("cannot be initialized"), 22 CANNOT_BE_INITIALIZED("cannot be initialized"),
23 CANNOT_CALL_LABEL("Labels cannot be called"), 23 CANNOT_CALL_LABEL("Labels cannot be called"),
24 CANNOT_DECLARE_NON_FACTORY_CONSTRUCTOR( 24 CANNOT_DECLARE_NON_FACTORY_CONSTRUCTOR(
25 "Cannot declare a non-factory named constructor of another class."), 25 "Cannot declare a non-factory named constructor of another class."),
26 CANNOT_INIT_FIELD_FROM_SUPERCLASS("Cannot initialize a field from a super clas s"), 26 CANNOT_INIT_FIELD_FROM_SUPERCLASS("Cannot initialize a field from a super clas s"),
27 CANNOT_INIT_STATIC_FIELD_IN_INITIALIZER("Cannot initialize a static field in a n initializer list"), 27 CANNOT_INIT_STATIC_FIELD_IN_INITIALIZER("Cannot initialize a static field in a n initializer list"),
28 CANNOT_OVERRIDE_INSTANCE_MEMBER("static member cannot override instance member %s of %s"), 28 CANNOT_OVERRIDE_INSTANCE_MEMBER("static member cannot override instance member %s of %s"),
29 CANNOT_OVERRIDE_STATIC_MEMBER("cannot override static member %s of %s"),
30 CANNOT_OVERRIDE_METHOD_WRONG_NUM_PARAMS("cannot override method %s, wrong numb er of parameters"), 29 CANNOT_OVERRIDE_METHOD_WRONG_NUM_PARAMS("cannot override method %s, wrong numb er of parameters"),
31 CANNOT_OVERRIDE_METHOD_NUM_NAMED_PARAMS( 30 CANNOT_OVERRIDE_METHOD_NUM_NAMED_PARAMS(
32 "cannot override method %s, number of named parameters doesn't match"), 31 "cannot override method %s, number of named parameters doesn't match"),
33 CANNOT_OVERRIDE_METHOD_ORDER_NAMED_PARAMS( 32 CANNOT_OVERRIDE_METHOD_ORDER_NAMED_PARAMS(
34 "cannot override method %s, order of named parameters doesn't match"), 33 "cannot override method %s, order of named parameters doesn't match"),
35 CANNOT_RESOLVE_CONSTRUCTOR("cannot resolve constructor %s"), 34 CANNOT_RESOLVE_CONSTRUCTOR("cannot resolve constructor %s"),
36 CANNOT_RESOLVE_FIELD("cannot resolve field %s"), 35 CANNOT_RESOLVE_FIELD("cannot resolve field %s"),
37 CANNOT_RESOLVE_LABEL("cannot resolve label %s"), 36 CANNOT_RESOLVE_LABEL("cannot resolve label %s"),
38 CANNOT_RESOLVE_METHOD("cannot resolve method %s"), 37 CANNOT_RESOLVE_METHOD("cannot resolve method %s"),
39 CANNOT_RESOLVE_SUPER_CONSTRUCTOR("cannot resolve method %s"), 38 CANNOT_RESOLVE_SUPER_CONSTRUCTOR("cannot resolve method %s"),
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 @Override 171 @Override
173 public ErrorSeverity getErrorSeverity() { 172 public ErrorSeverity getErrorSeverity() {
174 return severity; 173 return severity;
175 } 174 }
176 175
177 @Override 176 @Override
178 public SubSystem getSubSystem() { 177 public SubSystem getSubSystem() {
179 return SubSystem.RESOLVER; 178 return SubSystem.RESOLVER;
180 } 179 }
181 } 180 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698