Home / Function/ checkFor() — vue Function Reference

checkFor() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  ace53621_f03d_52e7_aefa_f706711cfd0f["checkFor()"]
  03e52bf5_d4b7_7913_0f75_08ec830fda42["checkNode()"]
  03e52bf5_d4b7_7913_0f75_08ec830fda42 -->|calls| ace53621_f03d_52e7_aefa_f706711cfd0f
  a07ee25d_c145_0205_5ce7_3eecf3bdb2c1["checkExpression()"]
  ace53621_f03d_52e7_aefa_f706711cfd0f -->|calls| a07ee25d_c145_0205_5ce7_3eecf3bdb2c1
  5987b88a_40c9_ad94_7c89_4a0f504cdb41["checkIdentifier()"]
  ace53621_f03d_52e7_aefa_f706711cfd0f -->|calls| 5987b88a_40c9_ad94_7c89_4a0f504cdb41
  style ace53621_f03d_52e7_aefa_f706711cfd0f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/compiler/error-detector.ts lines 85–95

function checkFor(
  node: ASTElement,
  text: string,
  warn: Function,
  range?: Range
) {
  checkExpression(node.for || '', text, warn, range)
  checkIdentifier(node.alias, 'v-for alias', text, warn, range)
  checkIdentifier(node.iterator1, 'v-for iterator', text, warn, range)
  checkIdentifier(node.iterator2, 'v-for iterator', text, warn, range)
}

Subdomains

Called By

Frequently Asked Questions

What does checkFor() do?
checkFor() is a function in the vue codebase.
What does checkFor() call?
checkFor() calls 2 function(s): checkExpression, checkIdentifier.
What calls checkFor()?
checkFor() 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