Home / Function/ checkIdentifier() — vue Function Reference

checkIdentifier() — vue Function Reference

Architecture documentation for the checkIdentifier() function in error-detector.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  86b38454_4b84_11b8_7ce9_e6c685355683["checkIdentifier()"]
  2d4ea1fb_ca3b_f5fc_5e5f_57270428b446["error-detector.ts"]
  86b38454_4b84_11b8_7ce9_e6c685355683 -->|defined in| 2d4ea1fb_ca3b_f5fc_5e5f_57270428b446
  8f94cca1_b281_78f0_327e_1f6ace002464["checkFor()"]
  8f94cca1_b281_78f0_327e_1f6ace002464 -->|calls| 86b38454_4b84_11b8_7ce9_e6c685355683
  style 86b38454_4b84_11b8_7ce9_e6c685355683 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/compiler/error-detector.ts lines 97–111

function checkIdentifier(
  ident: string | null | undefined,
  type: string,
  text: string,
  warn: Function,
  range?: Range
) {
  if (typeof ident === 'string') {
    try {
      new Function(`var ${ident}=_`)
    } catch (e: any) {
      warn(`invalid ${type} "${ident}" in expression: ${text.trim()}`, range)
    }
  }
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does checkIdentifier() do?
checkIdentifier() is a function in the vue codebase, defined in src/compiler/error-detector.ts.
Where is checkIdentifier() defined?
checkIdentifier() is defined in src/compiler/error-detector.ts at line 97.
What calls checkIdentifier()?
checkIdentifier() is called by 1 function(s): checkFor.

Analyze Your Own Codebase

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

Try Supermodel Free