MCPcopy Index your code
hub / github.com/projen/projen / open

Method open

src/source-code.ts:70–76  ·  view source on GitHub ↗

* Opens a code block and increases the indentation level. * * @param code The code before the block starts (e.g. `export class {`).

(code?: string)

Source from the content-addressed store, hash-verified

68 * @param code The code before the block starts (e.g. `export class {`).
69 */
70 public open(code?: string) {
71 if (code) {
72 this.line(code);
73 }
74
75 this.indentLevel++;
76 }
77
78 /**
79 * Decreases the indentation level and closes a code block.

Callers 4

constructorMethod · 0.95
constructorMethod · 0.95
constructorMethod · 0.80

Calls 1

lineMethod · 0.95

Tested by

no test coverage detected