File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -147,15 +147,15 @@ mixin template TokenTriviaFields()
147
147
import dparse.trivia : extractLeadingDdoc;
148
148
if (memoizedLeadingComment ! is null )
149
149
return memoizedLeadingComment;
150
- return (cast ()memoizedLeadingComment) = this .extractLeadingDdoc;
150
+ return (ref () @trusted => cast () memoizedLeadingComment)( ) = this .extractLeadingDdoc;
151
151
}
152
152
153
153
// / ditto
154
154
string trailingComment () const pure nothrow @safe @property {
155
155
import dparse.trivia : extractTrailingDdoc;
156
156
if (memoizedTrailingComment ! is null )
157
157
return memoizedTrailingComment;
158
- return (cast ()memoizedTrailingComment ) = this .extractTrailingDdoc;
158
+ return (ref () @trusted => cast () memoizedLeadingComment)( ) = this .extractTrailingDdoc;
159
159
}
160
160
161
161
int opCmp (size_t i) const pure nothrow @safe @nogc {
You can’t perform that action at this time.
0 commit comments