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

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

Issue 8966029: Report errors and warnings for hiding elements, issue 572. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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
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 d8bdd9bb09fa5e8df05e03517a6fa8d29c6185c4..2ec821f8c82ae3de53d4ec9694d6fbea95590942 100644
--- a/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantResolver.java
+++ b/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantResolver.java
@@ -185,7 +185,7 @@ public class CompileTimeConstantResolver {
DartFunction functionNode = node.getFunction();
List<DartParameter> parameters = functionNode.getParams();
for (DartParameter parameter : parameters) {
- getContext().declare(parameter.getSymbol());
+ getContext().declare(parameter.getSymbol(), null, null);
// Then resolve the default values.
resolveConstantExpression(parameter.getDefaultExpr());
}

Powered by Google App Engine
This is Rietveld 408576698