Home / Function/ isInComponentStartTag() — astro Function Reference

isInComponentStartTag() — astro Function Reference

Architecture documentation for the isInComponentStartTag() function in utils.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  f203fd31_2de3_3174_8f08_10a6ff0a7aa1["isInComponentStartTag()"]
  839dada7_8bd4_2ee4_9498_f38d21d2f7e9["utils.ts"]
  f203fd31_2de3_3174_8f08_10a6ff0a7aa1 -->|defined in| 839dada7_8bd4_2ee4_9498_f38d21d2f7e9
  34c6881b_beae_f3e2_e2b6_340d737b9206["isPossibleComponent()"]
  f203fd31_2de3_3174_8f08_10a6ff0a7aa1 -->|calls| 34c6881b_beae_f3e2_e2b6_340d737b9206
  style f203fd31_2de3_3174_8f08_10a6ff0a7aa1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/language-tools/language-server/src/plugins/utils.ts lines 26–29

export function isInComponentStartTag(html: HTMLDocument, offset: number): boolean {
	const node = html.findNodeAt(offset);
	return isPossibleComponent(node) && (!node.startTagEnd || offset < node.startTagEnd);
}

Domain

Subdomains

Frequently Asked Questions

What does isInComponentStartTag() do?
isInComponentStartTag() is a function in the astro codebase, defined in packages/language-tools/language-server/src/plugins/utils.ts.
Where is isInComponentStartTag() defined?
isInComponentStartTag() is defined in packages/language-tools/language-server/src/plugins/utils.ts at line 26.
What does isInComponentStartTag() call?
isInComponentStartTag() calls 1 function(s): isPossibleComponent.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free