Skip to content

Commit c1041a7

Browse files
committed
adjust to review
1 parent 4a6df8d commit c1041a7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/dparse/parser.d

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import std.conv;
1212
import std.algorithm;
1313
import std.array;
1414
import std.string : format;
15+
import std.typecons : Flag;
1516

1617
// Uncomment this if you want ALL THE OUTPUT
1718
// Caution: generates 180 megabytes of logging for std.datetime
@@ -118,6 +119,9 @@ Module parseModule(F)(const(Token)[] tokens, string fileName, RollbackAllocator*
118119
*/
119120
class Parser
120121
{
122+
/// Flag type for some parsing arguments
123+
alias FromUnary = Flag!"fromUnary";
124+
121125
/**
122126
* Parses an AddExpression.
123127
*
@@ -3556,11 +3560,11 @@ class Parser
35563560
*/
35573561
FunctionCallExpression parseFunctionCallExpression()
35583562
{
3559-
return parseFunctionCallExpression(null, false);
3563+
return parseFunctionCallExpression(null, FromUnary.no);
35603564
}
35613565

35623566
/// ditto
3563-
FunctionCallExpression parseFunctionCallExpression(UnaryExpressionNode unary, bool fromUnary = true)
3567+
FunctionCallExpression parseFunctionCallExpression(UnaryExpressionNode unary, FromUnary fromUnary = FromUnary.yes)
35643568
{
35653569
mixin(traceEnterAndExit!(__FUNCTION__));
35663570
auto startIndex = index;

0 commit comments

Comments
 (0)