File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,15 +147,15 @@ mixin template TokenTriviaFields()
147147 import dparse.trivia : extractLeadingDdoc;
148148 if (memoizedLeadingComment ! is null )
149149 return memoizedLeadingComment;
150- return (cast ()memoizedLeadingComment) = this .extractLeadingDdoc;
150+ return (ref () @trusted => cast () memoizedLeadingComment)( ) = this .extractLeadingDdoc;
151151 }
152152
153153 // / ditto
154154 string trailingComment () const pure nothrow @safe @property {
155155 import dparse.trivia : extractTrailingDdoc;
156156 if (memoizedTrailingComment ! is null )
157157 return memoizedTrailingComment;
158- return (cast ()memoizedTrailingComment ) = this .extractTrailingDdoc;
158+ return (ref () @trusted => cast () memoizedLeadingComment)( ) = this .extractTrailingDdoc;
159159 }
160160
161161 int opCmp (size_t i) const pure nothrow @safe @nogc {
You can’t perform that action at this time.
0 commit comments