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

Unified Diff: pkg/compiler/lib/src/parser/parser.dart

Issue 2644533002: Mostly use entities in use.dart (Closed)
Patch Set: Fixes Created 3 years, 11 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/compiler/lib/src/parser/parser.dart
diff --git a/pkg/compiler/lib/src/parser/parser.dart b/pkg/compiler/lib/src/parser/parser.dart
index fa4ac4b05de8f8543bd6b9cf3bbe627d00d99685..c09d418f2c39aa7d48c6440a24d0a9ec9baa7ffc 100644
--- a/pkg/compiler/lib/src/parser/parser.dart
+++ b/pkg/compiler/lib/src/parser/parser.dart
@@ -424,12 +424,12 @@ class Parser {
++parameterCount;
String value = token.stringValue;
if (identical(value, '[')) {
- token = parseOptionalFormalParameters(
- token, false, inFunctionType: inFunctionType);
+ token = parseOptionalFormalParameters(token, false,
+ inFunctionType: inFunctionType);
break;
} else if (identical(value, '{')) {
- token = parseOptionalFormalParameters(
- token, true, inFunctionType: inFunctionType);
+ token = parseOptionalFormalParameters(token, true,
+ inFunctionType: inFunctionType);
break;
}
token = parseFormalParameter(token, FormalParameterType.REQUIRED,
@@ -522,8 +522,7 @@ class Parser {
}
var type =
isNamed ? FormalParameterType.NAMED : FormalParameterType.POSITIONAL;
- token =
- parseFormalParameter(token, type, inFunctionType: inFunctionType);
+ token = parseFormalParameter(token, type, inFunctionType: inFunctionType);
++parameterCount;
} while (optional(',', token));
if (parameterCount == 0) {
@@ -1466,7 +1465,7 @@ class Parser {
// Function( ... )
// Function< ... >( ... )
- Token peek = token.next; // Skip over the Function token.
+ Token peek = token.next; // Skip over the Function token.
// If there is a generic argument to the function, skip over that one first.
if (identical(peek.kind, LT_TOKEN)) {
BeginGroupToken beginGroupToken = peek;

Powered by Google App Engine
This is Rietveld 408576698