MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / commentEnd

Function commentEnd

src/extraction/sfc-script.ts:204–209  ·  view source on GitHub ↗
(at: number)

Source from the content-addressed store, hash-verified

202
203 /** The offset after the HTML comment at `at`, or `at + 4` when it never closes. */
204 const commentEnd = (at: number): number => {
205 if (at >= noCommentEndFrom) return at + 4;
206 const end = source.indexOf('-->', at + 4);
207 if (end < 0) noCommentEndFrom = Math.min(noCommentEndFrom, at);
208 return end < 0 ? at + 4 : end + 3;
209 };
210
211 /** The offset after the `<script>` or `<style>` element at `at`, or -1. */
212 const elementEnd = (at: number): number => {

Callers 2

expressionEndFunction · 0.85
sfcMarkupElementsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected