Home / Function/ checkFunctionParameterExpression() — vue Function Reference

checkFunctionParameterExpression() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  7fb9578a_9512_bb4d_0cf3_8122729e70cb["checkFunctionParameterExpression()"]
  aaee210a_1630_b83a_6361_806f69707ec9["checkNode()"]
  aaee210a_1630_b83a_6361_806f69707ec9 -->|calls| 7fb9578a_9512_bb4d_0cf3_8122729e70cb
  style 7fb9578a_9512_bb4d_0cf3_8122729e70cb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/compiler/error-detector.ts lines 142–158

function checkFunctionParameterExpression(
  exp: string,
  text: string,
  warn: Function,
  range?: Range
) {
  try {
    new Function(exp, '')
  } catch (e: any) {
    warn(
      `invalid function parameter expression: ${e.message} in\n\n` +
        `    ${exp}\n\n` +
        `  Raw expression: ${text.trim()}\n`,
      range
    )
  }
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does checkFunctionParameterExpression() do?
checkFunctionParameterExpression() is a function in the vue codebase.
What calls checkFunctionParameterExpression()?
checkFunctionParameterExpression() 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