From 8f016a213839fa2734eef1d86eb3b387fd8dcf00 Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Wed, 22 Feb 2017 16:47:14 +0100 Subject: [PATCH] Formatter: fix fields of primaryExpression For example, the `intLiteral` here was omitted before: in: assert(float(0)) out: assert(float) --- src/dparse/formatter.d | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dparse/formatter.d b/src/dparse/formatter.d index 59d9e21b..a0580935 100644 --- a/src/dparse/formatter.d +++ b/src/dparse/formatter.d @@ -2341,12 +2341,14 @@ class Formatter(Sink) AssocArrayLiteral assocArrayLiteral; Expression expression; IsExpression isExpression; - LambdaExpression lambdaExpression; FunctionLiteralExpression functionLiteralExpression; TraitsExpression traitsExpression; MixinExpression mixinExpression; ImportExpression importExpression; Vector vector; + Type type; + Token typeConstructor; + Arguments arguments; **/ with(primaryExpression) @@ -2379,6 +2381,8 @@ class Formatter(Sink) else if (mixinExpression) format(mixinExpression); else if (importExpression) format(importExpression); else if (vector) format(vector); + else if (type) format(type); + else if (arguments) format(arguments); } }