Home / Function/ checkEvent() — vue Function Reference

checkEvent() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  963ab69f_336b_5da9_d203_6d251ae6120e["checkEvent()"]
  aaee210a_1630_b83a_6361_806f69707ec9["checkNode()"]
  aaee210a_1630_b83a_6361_806f69707ec9 -->|calls| 963ab69f_336b_5da9_d203_6d251ae6120e
  b55383fd_0a74_e361_5034_d76e06d6bf2d["checkExpression()"]
  963ab69f_336b_5da9_d203_6d251ae6120e -->|calls| b55383fd_0a74_e361_5034_d76e06d6bf2d
  style 963ab69f_336b_5da9_d203_6d251ae6120e 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.
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