Skip to content

Commit 5dfe3dc

Browse files
committed
add __rvalue(expression) builtin
1 parent f713bd3 commit 5dfe3dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/src/dmd/tokens.d

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ enum TOK : ubyte
5555
typeof_,
5656
pragma_,
5757
typeid_,
58+
rvalue,
5859
comment,
5960

6061
// Operators
@@ -314,6 +315,7 @@ enum EXP : ubyte
314315
declaration,
315316
dSymbol,
316317
typeid_,
318+
rvalue,
317319
uadd,
318320
remove,
319321
newAnonymousClass,
@@ -460,6 +462,7 @@ private immutable TOK[] keywords =
460462
TOK.pragma_,
461463
TOK.typeof_,
462464
TOK.typeid_,
465+
TOK.rvalue,
463466
TOK.template_,
464467
TOK.void_,
465468
TOK.int8,
@@ -680,6 +683,7 @@ extern (C++) struct Token
680683
TOK.pragma_: "pragma",
681684
TOK.typeof_: "typeof",
682685
TOK.typeid_: "typeid",
686+
TOK.rvalue: "__rvalue",
683687
TOK.template_: "template",
684688
TOK.void_: "void",
685689
TOK.int8: "byte",

0 commit comments

Comments
 (0)