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

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

Issue 10828355: Issue 4289. Test that arguments are bound to positional, optional and named parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Prepare for making optional parameter not named 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
Index: compiler/java/com/google/dart/compiler/resolver/VariableElementImplementation.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/VariableElementImplementation.java b/compiler/java/com/google/dart/compiler/resolver/VariableElementImplementation.java
index 8e19ed4db48a66013c41469e52a9d63aa95200ca..7e67b3c6e5c3b1bb40034e88cbf1d7b6356d774e 100644
--- a/compiler/java/com/google/dart/compiler/resolver/VariableElementImplementation.java
+++ b/compiler/java/com/google/dart/compiler/resolver/VariableElementImplementation.java
@@ -66,6 +66,11 @@ class VariableElementImplementation extends AbstractNodeElement implements Varia
}
@Override
+ public boolean isOptional() {
+ return modifiers.isOptional();
+ }
+
+ @Override
public boolean isNamed() {
return isNamed;
}

Powered by Google App Engine
This is Rietveld 408576698