constructor() — tailwindcss Function Reference
Architecture documentation for the constructor() function in css-parser.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 78de071a_f799_6ab3_0591_47a529ff04e2["constructor()"] 80512c10_e509_49e2_4df6_5380ffc30a3d["CssSyntaxError"] 78de071a_f799_6ab3_0591_47a529ff04e2 -->|defined in| 80512c10_e509_49e2_4df6_5380ffc30a3d 0204f9b9_80aa_c3e8_eb61_22170d608d65["createLineTable()"] 78de071a_f799_6ab3_0591_47a529ff04e2 -->|calls| 0204f9b9_80aa_c3e8_eb61_22170d608d65 style 78de071a_f799_6ab3_0591_47a529ff04e2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/css-parser.ts lines 46–61
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
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/css-parser.ts.
Where is constructor() defined?
constructor() is defined in packages/tailwindcss/src/css-parser.ts at line 46.
What does constructor() call?
constructor() calls 1 function(s): createLineTable.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free