MCPcopy Create free account
hub / github.com/observablehq/framework / MemberExpression

Function MemberExpression

src/javascript/params.ts:25–31  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

23
24 simple(body, {
25 MemberExpression(node) {
26 if (isParamReference(node)) {
27 const name = getParamName(node);
28 if (!(name in params)) throw syntaxError(`undefined parameter: ${name}`, node, input);
29 matches.push([name, node]);
30 }
31 }
32 });
33
34 function isParamReference(node: MemberExpression): node is ParamReference {

Callers

nothing calls this directly

Calls 3

isParamReferenceFunction · 0.85
getParamNameFunction · 0.85
syntaxErrorFunction · 0.85

Tested by

no test coverage detected