(
definitions?: DefinitionCollections,
options: {
unionDiscriminatorProperties?: Set<string> | null;
allowUntaggedUnions?: boolean;
allowedUnionTypeNames?: Iterable<string>;
experimentalTypeNames?: Iterable<string>;
nonDefaultableTypes?: Iterable<string>;
} = {},
)
| 406 | } |
| 407 | |
| 408 | function makeCtx( |
| 409 | definitions?: DefinitionCollections, |
| 410 | options: { |
| 411 | unionDiscriminatorProperties?: Set<string> | null; |
| 412 | allowUntaggedUnions?: boolean; |
| 413 | allowedUnionTypeNames?: Iterable<string>; |
| 414 | experimentalTypeNames?: Iterable<string>; |
| 415 | nonDefaultableTypes?: Iterable<string>; |
| 416 | } = {}, |
| 417 | ): RustCodegenCtx { |
| 418 | return { |
| 419 | structs: [], |
| 420 | typeAliases: [], |
| 421 | enums: [], |
| 422 | generatedNames: new Set(), |
| 423 | nonDefaultableTypes: new Set(options.nonDefaultableTypes ?? []), |
| 424 | experimentalTypeNames: new Set(options.experimentalTypeNames ?? []), |
| 425 | definitions, |
| 426 | unionDiscriminatorProperties: |
| 427 | options.unionDiscriminatorProperties === null |
| 428 | ? undefined |
| 429 | : (options.unionDiscriminatorProperties ?? new Set(["kind"])), |
| 430 | allowUntaggedUnions: options.allowUntaggedUnions ?? false, |
| 431 | allowedUnionTypeNames: new Set(options.allowedUnionTypeNames ?? []), |
| 432 | externalTypeRefs: new Map(), |
| 433 | }; |
| 434 | } |
| 435 | |
| 436 | function pushRustExperimentalDocs( |
| 437 | lines: string[], |
no outgoing calls
no test coverage detected
searching dependent graphs…