MCPcopy Create free account
hub / github.com/ASDAlexander77/TypeScript2Cxx / EndBlock

Method EndBlock

src/codewriter.ts:14–25  ·  view source on GitHub ↗
(noNewLineAtTheEnd?: boolean)

Source from the content-addressed store, hash-verified

12 }
13
14 public EndBlock(noNewLineAtTheEnd?: boolean) {
15 this.DecreaseIntent();
16 if (!this.newLine) {
17 this.writeStringNewLine('');
18 }
19
20 if (noNewLineAtTheEnd) {
21 this.writeString('}');
22 } else {
23 this.writeStringNewLine('}');
24 }
25 }
26
27 public IncreaseIntent() {
28 this.intent += 4;

Callers 6

processFileMethod · 0.80
processTryStatementMethod · 0.80
processBlockMethod · 0.80

Calls 3

DecreaseIntentMethod · 0.95
writeStringNewLineMethod · 0.95
writeStringMethod · 0.95

Tested by

no test coverage detected