Fix some incorrect indentation.
GITHUB_BREAKING_CHANGES=none
@@ -3529,7 +3529,8 @@ private ExprNode GlobalOrFunctionOrMapLiteral() :
// allow any expression. Parsing them using the same rules makes the error messages
// for malformed proto init literals confusing. So use a lookahead to parse the map literals
// separately.
- (LOOKAHEAD({ident.identifier().equals("map")} )
+ (
+ LOOKAHEAD( {ident.identifier().equals("map")} )
[
key = Expr()
<COLON>
@@ -3554,7 +3555,6 @@ private ExprNode GlobalOrFunctionOrMapLiteral() :
return new MapLiteralNode(kvPairs.build(), srcLoc);
}
|
-
[
// this can be any expr, for a function call; for proto init, must be a single-ident global
key = Expr()
@@ -3583,7 +3583,8 @@ private ExprNode GlobalOrFunctionOrMapLiteral() :
paramName = <IDENT>
{
if (!paramNames.add(paramName.image)) {
- errorReporter.report(createSrcLoc(paramName), DUPLICATE_PARAM_NAME, paramName.image);
+ errorReporter.report(
+ createSrcLoc(paramName), DUPLICATE_PARAM_NAME, paramName.image);
}
}
<COLON>
