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

Method pushVariableStatementsToDeclarations

src/cpp-file.ts:101–106  ·  view source on GitHub ↗

* Move the variable statements to declarations.

()

Source from the content-addressed store, hash-verified

99 * Move the variable statements to declarations.
100 */
101 pushVariableStatementsToDeclarations() {
102 if (this.variableStatements.length == 0)
103 return;
104 this.pushDeclaration(...this.variableStatements);
105 this.variableStatements = [];
106 }
107
108 /**
109 * The file parsing has ended.

Callers 2

addDeclarationMethod · 0.95
endOfFileMethod · 0.95

Calls 1

pushDeclarationMethod · 0.95

Tested by

no test coverage detected