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
TextstringThe flattened source with all
#includedirectives expanded.DxcMacroFlagsIReadOnlyList<string>The platform macro flags to forward to DXC.
OriginalFilePathstringThe 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
OriginalFilePath
The original source file path, preserved for diagnostics.
public string OriginalFilePath { get; init; }
Property Value
Text
The flattened source with all #include directives expanded.
public string Text { get; init; }