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

Method print

src/cpp-syntax.ts:117–125  ·  view source on GitHub ↗
(ctx: PrintContext)

Source from the content-addressed store, hash-verified

115 }
116
117 override print(ctx: PrintContext) {
118 ctx.features.add('string');
119 let result = 'compilets::StringBuilder()';
120 for (const span of this.spans) {
121 result += `.Append(${span.print(ctx)})`;
122 }
123 result += '.Take()';
124 return result;
125 }
126}
127
128export class AsExpression extends Expression {

Callers

nothing calls this directly

Calls 1

printMethod · 0.45

Tested by

no test coverage detected