Home / Function/ constructor() — tailwindcss Function Reference

constructor() — tailwindcss Function Reference

Architecture documentation for the constructor() function in css-parser.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  06bbe705_93d4_b06f_973a_f7b9b75ffb1d["constructor()"]
  2a43c77d_67af_5622_8e64_2ebb9e527f6d["CssSyntaxError"]
  06bbe705_93d4_b06f_973a_f7b9b75ffb1d -->|defined in| 2a43c77d_67af_5622_8e64_2ebb9e527f6d
  1c8e1044_08e4_f6ad_7550_c4fa3667fbf3["createLineTable()"]
  06bbe705_93d4_b06f_973a_f7b9b75ffb1d -->|calls| 1c8e1044_08e4_f6ad_7550_c4fa3667fbf3
  style 06bbe705_93d4_b06f_973a_f7b9b75ffb1d 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

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