Home / Function/ checkEvent() — vue Function Reference

checkEvent() — vue Function Reference

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

Function typescript VueCore Observer calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  dd3e74a7_0a97_f4de_00bd_a2dd582148b6["checkEvent()"]
  082d4686_2778_e118_a80c_c4ffc89177dc["error-detector.ts"]
  dd3e74a7_0a97_f4de_00bd_a2dd582148b6 -->|defined in| 082d4686_2778_e118_a80c_c4ffc89177dc
  90b3f438_ac24_92d6_a5de_89063016d3c3["checkNode()"]
  90b3f438_ac24_92d6_a5de_89063016d3c3 -->|calls| dd3e74a7_0a97_f4de_00bd_a2dd582148b6
  16af5098_ed3e_ff8b_033a_83bfef03c28a["checkExpression()"]
  dd3e74a7_0a97_f4de_00bd_a2dd582148b6 -->|calls| 16af5098_ed3e_ff8b_033a_83bfef03c28a
  style dd3e74a7_0a97_f4de_00bd_a2dd582148b6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/compiler/error-detector.ts lines 72–83

function checkEvent(exp: string, text: string, warn: Function, range?: Range) {
  const stripped = exp.replace(stripStringRE, '')
  const keywordMatch: any = stripped.match(unaryOperatorsRE)
  if (keywordMatch && stripped.charAt(keywordMatch.index - 1) !== '$') {
    warn(
      `avoid using JavaScript unary operator as property name: ` +
        `"${keywordMatch[0]}" in expression ${text.trim()}`,
      range
    )
  }
  checkExpression(exp, text, warn, range)
}

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free