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

Method canAddDeclaration

src/cpp-file.ts:123–125  ·  view source on GitHub ↗

* Return whether top-level declarations can be added to this file.

()

Source from the content-addressed store, hash-verified

121 * Return whether top-level declarations can be added to this file.
122 */
123 canAddDeclaration(): boolean {
124 return !this.body || this.body.isEmpty();
125 }
126
127 /**
128 * Return whether this file contains exported declarations.

Callers 1

parseSourceFileMethod · 0.95

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected