MCPcopy Index your code
hub / github.com/github/copilot-sdk / pushCSharpInternalAttribute

Function pushCSharpInternalAttribute

scripts/codegen/csharp.ts:532–536  ·  view source on GitHub ↗

* Emit the `[JsonInclude]` attribute for an internally-marked property and * return the C# access modifier to use for the property declaration. * * `[JsonInclude]` is required because System.Text.Json only auto-(de)serialises * public members by default; without it, the `internal` setter would s

(lines: string[], schema: JSONSchema7, indent = "    ")

Source from the content-addressed store, hash-verified

530 * be skipped.
531 */
532function pushCSharpInternalAttribute(lines: string[], schema: JSONSchema7, indent = " "): "public" | "internal" {
533 const propInternal = isSchemaInternal(schema);
534 if (propInternal) lines.push(`${indent}[JsonInclude]`);
535 return propInternal ? "internal" : "public";
536}
537
538// ══════════════════════════════════════════════════════════════════════════════
539// SESSION EVENTS

Callers 6

generateDerivedClassFunction · 0.85
generateNestedClassFunction · 0.85
generateDataClassFunction · 0.85
emitRpcClassFunction · 0.85

Calls 2

isSchemaInternalFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…