| 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;
|
| }
|
|
|