checkEvent() — vue Function Reference
Architecture documentation for the checkEvent() function in error-detector.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 37baf005_61f0_9158_e058_dc71b1339824["checkEvent()"] 2d4ea1fb_ca3b_f5fc_5e5f_57270428b446["error-detector.ts"] 37baf005_61f0_9158_e058_dc71b1339824 -->|defined in| 2d4ea1fb_ca3b_f5fc_5e5f_57270428b446 5fc4a59d_bcb9_be4d_570f_a7dcdb348719["checkNode()"] 5fc4a59d_bcb9_be4d_570f_a7dcdb348719 -->|calls| 37baf005_61f0_9158_e058_dc71b1339824 2127ea1b_a77c_06dc_8c70_cd0ff98cb1ca["checkExpression()"] 37baf005_61f0_9158_e058_dc71b1339824 -->|calls| 2127ea1b_a77c_06dc_8c70_cd0ff98cb1ca style 37baf005_61f0_9158_e058_dc71b1339824 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
Defined In
Calls
Called By
Source
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