@tsonic/dotnet
Version:
TypeScript type definitions for .NET 10 BCL (Base Class Library)
144 lines (127 loc) • 6.43 kB
TypeScript
// Generated by tsbindgen - Architecture
// Namespace: System.CodeDom.Compiler
// Assembly: System.Private.CoreLib
// Branded primitive types are sourced from @tsonic/types
import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types';
// Import types from other namespaces
import * as System_IO_Internal from "../../System.IO/internal/index.js";
import type { TextWriter } from "../../System.IO/internal/index.js";
import type { Encoding, StringBuilder } from "../../System.Text/internal/index.js";
import type { Task, ValueTask } from "../../System.Threading.Tasks/internal/index.js";
import type { CancellationToken } from "../../System.Threading/internal/index.js";
import * as System_Internal from "../../System/internal/index.js";
import type { Attribute, Boolean as ClrBoolean, Char, Decimal, Double, IAsyncDisposable, IDisposable, IFormatProvider, Int32, Int64, Object as ClrObject, ReadOnlyMemory_1, ReadOnlySpan_1, Single, String as ClrString, Type, UInt32, UInt64, Void } from "../../System/internal/index.js";
// CLROf<T> - Maps ergonomic primitives to their CLR types for generic constraints
// This utility is used ONLY in generic type arguments to satisfy CLR interface constraints
// Value positions (parameters, return types) use lowercase primitives for ergonomics
export type CLROf<T> =
T extends sbyte ? System_Internal.SByte :
T extends short ? System_Internal.Int16 :
T extends int ? System_Internal.Int32 :
T extends long ? System_Internal.Int64 :
T extends int128 ? System_Internal.Int128 :
T extends nint ? System_Internal.IntPtr :
T extends byte ? System_Internal.Byte :
T extends ushort ? System_Internal.UInt16 :
T extends uint ? System_Internal.UInt32 :
T extends ulong ? System_Internal.UInt64 :
T extends uint128 ? System_Internal.UInt128 :
T extends nuint ? System_Internal.UIntPtr :
T extends half ? System_Internal.Half :
T extends float ? System_Internal.Single :
T extends double ? System_Internal.Double :
T extends decimal ? System_Internal.Decimal :
T extends char ? System_Internal.Char :
T extends boolean ? System_Internal.Boolean :
T extends string ? System_Internal.String :
T; // Identity fallback for non-primitive types
export interface GeneratedCodeAttribute$instance extends Attribute {
readonly tool: string;
readonly version: string;
}
export const GeneratedCodeAttribute: {
new(tool: string, version: string): GeneratedCodeAttribute$instance;
};
export type GeneratedCodeAttribute = GeneratedCodeAttribute$instance;
export interface IndentedTextWriter$instance extends TextWriter {
readonly encoding: Encoding;
indent: int;
readonly innerWriter: TextWriter;
newLine: string;
close(): void;
dispose(): void;
disposeAsync(): ValueTask;
flush(): void;
flushAsync(): Task;
flushAsync(cancellationToken: CancellationToken): Task;
write(s: string): void;
write(value: boolean): void;
write(value: char): void;
write(buffer: char[]): void;
write(buffer: char[], index: int, count: int): void;
write(value: double): void;
write(value: float): void;
write(value: int): void;
write(value: long): void;
write(value: unknown): void;
write(format: string, arg0: unknown): void;
write(format: string, arg0: unknown, arg1: unknown): void;
write(format: string, arg: unknown[]): void;
write(format: string, arg: ReadOnlySpan_1<unknown>): void;
write(buffer: ReadOnlySpan_1<CLROf<char>>): void;
write(value: uint): void;
write(value: ulong): void;
write(value: decimal): void;
write(value: StringBuilder): void;
write(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void;
write(format: string, arg: ReadOnlySpan_1<unknown>): void;
writeAsync(value: char): Task;
writeAsync(buffer: char[], index: int, count: int): Task;
writeAsync(value: string): Task;
writeAsync(buffer: ReadOnlyMemory_1<CLROf<char>>, cancellationToken?: CancellationToken): Task;
writeAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task;
writeAsync(buffer: char[]): Task;
writeAsync(buffer: ReadOnlyMemory_1<CLROf<char>>, cancellationToken?: CancellationToken): Task;
writeLine(s: string): void;
writeLine(): void;
writeLine(value: boolean): void;
writeLine(value: char): void;
writeLine(buffer: char[]): void;
writeLine(buffer: char[], index: int, count: int): void;
writeLine(value: double): void;
writeLine(value: float): void;
writeLine(value: int): void;
writeLine(value: long): void;
writeLine(value: unknown): void;
writeLine(format: string, arg0: unknown): void;
writeLine(format: string, arg0: unknown, arg1: unknown): void;
writeLine(format: string, arg: unknown[]): void;
writeLine(format: string, arg: ReadOnlySpan_1<unknown>): void;
writeLine(value: uint): void;
writeLine(buffer: ReadOnlySpan_1<CLROf<char>>): void;
writeLine(value: ulong): void;
writeLine(value: decimal): void;
writeLine(value: StringBuilder): void;
writeLine(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void;
writeLine(format: string, arg: ReadOnlySpan_1<unknown>): void;
writeLineAsync(): Task;
writeLineAsync(value: char): Task;
writeLineAsync(buffer: char[], index: int, count: int): Task;
writeLineAsync(value: string): Task;
writeLineAsync(buffer: ReadOnlyMemory_1<CLROf<char>>, cancellationToken?: CancellationToken): Task;
writeLineAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task;
writeLineAsync(buffer: char[]): Task;
writeLineAsync(buffer: ReadOnlyMemory_1<CLROf<char>>, cancellationToken?: CancellationToken): Task;
writeLineNoTabs(s: string): void;
writeLineNoTabsAsync(s: string): Task;
}
export const IndentedTextWriter: {
new(writer: TextWriter): IndentedTextWriter$instance;
new(writer: TextWriter, tabString: string): IndentedTextWriter$instance;
readonly defaultTabString: string;
};
export interface __IndentedTextWriter$views {
As_IAsyncDisposable(): System_Internal.IAsyncDisposable$instance;
As_IDisposable(): System_Internal.IDisposable$instance;
}
export type IndentedTextWriter = IndentedTextWriter$instance & __IndentedTextWriter$views;