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
  fffd206b_e7fa_12ab_610b_dd4195aca915["checkFunctionParameterExpression()"]
  03e52bf5_d4b7_7913_0f75_08ec830fda42["checkNode()"]
  03e52bf5_d4b7_7913_0f75_08ec830fda42 -->|calls| fffd206b_e7fa_12ab_610b_dd4195aca915
  style fffd206b_e7fa_12ab_610b_dd4195aca915 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
    )
  }
}

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