Home / Function/ isPossibleComponent() — astro Function Reference

isPossibleComponent() — astro Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

packages/language-tools/language-server/src/plugins/utils.ts lines 18–21

export function isPossibleComponent(node: Node): boolean {
	if (!node.tag) return false;
	return !!/[A-Z]/.test(node.tag?.[0]) || !!/.+\.[A-Z]?/.test(node.tag);
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free