PublicApiDeclarationSegment Class
A part of a formatted declaration, with the symbol or the type it refers to.
public sealed class PublicApiDeclarationSegmentProperties
| Name | Description |
|---|---|
| Kind | |
| Symbol | Gets the declared symbol for an PublicApiDeclarationSegmentKind.Identifier segment. |
| Text | |
| TypeReference | Gets the type referenced by a PublicApiDeclarationSegmentKind.TypeName or a PublicApiDeclarationSegmentKind.TypeParameterName segment. |
Gets the declared symbol for an PublicApiDeclarationSegmentKind.Identifier segment.
public PublicApiSymbol? Symbol { get; }Property value
TypeReference
PublicApiDeclarationSegment.csGets the type referenced by a PublicApiDeclarationSegmentKind.TypeName or a PublicApiDeclarationSegmentKind.TypeParameterName segment.
public PublicApiTypeReference? TypeReference { get; }Property value
Remarks
For a nested type, each level is a separate segment that references the corresponding PublicApiNamedTypeReference.ContainingType.
Methods
| Name | Description |
|---|---|
| ToString() |