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

Unified Diff: pkg/analyzer_experimental/lib/src/generated/parser.dart

Issue 25373002: Issue 13584. Fix for Java/Dart local variable scoping mismatch. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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: pkg/analyzer_experimental/lib/src/generated/parser.dart
diff --git a/pkg/analyzer_experimental/lib/src/generated/parser.dart b/pkg/analyzer_experimental/lib/src/generated/parser.dart
index 619170b395aa8082d6ab9c1798d81277c979390b..a7cb7dece741431e39de2c8a7826eee74c8d962c 100644
--- a/pkg/analyzer_experimental/lib/src/generated/parser.dart
+++ b/pkg/analyzer_experimental/lib/src/generated/parser.dart
@@ -259,8 +259,8 @@ class Parser {
instrumentation.log();
}
}
- void set currentToken(Token currentToken2) {
- this._currentToken = currentToken2;
+ void set currentToken(Token currentToken) {
+ this._currentToken = currentToken;
}
/**
@@ -818,7 +818,7 @@ class Parser {
* @param keyword the keyword that is being tested for
* @return `true` if the given token matches the given keyword
*/
- bool matches3(Token token, Keyword keyword2) => identical(token.type, TokenType.KEYWORD) && identical(((token as KeywordToken)).keyword, keyword2);
+ bool matches3(Token token, Keyword keyword) => identical(token.type, TokenType.KEYWORD) && identical(((token as KeywordToken)).keyword, keyword);
/**
* Return `true` if the given token has the given type.
@@ -827,7 +827,7 @@ class Parser {
* @param type the type of token that is being tested for
* @return `true` if the given token has the given type
*/
- bool matches4(Token token, TokenType type2) => identical(token.type, type2);
+ bool matches4(Token token, TokenType type) => identical(token.type, type);
/**
* Return `true` if the current token has the given type. Note that this method, unlike
@@ -838,10 +838,10 @@ class Parser {
* @param type the type of token that can optionally appear in the current location
* @return `true` if the current token has the given type
*/
- bool matches5(TokenType type2) {
+ bool matches5(TokenType type) {
TokenType currentType = _currentToken.type;
- if (currentType != type2) {
- if (identical(type2, TokenType.GT)) {
+ if (currentType != type) {
+ if (identical(type, TokenType.GT)) {
if (identical(currentType, TokenType.GT_GT)) {
int offset = _currentToken.offset;
Token first = new Token(TokenType.GT, offset);

Powered by Google App Engine
This is Rietveld 408576698