MCPcopy Create free account
hub / github.com/marijnh/Eloquent-JavaScript / ExportNamedDeclaration

Function ExportNamedDeclaration

src/client/sandbox.mjs:332–337  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

330 patches.push({from: node.start, to: node.end, text: text + ";"})
331 },
332 ExportNamedDeclaration(node) {
333 if (node.source || !node.declaration)
334 patches.push({from: node.start, to: node.end, text: ""})
335 else
336 patches.push({from: node.start, to: node.declaration.start, text: ""})
337 },
338 ExportDefaultDeclaration(node) {
339 if (/Declaration/.test(node.declaration.type)) {
340 patches.push({from: node.start, to: node.declaration.start, text: ""})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected