Home / Class/ CssSyntaxError Class — tailwindcss Architecture

CssSyntaxError Class — tailwindcss Architecture

Architecture documentation for the CssSyntaxError class in css-parser.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  80512c10_e509_49e2_4df6_5380ffc30a3d["CssSyntaxError"]
  54851997_7544_bab2_96ab_548e5f5df205["css-parser.ts"]
  80512c10_e509_49e2_4df6_5380ffc30a3d -->|defined in| 54851997_7544_bab2_96ab_548e5f5df205
  78de071a_f799_6ab3_0591_47a529ff04e2["constructor()"]
  80512c10_e509_49e2_4df6_5380ffc30a3d -->|method| 78de071a_f799_6ab3_0591_47a529ff04e2

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

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