45 references to WithMiscellaneousOptions
Metrics (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
274
.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes);
Metrics.Legacy (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
274
.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes);
Microsoft.CodeAnalysis (2)
SymbolDisplay\SymbolDisplayFormat.cs (2)
465
return this.
WithMiscellaneousOptions
(this.MiscellaneousOptions | options);
477
return this.
WithMiscellaneousOptions
(this.MiscellaneousOptions & ~options);
Microsoft.CodeAnalysis.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
274
.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
274
.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes);
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
274
.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
SymbolKey\SymbolKeyTests.cs (1)
172
Assert.Equal("global::ConditionalWeakTableTest<TKey!, TValue!>.CreateValueCallback!", parameterType.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.IncludeNotNullableReferenceTypeModifier)));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (6)
Emit\NumericIntPtrTests.cs (6)
6247
Assert.Equal(expectedSymbol, symbolInfo.Symbol?.ToDisplayString(SymbolDisplayFormat.TestFormat.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes)));
6623
Assert.Equal(expectedSymbol, symbolInfo.Symbol?.ToDisplayString(SymbolDisplayFormat.TestFormat.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes)));
6855
Assert.Equal(expectedSymbol, symbolInfo.Symbol?.ToDisplayString(SymbolDisplayFormat.TestFormat.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes)));
8128
Assert.Equal(expectedSymbol, symbolInfo.Symbol?.ToDisplayString(SymbolDisplayFormat.TestFormat.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes)));
10383
Assert.Equal("nint", type.ToDisplayString(SymbolDisplayFormat.TestFormat.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes)));
10392
Assert.Equal("nuint", type.ToDisplayString(SymbolDisplayFormat.TestFormat.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes)));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_NativeInteger.cs (1)
23
private static readonly SymbolDisplayFormat FormatWithSpecialTypes = SymbolDisplayFormat.TestFormat.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes);
Attributes\AttributeTests_Nullable.cs (1)
4197
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.IncludeNullableReferenceTypeModifier | SymbolDisplayMiscellaneousOptions.IncludeNotNullableReferenceTypeModifier | SymbolDisplayMiscellaneousOptions.UseSpecialTypes).
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\NativeIntegerTests.cs (4)
9732
Assert.Equal(expectedSymbol, symbolInfo.Symbol?.ToDisplayString(SymbolDisplayFormat.TestFormat.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes)));
10109
Assert.Equal(expectedSymbol, symbolInfo.Symbol?.ToDisplayString(SymbolDisplayFormat.TestFormat.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes)));
10334
Assert.Equal(expectedSymbol, symbolInfo.Symbol?.ToDisplayString(SymbolDisplayFormat.TestFormat.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes)));
12383
Assert.Equal(expectedSymbol, symbolInfo.Symbol?.ToDisplayString(SymbolDisplayFormat.TestFormat.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes)));
Semantics\NullableReferenceTypesTests.cs (8)
113650
Assert.Equal("A<T> where T : class!", a.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.IncludeNotNullableReferenceTypeModifier)));
113669
Assert.Equal("A<T> where T : class", a.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.IncludeNotNullableReferenceTypeModifier)));
113693
Assert.Equal("A<T> where T : class?", a.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.IncludeNullableReferenceTypeModifier)));
113694
Assert.Equal("A<T> where T : class", a.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.IncludeNotNullableReferenceTypeModifier)));
113715
Assert.Equal("A<T> where T : class?", a.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.IncludeNullableReferenceTypeModifier)));
113716
Assert.Equal("A<T> where T : class", a.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.IncludeNotNullableReferenceTypeModifier)));
113748
Assert.Equal("A<T> where T : unmanaged!", a.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.IncludeNotNullableReferenceTypeModifier)));
113769
Assert.Equal("A<T> where T : unmanaged", a.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.IncludeNotNullableReferenceTypeModifier)));
Microsoft.CodeAnalysis.Features (2)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (2)
467
var style = s_descriptionStyle.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes);
499
var underlyingTypeDisplayParts = symbol.EnumUnderlyingType.ToDisplayParts(s_descriptionStyle.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes));
Microsoft.CodeAnalysis.PublicApiAnalyzers (2)
DeclarePublicApiAnalyzer.cs (1)
93
s_publicApiFormat.
WithMiscellaneousOptions
(
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
274
.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes);
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
274
.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes);
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
380
SymbolDisplayFormat.FullyQualifiedFormat.
WithMiscellaneousOptions
(
Microsoft.Extensions.Options.SourceGeneration (1)
Parser.cs (1)
187
=> type.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.IncludeNullableReferenceTypeModifier));
Microsoft.Gen.Logging (1)
Parsing\Parser.cs (1)
556
SymbolDisplayFormat.FullyQualifiedFormat.
WithMiscellaneousOptions
(
Microsoft.Gen.MetadataExtractor (2)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (2)
27
SymbolDisplayFormat.FullyQualifiedFormat.
WithMiscellaneousOptions
(
31
SymbolDisplayFormat.FullyQualifiedFormat.
WithMiscellaneousOptions
(
Microsoft.Gen.Metrics (2)
Parser.cs (2)
27
SymbolDisplayFormat.FullyQualifiedFormat.
WithMiscellaneousOptions
(
31
SymbolDisplayFormat.FullyQualifiedFormat.
WithMiscellaneousOptions
(
Microsoft.Gen.MetricsReports (2)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (2)
27
SymbolDisplayFormat.FullyQualifiedFormat.
WithMiscellaneousOptions
(
31
SymbolDisplayFormat.FullyQualifiedFormat.
WithMiscellaneousOptions
(
Roslyn.Diagnostics.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
274
.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes);
Test.Utilities (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
274
.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes);
Text.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
274
.
WithMiscellaneousOptions
(SymbolDisplayMiscellaneousOptions.UseSpecialTypes);