MCPcopy Create free account
hub / github.com/glideapps/quicktype / emitExpressionMember

Method emitExpressionMember

src/Language/CSharp.ts:291–300  ·  view source on GitHub ↗
(declare: Sourcelike, define: Sourcelike)

Source from the content-addressed store, hash-verified

289 };
290
291 emitExpressionMember(declare: Sourcelike, define: Sourcelike): void {
292 if (this._version === 5) {
293 this.emitLine(declare);
294 this.emitBlock(() => {
295 this.emitLine("return ", define, ";");
296 });
297 } else {
298 this.emitLine(declare, " => ", define, ";");
299 }
300 }
301
302 emitFromJsonForTopLevel = (t: Type, name: Name): void => {
303 let partial: string;

Callers 1

CSharpRendererClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected