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

Method constructor

src/cpp-syntax.ts:1120–1124  ·  view source on GitHub ↗
(expression?: Expression, target?: Type)

Source from the content-addressed store, hash-verified

1118 expression?: Expression;
1119
1120 constructor(expression?: Expression, target?: Type) {
1121 super();
1122 if (expression)
1123 this.expression = castExpression(expression, target ?? expression.type);
1124 }
1125
1126 override print(ctx: PrintContext) {
1127 if (this.expression)

Callers

nothing calls this directly

Calls 1

castExpressionFunction · 0.90

Tested by

no test coverage detected