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

Function ExportDefaultDeclaration

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

Source from the content-addressed store, hash-verified

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: ""})
341 } else {
342 patches.push({from: node.start, to: node.declaration.start, text: ";("},
343 {from: node.declaration.end, text: ")"})
344 }
345 },
346 ExportAllDeclaration: function(node) {
347 patches.push({from: node.start, to: node.end, text: ""})
348 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected