csharp
public sealed class MetadataFieldSymbolA field, enum member or val type parameter read out of a compiled library.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Every flag the binder and the lowerer branch on round-trips: IsConst and IsCompose because they decide which fields a constructor-less struct is built from and which become bindings, ResourceKind and ResourceSet because they decide where a binding lands.
ConstantValue answers with the declared value, unconditionally — where a source field distinguishes it from DeclaredValue so that reading a permutation key records a use. A library's keys are not this compilation's: the consuming shader declares its own, so there is no use to record and the two properties coincide.
Fields and properties (15)
public override string Namepublic override Symbol? ContainingSymbolpublic override TypeSymbol Typepublic override bool IsStaticpublic override bool IsReadOnlypublic override bool IsConstpublic override bool IsPermutationpublic override bool IsValueParameterpublic override bool IsComposepublic override bool IsStreampublic override object? DeclaredValuepublic override object? ConstantValuepublic override ResourceKind ResourceKindpublic override ResourceSet ResourceSetpublic override string? SemanticName
Used by (1)
- MetadataNamedTypeSymbolVixen.Raven