<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const enum E { }"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-k">enum</span> <span class="pl-smi">E</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto">Try to get occurrences on the <code class="notranslate">const</code> keyword.</p>
<p dir="auto">Error: Debug Failure. False expression:<br>
at assert (:1143:17)<br>
at fail (:1148:13)<br>
at getFlagFromModifier (:25796:29)<br>
at getModifierOccurrences (:25751:17)<br>
at getOccurrencesAtPosition (:25484:25)<br>
at Anonymous function (:27826:17)<br>
at simpleForwardCall (:27643:9)<br>
at forwardJSONCall (:27657:13)<br>
at forwardJSONCall (:27688:13)<br>
at getOccurrencesAtPosition (:27825:13)</p>
<p dir="auto">Action description:<br>
getOccurrencesAtPosition('C:\test\t2.ts', 0)</p>
<p dir="auto">Script callstack:</p>
<p dir="auto">Error: Debug Failure. False expression:<br>
at assert (:1125:17)<br>
at fail (:1130:13)<br>
at getFlagFromModifier (:23623:29)<br>
at getModifierOccurrences (:23578:17)<br>
at getOccurrencesAtPosition (:23315:25)<br>
at Anonymous function (:25657:17)<br>
at simpleForwardCall (:25474:9)<br>
at forwardJSONCall (:25488:13)<br>
at forwardJSONCall (:25519:13)<br>
at getOccurrencesAtPosition (:25656:13)</p>
<p dir="auto">source:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const x = 0; "><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> </pre></div>
<p dir="auto">Cursor is at "const"</p>