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

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

Issue 10918247: Issue 5084. Report error if a type name appears multiple times in an implements clause (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Don't report duplicates for unresolved types Created 8 years, 3 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 "default class must have the same type parameters as declared in the inter face"), 76 "default class must have the same type parameters as declared in the inter face"),
77 DEFAULT_CONSTRUCTOR_UNRESOLVED("Cannot resolve constructor with name '%s' in d efault class '%s'"), 77 DEFAULT_CONSTRUCTOR_UNRESOLVED("Cannot resolve constructor with name '%s' in d efault class '%s'"),
78 DEFAULT_CONSTRUCTOR_NUMBER_OF_REQUIRED_PARAMETERS( 78 DEFAULT_CONSTRUCTOR_NUMBER_OF_REQUIRED_PARAMETERS(
79 "Constructor '%s' in '%s' has %s required parameters, doesn't match '%s' i n '%s' with %s"), 79 "Constructor '%s' in '%s' has %s required parameters, doesn't match '%s' i n '%s' with %s"),
80 DEFAULT_CONSTRUCTOR_NAMED_PARAMETERS( 80 DEFAULT_CONSTRUCTOR_NAMED_PARAMETERS(
81 "Constructor '%s' in '%s' has named parameters %s, doesn't match '%s' in ' %s' with %s"), 81 "Constructor '%s' in '%s' has named parameters %s, doesn't match '%s' in ' %s' with %s"),
82 DEFAULT_MUST_SPECIFY_CLASS("default must indicate a class, not an interface"), 82 DEFAULT_MUST_SPECIFY_CLASS("default must indicate a class, not an interface"),
83 DEPRECATED_MAP_LITERAL_SYNTAX(ErrorSeverity.WARNING, 83 DEPRECATED_MAP_LITERAL_SYNTAX(ErrorSeverity.WARNING,
84 "Deprecated Map literal syntax. Both String (as key) and value type argume nts required."), 84 "Deprecated Map literal syntax. Both String (as key) and value type argume nts required."),
85 DID_YOU_MEAN_NEW("%1$s is a %2$s. Did you mean (new %1$s)?"), 85 DID_YOU_MEAN_NEW("%1$s is a %2$s. Did you mean (new %1$s)?"),
86 DUPLICATE_IMPLEMENTS_TYPE("Duplicate type in the implements clause"),
86 DUPLICATE_INITIALIZATION("Duplicate initialization of '%s'"), 87 DUPLICATE_INITIALIZATION("Duplicate initialization of '%s'"),
87 DUPLICATE_FUNCTION_EXPRESSION("Duplicate function expression '%s'"), 88 DUPLICATE_FUNCTION_EXPRESSION("Duplicate function expression '%s'"),
88 DUPLICATE_LABEL_IN_SWITCH_STATEMENT("Duplicate label in switch statement"), 89 DUPLICATE_LABEL_IN_SWITCH_STATEMENT("Duplicate label in switch statement"),
89 DUPLICATE_LOCAL_VARIABLE_ERROR("Duplicate local variable '%s'"), 90 DUPLICATE_LOCAL_VARIABLE_ERROR("Duplicate local variable '%s'"),
90 DUPLICATE_MEMBER("Duplicate member '%s'"), 91 DUPLICATE_MEMBER("Duplicate member '%s'"),
91 DUPLICATE_NAMED_ARGUMENT("Duplicate named parameter argument"), 92 DUPLICATE_NAMED_ARGUMENT("Duplicate named parameter argument"),
92 DUPLICATE_PARAMETER("Duplicate parameter '%s'"), 93 DUPLICATE_PARAMETER("Duplicate parameter '%s'"),
93 DUPLICATE_TOP_LEVEL_DECLARATION("duplicate top-level declaration %s at %s"), 94 DUPLICATE_TOP_LEVEL_DECLARATION("duplicate top-level declaration %s at %s"),
94 DUPLICATE_TOP_LEVEL_DECLARATION_IMPORT("Duplicate import '%s' in %s prefix '%s ' - %s - %s"), 95 DUPLICATE_TOP_LEVEL_DECLARATION_IMPORT("Duplicate import '%s' in %s prefix '%s ' - %s - %s"),
95 DUPLICATE_TYPE_VARIABLE("Duplicate type variable '%s'"), 96 DUPLICATE_TYPE_VARIABLE("Duplicate type variable '%s'"),
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 @Override 235 @Override
235 public SubSystem getSubSystem() { 236 public SubSystem getSubSystem() {
236 return SubSystem.RESOLVER; 237 return SubSystem.RESOLVER;
237 } 238 }
238 239
239 @Override 240 @Override
240 public boolean needsRecompilation() { 241 public boolean needsRecompilation() {
241 return true; 242 return true;
242 } 243 }
243 } 244 }
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