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

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

Issue 10855140: Issue 3562. Analyzer should not warn about shadowing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | « no previous file | compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantResolver.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantResolver.java b/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantResolver.java
index 3f82debc0ed8c7a8e535a3daaef16d1e389e4577..96df0a2d78c182ecadb8482a661a59fbb4df839f 100644
--- a/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantResolver.java
+++ b/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantResolver.java
@@ -190,7 +190,7 @@ public class CompileTimeConstantResolver {
DartFunction functionNode = node.getFunction();
List<DartParameter> parameters = functionNode.getParameters();
for (DartParameter parameter : parameters) {
- getContext().declare(parameter.getElement(), null, null);
+ getContext().declare(parameter.getElement(), null);
// Then resolve the default values.
resolveConstantExpression(parameter.getDefaultExpr());
}
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698