MCPcopy Create free account
hub / github.com/Snapchat/Valdi / endScope

Method endScope

compiler/companion/src/native/NativeCodeWriter.ts:88–94  ·  view source on GitHub ↗
(withNewLine: boolean = true)

Source from the content-addressed store, hash-verified

86 }
87
88 endScope(withNewLine: boolean = true) {
89 this.endIndent();
90 this.append('}');
91 if (withNewLine) {
92 this.appendWithNewLine();
93 }
94 }
95
96 beginComment() {
97 this.appendWithNewLine(`/*`);

Callers 8

endInitializationMethod · 0.95
emitEndFunctionMethod · 0.80
emitIntrinsicCallMethod · 0.80
emitBranchMethod · 0.80
finalizeMethod · 0.80

Calls 3

appendWithNewLineMethod · 0.95
endIndentMethod · 0.80
appendMethod · 0.65

Tested by

no test coverage detected