Closed ghost closed 5 years ago
BTW I wonder if this recursion guard could be the cause of failing completion where mutually dependent modules are involved. See DCD issues. A better system would be to use a counter. IIRC DMD uses an arbitrary number, 5000, over that threshold semantic is cancelled.
Since strings representing the module name are actually
istring
we can store the first character of the module being cached.