MCPcopy Create free account
hub / github.com/SplootCode/splootcode / constructor

Method constructor

packages/language-web/types/js/import.ts:39–43  ·  view source on GitHub ↗
(parentReference: ParentReference)

Source from the content-addressed store, hash-verified

37
38export class ImportStatement extends JavaScriptSplootNode {
39 constructor(parentReference: ParentReference) {
40 super(parentReference, IMPORT)
41 this.addChildSet('source', ChildSetType.Single, NodeCategory.ModuleSource)
42 this.addChildSet('specifiers', ChildSetType.Many, NodeCategory.DeclaredIdentifier)
43 }
44
45 getSource() {
46 return this.getChildSet('source')

Callers

nothing calls this directly

Calls 1

addChildSetMethod · 0.80

Tested by

no test coverage detected