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
  aef43d84_2347_b8b6_abef_4d23ef6c6729["checkIdentifier()"]
  082d4686_2778_e118_a80c_c4ffc89177dc["error-detector.ts"]
  aef43d84_2347_b8b6_abef_4d23ef6c6729 -->|defined in| 082d4686_2778_e118_a80c_c4ffc89177dc
  4dd3d0a2_6743_9355_edda_f6ccca131e23["checkFor()"]
  4dd3d0a2_6743_9355_edda_f6ccca131e23 -->|calls| aef43d84_2347_b8b6_abef_4d23ef6c6729
  style aef43d84_2347_b8b6_abef_4d23ef6c6729 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