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

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

Issue 2630573002: Revert to old syntax to fix bots (TBR) (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/parser.dart
diff --git a/pkg/analyzer/lib/src/generated/parser.dart b/pkg/analyzer/lib/src/generated/parser.dart
index dced5b5041e44d6a128e528ee77a46cb372dc432..e878afd8605748cdcf91f43faf9096b63fa4c0c7 100644
--- a/pkg/analyzer/lib/src/generated/parser.dart
+++ b/pkg/analyzer/lib/src/generated/parser.dart
@@ -2755,7 +2755,7 @@ class Parser {
* | type
*/
FinalConstVarOrType parseFinalConstVarOrType(bool optional,
- {bool inFunctionType = false}) {
+ {bool inFunctionType: false}) {
Token keywordToken = null;
TypeName type = null;
Keyword keyword = _currentToken.keyword;
@@ -2804,7 +2804,7 @@ class Parser {
* normalFormalParameter (':' expression)?
*/
FormalParameter parseFormalParameter(ParameterKind kind,
- {bool inFunctionType = false}) {
+ {bool inFunctionType: false}) {
NormalFormalParameter parameter =
parseNormalFormalParameter(inFunctionType: inFunctionType);
TokenType type = _currentToken.type;
@@ -2884,7 +2884,7 @@ class Parser {
* namedFormalParameters ::=
* '{' defaultNamedParameter (',' defaultNamedParameter)* '}'
*/
- FormalParameterList parseFormalParameterList({bool inFunctionType = false}) {
+ FormalParameterList parseFormalParameterList({bool inFunctionType: false}) {
if (_matches(TokenType.OPEN_PAREN)) {
return _parseFormalParameterListUnchecked(inFunctionType: inFunctionType);
}
@@ -4103,7 +4103,7 @@ class Parser {
* | metadata identifier
*/
NormalFormalParameter parseNormalFormalParameter(
- {bool inFunctionType = false}) {
+ {bool inFunctionType: false}) {
CommentAndMetadata commentAndMetadata = parseCommentAndMetadata();
FinalConstVarOrType holder = parseFinalConstVarOrType(!inFunctionType,
inFunctionType: inFunctionType);
@@ -6470,7 +6470,7 @@ class Parser {
* [leftParenthesis]. Return the formal parameters that were parsed.
*/
FormalParameterList _parseFormalParameterListAfterParen(Token leftParenthesis,
- {bool inFunctionType = false}) {
+ {bool inFunctionType: false}) {
if (_matches(TokenType.CLOSE_PAREN)) {
return astFactory.formalParameterList(
leftParenthesis, null, null, null, getAndAdvance());
@@ -6634,7 +6634,7 @@ class Parser {
* This method assumes that the current token matches `TokenType.OPEN_PAREN`.
*/
FormalParameterList _parseFormalParameterListUnchecked(
- {bool inFunctionType = false}) {
+ {bool inFunctionType: false}) {
return _parseFormalParameterListAfterParen(getAndAdvance(),
inFunctionType: inFunctionType);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698