Table of Contents

Class PreprocessedSource

Namespace
ShadowDusk.Core.Preprocessor
Assembly
ShadowDusk.Core.dll

The output of the include-flattening preprocessor pass: the fully expanded source text, the DXC macro flags to pass downstream, and the original file path for diagnostics.

public sealed record PreprocessedSource : IEquatable<PreprocessedSource>
Inheritance
PreprocessedSource
Implements
Inherited Members

Constructors

PreprocessedSource(string, IReadOnlyList<string>, string)

The output of the include-flattening preprocessor pass: the fully expanded source text, the DXC macro flags to pass downstream, and the original file path for diagnostics.

public PreprocessedSource(string Text, IReadOnlyList<string> DxcMacroFlags, string OriginalFilePath)

Parameters

Text string

The flattened source with all #include directives expanded.

DxcMacroFlags IReadOnlyList<string>

The platform macro flags to forward to DXC.

OriginalFilePath string

The original source file path, preserved for diagnostics.

Properties

DxcMacroFlags

The platform macro flags to forward to DXC.

public IReadOnlyList<string> DxcMacroFlags { get; init; }

Property Value

IReadOnlyList<string>

OriginalFilePath

The original source file path, preserved for diagnostics.

public string OriginalFilePath { get; init; }

Property Value

string

Text

The flattened source with all #include directives expanded.

public string Text { get; init; }

Property Value

string