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

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

Issue 10991064: Issue 5350. Type variable should be accessible in instance field (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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) 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 PARAMETER_INIT_OUTSIDE_CONSTRUCTOR("Parameter initializers can only be used in constructors"), 174 PARAMETER_INIT_OUTSIDE_CONSTRUCTOR("Parameter initializers can only be used in constructors"),
175 SUPER_METHOD_INVOCATION_IN_CONSTRUCTOR_INITIALIZER( 175 SUPER_METHOD_INVOCATION_IN_CONSTRUCTOR_INITIALIZER(
176 "Super method invocation is not allowed in constructor initializer"), 176 "Super method invocation is not allowed in constructor initializer"),
177 PARAMETER_INIT_STATIC_FIELD( 177 PARAMETER_INIT_STATIC_FIELD(
178 "Parameter initializer cannot be use to initialize a static field '%s'"), 178 "Parameter initializer cannot be use to initialize a static field '%s'"),
179 // TODO(zundel): error message needs JUnit test (reachable code?) 179 // TODO(zundel): error message needs JUnit test (reachable code?)
180 PARAMETER_INIT_WITH_REDIR_CONSTRUCTOR( 180 PARAMETER_INIT_WITH_REDIR_CONSTRUCTOR(
181 "Parameter initializers cannot be used with redirected constructors"), 181 "Parameter initializers cannot be used with redirected constructors"),
182 // TODO(zundel): error message needs JUnit test 182 // TODO(zundel): error message needs JUnit test
183 PARAMETER_NOT_MATCH_FIELD("Could not match parameter initializer '%s' with any field"), 183 PARAMETER_NOT_MATCH_FIELD("Could not match parameter initializer '%s' with any field"),
184 REDIRECTION_CONSTRUCTOR_TARGET_TYPE(
185 "Target of redirecting factory constructor is not a type"),
184 REDIRECTION_CONSTRUCTOR_TARGET_MUST_BE_CONST( 186 REDIRECTION_CONSTRUCTOR_TARGET_MUST_BE_CONST(
185 "Target of constant redirecting factory constructor also should be constan t"), 187 "Target of constant redirecting factory constructor also should be constan t"),
186 RETHROW_NOT_IN_CATCH("Re-throw not in a catch block"), 188 RETHROW_NOT_IN_CATCH("Re-throw not in a catch block"),
187 STATIC_FINAL_REQUIRES_VALUE("Static final fields must have an initial value"), 189 STATIC_FINAL_REQUIRES_VALUE("Static final fields must have an initial value"),
188 STATIC_METHOD_MUST_HAVE_BODY("Static method must have a body"), 190 STATIC_METHOD_MUST_HAVE_BODY("Static method must have a body"),
189 SUPER_IN_FACTORY_CONSTRUCTOR("Cannot use 'super' in a factory constructor"), 191 SUPER_IN_FACTORY_CONSTRUCTOR("Cannot use 'super' in a factory constructor"),
190 SUPER_IN_STATIC_METHOD("Cannot use 'super' in a static method"), 192 SUPER_IN_STATIC_METHOD("Cannot use 'super' in a static method"),
191 SUPER_OUTSIDE_OF_METHOD("Cannot use 'super' outside of a method"), 193 SUPER_OUTSIDE_OF_METHOD("Cannot use 'super' outside of a method"),
192 SUPER_ON_TOP_LEVEL("Cannot use 'super' in a top-level element"), 194 SUPER_ON_TOP_LEVEL("Cannot use 'super' in a top-level element"),
193 SWITCH_CASE_FALL_THROUGH(ErrorSeverity.WARNING, "Switch case should end with b reak, continue, return or throw"), 195 SWITCH_CASE_FALL_THROUGH(ErrorSeverity.WARNING, "Switch case should end with b reak, continue, return or throw"),
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 @Override 242 @Override
241 public SubSystem getSubSystem() { 243 public SubSystem getSubSystem() {
242 return SubSystem.RESOLVER; 244 return SubSystem.RESOLVER;
243 } 245 }
244 246
245 @Override 247 @Override
246 public boolean needsRecompilation() { 248 public boolean needsRecompilation() {
247 return true; 249 return true;
248 } 250 }
249 } 251 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698