MCPcopy Create free account
hub / github.com/compilets/compilets / addImport

Method addImport

src/cpp-file.ts:49–51  ·  view source on GitHub ↗

* Add import declarations.

(declaration: syntax.ImportDeclaration)

Source from the content-addressed store, hash-verified

47 * Add import declarations.
48 */
49 addImport(declaration: syntax.ImportDeclaration) {
50 this.imports.push(declaration);
51 }
52
53 /**
54 * Add a top-level class/function declaration.

Callers 1

parseSourceFileMethod · 0.95

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected