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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/ResolveVisitor.java

Issue 10575019: Gets rid of some warnings in the analyzer for unused code and unused imports (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/resolver/ResolveVisitor.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/ResolveVisitor.java b/compiler/java/com/google/dart/compiler/resolver/ResolveVisitor.java
index 02755b603ae2cc5f1b072e65ac8e7800f8cca51a..5890657222553982a90e03d4eb5348f4b7093dac 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolveVisitor.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolveVisitor.java
@@ -12,7 +12,6 @@ import com.google.dart.compiler.ast.DartFunctionTypeAlias;
import com.google.dart.compiler.ast.DartIdentifier;
import com.google.dart.compiler.ast.DartNode;
import com.google.dart.compiler.ast.DartParameter;
-import com.google.dart.compiler.ast.DartThisExpression;
import com.google.dart.compiler.ast.DartTypeNode;
import com.google.dart.compiler.ast.DartTypeParameter;
import com.google.dart.compiler.type.DynamicType;
@@ -52,13 +51,13 @@ abstract class ResolveVisitor extends ASTVisitor<Element> {
element.getParameters(), returnType);
Elements.setType(element, type);
for (DartParameter parameter : node.getParameters()) {
- if (//!(parameter.getQualifier() instanceof DartThisExpression) &&
- parameter.getModifiers().isNamed() &&
+ if (//!(parameter.getQualifier() instanceof DartThisExpression) &&
+ parameter.getModifiers().isNamed() &&
DartIdentifier.isPrivateName(parameter.getElement().getName())) {
- getContext().onError(parameter.getName(),
+ getContext().onError(parameter.getName(),
ResolverErrorCode.NAMED_PARAMETERS_CANNOT_START_WITH_UNDER);
}
- }
+ }
return element;
}
@@ -115,7 +114,7 @@ abstract class ResolveVisitor extends ASTVisitor<Element> {
recordElement(node.getName(), element);
return recordElement(node, element);
}
-
+
protected EnclosingElement getEnclosingElement() {
return null;
}
« no previous file with comments | « compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698