Home / Function/ constructor() — vue Function Reference

constructor() — vue Function Reference

Architecture documentation for the constructor() function in index.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  8d6cf871_3f3d_b8f8_7e6d_b3f079b088c1["constructor()"]
  685ff2c9_ead3_5b35_ef54_60f43f93a77f["CodegenState"]
  8d6cf871_3f3d_b8f8_7e6d_b3f079b088c1 -->|defined in| 685ff2c9_ead3_5b35_ef54_60f43f93a77f
  986757e2_2dff_4538_f36e_97457731ba01["pluckModuleFunction()"]
  8d6cf871_3f3d_b8f8_7e6d_b3f079b088c1 -->|calls| 986757e2_2dff_4538_f36e_97457731ba01
  style 8d6cf871_3f3d_b8f8_7e6d_b3f079b088c1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/compiler/codegen/index.ts lines 37–49

  constructor(options: CompilerOptions) {
    this.options = options
    this.warn = options.warn || baseWarn
    this.transforms = pluckModuleFunction(options.modules, 'transformCode')
    this.dataGenFns = pluckModuleFunction(options.modules, 'genData')
    this.directives = extend(extend({}, baseDirectives), options.directives)
    const isReservedTag = options.isReservedTag || no
    this.maybeComponent = (el: ASTElement) =>
      !!el.component || !isReservedTag(el.tag)
    this.onceId = 0
    this.staticRenderFns = []
    this.pre = false
  }

Domain

Subdomains

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the vue codebase, defined in src/compiler/codegen/index.ts.
Where is constructor() defined?
constructor() is defined in src/compiler/codegen/index.ts at line 37.
What does constructor() call?
constructor() calls 1 function(s): pluckModuleFunction.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free