We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c665c0 commit 496ed47Copy full SHA for 496ed47
src/dparse/ast.d
@@ -2363,7 +2363,23 @@ final class InterpolatedString : BaseNode
2363
: Token.init;
2364
}
2365
2366
- mixin OpEquals!("startQuote.text");
+ /// '\0'/'c'/'w'/'d' for `i""`, `i""c`, `i""w` and `i""d` respectively.
2367
+ char postfixType() inout pure nothrow @nogc @safe scope
2368
+ {
2369
+ auto end = endQuote.text;
2370
+ auto endChar = end.length ? end[$ - 1] : ' ';
2371
+ switch (endChar)
2372
2373
+ case 'c':
2374
+ case 'w':
2375
+ case 'd':
2376
+ return endChar;
2377
+ default:
2378
+ return '\0';
2379
+ }
2380
2381
+
2382
+ mixin OpEquals!("startQuote.text", "postfixType");
2383
2384
2385
///
0 commit comments