CssSyntaxError Class — tailwindcss Architecture
Architecture documentation for the CssSyntaxError class in css-parser.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 2a43c77d_67af_5622_8e64_2ebb9e527f6d["CssSyntaxError"] 8be42ab2_7e92_957a_da93_ffe4c7d161fe["css-parser.ts"] 2a43c77d_67af_5622_8e64_2ebb9e527f6d -->|defined in| 8be42ab2_7e92_957a_da93_ffe4c7d161fe 06bbe705_93d4_b06f_973a_f7b9b75ffb1d["constructor()"] 2a43c77d_67af_5622_8e64_2ebb9e527f6d -->|method| 06bbe705_93d4_b06f_973a_f7b9b75ffb1d
Relationship Graph
Source Code
packages/tailwindcss/src/css-parser.ts lines 43–62
export class CssSyntaxError extends Error {
loc: SourceLocation | null
constructor(message: string, loc: SourceLocation | null) {
if (loc) {
let source = loc[0]
let start = createLineTable(source.code).find(loc[1])
message = `${source.file}:${start.line}:${start.column + 1}: ${message}`
}
super(message)
this.name = 'CssSyntaxError'
this.loc = loc
if (Error.captureStackTrace) {
Error.captureStackTrace(this, CssSyntaxError)
}
}
}
Domain
Defined In
Source
Frequently Asked Questions
What is the CssSyntaxError class?
CssSyntaxError is a class in the tailwindcss codebase, defined in packages/tailwindcss/src/css-parser.ts.
Where is CssSyntaxError defined?
CssSyntaxError is defined in packages/tailwindcss/src/css-parser.ts at line 43.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free