MCPcopy
hub / github.com/aws/jsii / openBlock

Method openBlock

packages/codemaker/src/codemaker.ts:157–159  ·  view source on GitHub ↗

* Opens a code block. The formatting of the block is determined by `openBlockFormatter`. * @param text The text to pass to the formatter.

(text: string)

Source from the content-addressed store, hash-verified

155 * @param text The text to pass to the formatter.
156 */
157 public openBlock(text: string) {
158 this.open(this.openBlockFormatter(text));
159 }
160
161 /**
162 * Closes a code block. The formatting of the block is determined by `closeBlockFormatter`.

Callers 15

onBeginClassMethod · 0.80
onInitializerMethod · 0.80
onBeginEnumMethod · 0.80
onBeginInterfaceMethod · 0.80
onInterfacePropertyMethod · 0.80
emitStaticInitializerMethod · 0.80
emitPropertyMethod · 0.80
emitMethodMethod · 0.80
validateArrayMethod · 0.80
validateMapMethod · 0.80
validateTypeUnionMethod · 0.80

Calls 1

openMethod · 0.95

Tested by

no test coverage detected