| Index: compiler/java/com/google/dart/compiler/parser/DartParser.java
|
| ===================================================================
|
| --- compiler/java/com/google/dart/compiler/parser/DartParser.java (revision 12446)
|
| +++ compiler/java/com/google/dart/compiler/parser/DartParser.java (working copy)
|
| @@ -2220,10 +2220,12 @@
|
| */
|
| private DartExpression parseParameterName() {
|
| beginParameterName();
|
| - if (optional(Token.THIS)) {
|
| + if (match(Token.THIS)) {
|
| beginThisExpression();
|
| + expect(Token.THIS);
|
| + DartThisExpression thisExpression = done(DartThisExpression.get());
|
| expect(Token.PERIOD);
|
| - return done(new DartPropertyAccess(done(DartThisExpression.get()), parseIdentifier()));
|
| + return done(new DartPropertyAccess(thisExpression, parseIdentifier()));
|
| }
|
| return done(parseIdentifier());
|
| }
|
|
|