MCPcopy
hub / github.com/jquery/esprima / proxyDelegate

Function proxyDelegate

src/esprima.ts:32–39  ·  view source on GitHub ↗
(node, metadata)

Source from the content-addressed store, hash-verified

30export function parse(code: string, options, delegate) {
31 let commentHandler: CommentHandler | null = null;
32 const proxyDelegate = (node, metadata) => {
33 if (delegate) {
34 delegate(node, metadata);
35 }
36 if (commentHandler) {
37 commentHandler.visit(node, metadata);
38 }
39 };
40
41 let parserDelegate = (typeof delegate === 'function') ? proxyDelegate : null;
42 let collectComment = false;

Callers

nothing calls this directly

Calls 1

visitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…