getAstroMetadata() — astro Function Reference
Architecture documentation for the getAstroMetadata() function in parseAstro.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD b2606d14_70c4_bc93_1789_07a66f3d3311["getAstroMetadata()"] 0fc8da77_17d5_93f4_f8a7_0d74e4ce41d9["parseAstro.ts"] b2606d14_70c4_bc93_1789_07a66f3d3311 -->|defined in| 0fc8da77_17d5_93f4_f8a7_0d74e4ce41d9 92c77695_f5e4_ba84_e352_bad33ff64189["safeParseAst()"] b2606d14_70c4_bc93_1789_07a66f3d3311 -->|calls| 92c77695_f5e4_ba84_e352_bad33ff64189 8b12482e_9dfd_7461_220d_06e0f855c59a["getFrontmatterStatus()"] b2606d14_70c4_bc93_1789_07a66f3d3311 -->|calls| 8b12482e_9dfd_7461_220d_06e0f855c59a style b2606d14_70c4_bc93_1789_07a66f3d3311 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/language-tools/language-server/src/core/parseAstro.ts lines 10–21
export function getAstroMetadata(
fileName: string,
input: string,
options: ParseOptions = { position: true },
): Omit<AstroMetadata, 'tsxRanges'> {
const parseResult = safeParseAst(fileName, input, options);
return {
...parseResult,
frontmatter: getFrontmatterStatus(parseResult.ast, input),
};
}
Domain
Subdomains
Source
Frequently Asked Questions
What does getAstroMetadata() do?
getAstroMetadata() is a function in the astro codebase, defined in packages/language-tools/language-server/src/core/parseAstro.ts.
Where is getAstroMetadata() defined?
getAstroMetadata() is defined in packages/language-tools/language-server/src/core/parseAstro.ts at line 10.
What does getAstroMetadata() call?
getAstroMetadata() calls 2 function(s): getFrontmatterStatus, safeParseAst.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free