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

Method endOfFile

src/cpp-file.ts:111–118  ·  view source on GitHub ↗

* The file parsing has ended.

()

Source from the content-addressed store, hash-verified

109 * The file parsing has ended.
110 */
111 endOfFile() {
112 if (this.type == 'lib')
113 this.pushVariableStatementsToDeclarations();
114 else
115 this.pushVariableStatementsToMainFunction();
116 if (this.type == 'napi')
117 this.body!.addStatement(...this.generateExportedBindings());
118 }
119
120 /**
121 * Return whether top-level declarations can be added to this file.

Callers 1

parseSourceFileMethod · 0.95

Tested by

no test coverage detected