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

Function sfcElementHasBody

src/extraction/sfc-script.ts:73–75  ·  view source on GitHub ↗
(element: string)

Source from the content-addressed store, hash-verified

71
72/** Whether a match of {@link SFC_SCRIPT_OR_STYLE_ELEMENT} has a body: false for a self-closing tag. */
73export function sfcElementHasBody(element: string): boolean {
74 return !element.endsWith('/>');
75}
76
77/**
78 * The lines (0-indexed, inclusive) of each `<script>` and `<style>` element

Callers 2

vueTemplateCallsFunction · 0.90
sfcBlockLineRangesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected