Home / Function/ hasCompilationErrors() — astro Function Reference

hasCompilationErrors() — astro Function Reference

Architecture documentation for the hasCompilationErrors() function in index.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  b54a698d_da0f_0056_cd12_67fd27091b47["hasCompilationErrors()"]
  0f9bebbf_2381_aa6d_9fed_bd6c8978c2c3["AstroVirtualCode"]
  b54a698d_da0f_0056_cd12_67fd27091b47 -->|defined in| 0f9bebbf_2381_aa6d_9fed_bd6c8978c2c3
  style b54a698d_da0f_0056_cd12_67fd27091b47 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/language-tools/language-server/src/core/index.ts lines 197–203

	get hasCompilationErrors(): boolean {
		return (
			// eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison
			this.compilerDiagnostics.filter((diag) => diag.severity === (1 satisfies DiagnosticSeverity))
				.length > 0
		);
	}

Domain

Subdomains

Frequently Asked Questions

What does hasCompilationErrors() do?
hasCompilationErrors() is a function in the astro codebase, defined in packages/language-tools/language-server/src/core/index.ts.
Where is hasCompilationErrors() defined?
hasCompilationErrors() is defined in packages/language-tools/language-server/src/core/index.ts at line 197.

Analyze Your Own Codebase

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

Try Supermodel Free