Skip to content

Commit c3bac5b

Browse files
committed
adjust to review
1 parent 54a6921 commit c3bac5b

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
*
@@ -3557,11 +3561,11 @@ class Parser
35573561
*/
35583562
FunctionCallExpression parseFunctionCallExpression()
35593563
{
3560-
return parseFunctionCallExpression(null, false);
3564+
return parseFunctionCallExpression(null, FromUnary.no);
35613565
}
35623566

35633567
/// ditto
3564-
FunctionCallExpression parseFunctionCallExpression(UnaryExpressionNode unary, bool fromUnary = true)
3568+
FunctionCallExpression parseFunctionCallExpression(UnaryExpressionNode unary, FromUnary fromUnary = FromUnary.yes)
35653569
{
35663570
mixin(traceEnterAndExit!(__FUNCTION__));
35673571
auto startIndex = index;

0 commit comments

Comments
 (0)