다음을 통해 공유


SymbolDisplay.ToMinimalDisplayParts Method

Definition

Overloads

ToMinimalDisplayParts(ISymbol, SemanticModel, Int32, SymbolDisplayFormat)

Convert a symbol to an array of string parts, each of which has a kind. Useful for colorizing the display string.

ToMinimalDisplayParts(ITypeSymbol, NullableAnnotation, SemanticModel, Int32, SymbolDisplayFormat)
ToMinimalDisplayParts(ITypeSymbol, NullableFlowState, SemanticModel, Int32, SymbolDisplayFormat)

ToMinimalDisplayParts(ISymbol, SemanticModel, Int32, SymbolDisplayFormat)

Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs

Convert a symbol to an array of string parts, each of which has a kind. Useful for colorizing the display string.

public static System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart> ToMinimalDisplayParts (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.SymbolDisplayFormat format = default);
public static System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart> ToMinimalDisplayParts (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.SymbolDisplayFormat? format = default);
static member ToMinimalDisplayParts : Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.SemanticModel * int * Microsoft.CodeAnalysis.SymbolDisplayFormat -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart>
Public Shared Function ToMinimalDisplayParts (symbol As ISymbol, semanticModel As SemanticModel, position As Integer, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart)

Parameters

symbol
ISymbol

The symbol to be displayed.

semanticModel
SemanticModel

Semantic information about the context in which the symbol is being displayed.

position
Int32

A position within the SyntaxTree or semanticModel.

format
SymbolDisplayFormat

The formatting options to apply. If null is passed, CSharpErrorMessageFormat will be used.

Returns

A list of display parts.

Remarks

Parts are not localized until they are converted to strings.

Applies to

ToMinimalDisplayParts(ITypeSymbol, NullableAnnotation, SemanticModel, Int32, SymbolDisplayFormat)

Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
public static System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart> ToMinimalDisplayParts (Microsoft.CodeAnalysis.ITypeSymbol symbol, Microsoft.CodeAnalysis.NullableAnnotation nullableAnnotation, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.SymbolDisplayFormat format = default);
public static System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart> ToMinimalDisplayParts (Microsoft.CodeAnalysis.ITypeSymbol symbol, Microsoft.CodeAnalysis.NullableAnnotation nullableAnnotation, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.SymbolDisplayFormat? format = default);
static member ToMinimalDisplayParts : Microsoft.CodeAnalysis.ITypeSymbol * Microsoft.CodeAnalysis.NullableAnnotation * Microsoft.CodeAnalysis.SemanticModel * int * Microsoft.CodeAnalysis.SymbolDisplayFormat -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart>
Public Shared Function ToMinimalDisplayParts (symbol As ITypeSymbol, nullableAnnotation As NullableAnnotation, semanticModel As SemanticModel, position As Integer, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart)

Parameters

symbol
ITypeSymbol
nullableAnnotation
NullableAnnotation
semanticModel
SemanticModel
position
Int32

Returns

Applies to

ToMinimalDisplayParts(ITypeSymbol, NullableFlowState, SemanticModel, Int32, SymbolDisplayFormat)

Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
public static System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart> ToMinimalDisplayParts (Microsoft.CodeAnalysis.ITypeSymbol symbol, Microsoft.CodeAnalysis.NullableFlowState nullableFlowState, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.SymbolDisplayFormat format = default);
public static System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart> ToMinimalDisplayParts (Microsoft.CodeAnalysis.ITypeSymbol symbol, Microsoft.CodeAnalysis.NullableFlowState nullableFlowState, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.SymbolDisplayFormat? format = default);
static member ToMinimalDisplayParts : Microsoft.CodeAnalysis.ITypeSymbol * Microsoft.CodeAnalysis.NullableFlowState * Microsoft.CodeAnalysis.SemanticModel * int * Microsoft.CodeAnalysis.SymbolDisplayFormat -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart>
Public Shared Function ToMinimalDisplayParts (symbol As ITypeSymbol, nullableFlowState As NullableFlowState, semanticModel As SemanticModel, position As Integer, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart)

Parameters

symbol
ITypeSymbol
nullableFlowState
NullableFlowState
semanticModel
SemanticModel
position
Int32

Returns

Applies to