Table of Contents

Struct KernelDiagnostic

Namespace
DotCompute.Abstractions.Ports
Assembly
DotCompute.Abstractions.dll

A diagnostic message from kernel compilation or validation.

public readonly record struct KernelDiagnostic : IEquatable<KernelDiagnostic>
Implements
Inherited Members

Constructors

KernelDiagnostic(string, string, DiagnosticSeverity, SourceLocation?)

A diagnostic message from kernel compilation or validation.

public KernelDiagnostic(string Code, string Message, DiagnosticSeverity Severity, SourceLocation? Location = null)

Parameters

Code string

Diagnostic code (e.g., "DC001").

Message string

Human-readable message.

Severity DiagnosticSeverity

Diagnostic severity.

Location SourceLocation?

Optional source location.

Properties

Code

Diagnostic code (e.g., "DC001").

public string Code { get; init; }

Property Value

string

Location

Optional source location.

public SourceLocation? Location { get; init; }

Property Value

SourceLocation?

Message

Human-readable message.

public string Message { get; init; }

Property Value

string

Severity

Diagnostic severity.

public DiagnosticSeverity Severity { get; init; }

Property Value

DiagnosticSeverity