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

Function syntaxError

src/javascript/syntaxError.ts:4–7  ·  view source on GitHub ↗
(message: string, node: Node, input: string)

Source from the content-addressed store, hash-verified

2import {getLineInfo} from "acorn";
3
4export function syntaxError(message: string, node: Node, input: string): SyntaxError {
5 const {line, column} = getLineInfo(input, node.start);
6 return new SyntaxError(`${message} (${line}:${column})`);
7}

Callers 8

declareLocalFunction · 0.85
CallExpressionFunction · 0.85
checkConstFunction · 0.85
findImportFunction · 0.85
findImportMetaResolveFunction · 0.85
parseJavaScriptFunction · 0.85
MemberExpressionFunction · 0.85
isParamReferenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected