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
  16b9e300_563f_af90_e6f8_aea6ea1ebc4a["constructor()"]
  85813fc9_ab7d_8f75_33b7_a217e8daf5ee["createLineTable()"]
  16b9e300_563f_af90_e6f8_aea6ea1ebc4a -->|calls| 85813fc9_ab7d_8f75_33b7_a217e8daf5ee
  style 16b9e300_563f_af90_e6f8_aea6ea1ebc4a 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.
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