89 references to SymbolDisplayCompilerInternalOptions
Microsoft.CodeAnalysis (28)
CodeGen\CompilationTestData.cs (2)
89
SymbolDisplayCompilerInternalOptions
.UseMetadataMemberNames |
90
SymbolDisplayCompilerInternalOptions
.IncludeContainingFileForFileTypes,
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithMetadataName.cs (1)
61
SymbolDisplayFormat.QualifiedNameArityFormat.AddCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
.UsePlusForNestedTypes);
SymbolDisplay\SymbolDisplayExtensions.cs (3)
84
/// Determines if a flag is set on the <see cref="
SymbolDisplayCompilerInternalOptions
"/> enum.
89
internal static bool IncludesOption(this
SymbolDisplayCompilerInternalOptions
options,
SymbolDisplayCompilerInternalOptions
flag)
SymbolDisplay\SymbolDisplayFormat.cs (22)
38
.AddCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
.ExcludeParameterNameIfStandalone);
201
SymbolDisplayCompilerInternalOptions
.IncludeScriptType |
202
SymbolDisplayCompilerInternalOptions
.UseMetadataMemberNames |
203
SymbolDisplayCompilerInternalOptions
.UseNativeIntegerUnderlyingType |
204
SymbolDisplayCompilerInternalOptions
.FlagMissingMetadataTypes |
205
SymbolDisplayCompilerInternalOptions
.IncludeCustomModifiers |
206
SymbolDisplayCompilerInternalOptions
.IncludeContainingFileForFileTypes);
213
WithCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
.None);
230
compilerInternalOptions:
SymbolDisplayCompilerInternalOptions
.UseArityForGenericTypes,
261
compilerInternalOptions:
SymbolDisplayCompilerInternalOptions
.UseMetadataMemberNames |
SymbolDisplayCompilerInternalOptions
.UseNativeIntegerUnderlyingType);
273
compilerInternalOptions:
SymbolDisplayCompilerInternalOptions
.ReverseArrayRankSpecifiers |
SymbolDisplayCompilerInternalOptions
.IncludeFileLocalTypesPrefix);
334
internal
SymbolDisplayCompilerInternalOptions
CompilerInternalOptions { get; }
402
/// This version also accepts <see cref="
SymbolDisplayCompilerInternalOptions
"/>.
405
SymbolDisplayCompilerInternalOptions
compilerInternalOptions,
766
/// Creates a copy of the SymbolDisplayFormat but with added set of <see cref="
SymbolDisplayCompilerInternalOptions
"/>.
768
internal SymbolDisplayFormat AddCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
options)
772
/// Creates a copy of the SymbolDisplayFormat but with a set of <see cref="
SymbolDisplayCompilerInternalOptions
"/> stripped away from the original object.
774
internal SymbolDisplayFormat RemoveCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
options)
778
/// Creates a copy of the SymbolDisplayFormat but with replaced set of <see cref="
SymbolDisplayCompilerInternalOptions
"/>.
780
internal SymbolDisplayFormat WithCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
options)
Microsoft.CodeAnalysis.CSharp (23)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
449
if (namedType.IsScriptClass && !Format.CompilerInternalOptions.IncludesOption(
SymbolDisplayCompilerInternalOptions
.IncludeScriptType))
SymbolDisplay\SymbolDisplayVisitor.Members.cs (10)
62
if (!Format.CompilerInternalOptions.IncludesOption(
SymbolDisplayCompilerInternalOptions
.UseMetadataMemberNames)
332
if (Format.CompilerInternalOptions.IncludesOption(
SymbolDisplayCompilerInternalOptions
.UseMetadataMemberNames))
343
if (Format.CompilerInternalOptions.IncludesOption(
SymbolDisplayCompilerInternalOptions
.UseMetadataMemberNames) ||
473
bool useConstructorName = Format.CompilerInternalOptions.IncludesOption(
SymbolDisplayCompilerInternalOptions
.UseMetadataMemberNames)
488
if (Format.CompilerInternalOptions.IncludesOption(
SymbolDisplayCompilerInternalOptions
.UseMetadataMemberNames) || symbol.ContainingType == null)
503
if (!Format.CompilerInternalOptions.IncludesOption(
SymbolDisplayCompilerInternalOptions
.UseMetadataMemberNames) &&
532
if (Format.CompilerInternalOptions.IncludesOption(
SymbolDisplayCompilerInternalOptions
.UseMetadataMemberNames))
553
if (Format.CompilerInternalOptions.IncludesOption(
SymbolDisplayCompilerInternalOptions
.UseMetadataMemberNames))
800
(!Format.CompilerInternalOptions.IncludesOption(
SymbolDisplayCompilerInternalOptions
.ExcludeParameterNameIfStandalone) && Builder.Count == 0));
1070
if (this.Format.CompilerInternalOptions.IncludesOption(
SymbolDisplayCompilerInternalOptions
.IncludeCustomModifiers) && !customModifiers.IsEmpty)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (11)
40
if (Format.CompilerInternalOptions.IncludesOption(
SymbolDisplayCompilerInternalOptions
.ReverseArrayRankSpecifiers))
178
if ((Format.CompilerInternalOptions &
SymbolDisplayCompilerInternalOptions
.IncludeFileLocalTypesPrefix) != 0
188
if ((Format.CompilerInternalOptions &
SymbolDisplayCompilerInternalOptions
.IncludeContainingFileForFileTypes) != 0
209
if (!Format.CompilerInternalOptions.IncludesOption(
SymbolDisplayCompilerInternalOptions
.UseNativeIntegerUnderlyingType) &&
304
if (Format.CompilerInternalOptions.HasFlag(
SymbolDisplayCompilerInternalOptions
.UsePlusForNestedTypes))
346
if (Format.CompilerInternalOptions.HasFlag(
SymbolDisplayCompilerInternalOptions
.UseMetadataMemberNames))
408
if (Format.CompilerInternalOptions.IncludesOption(
SymbolDisplayCompilerInternalOptions
.UseArityForGenericTypes))
456
Format.CompilerInternalOptions.IncludesOption(
SymbolDisplayCompilerInternalOptions
.FlagMissingMetadataTypes))
468
if (!Format.CompilerInternalOptions.HasFlag(
SymbolDisplayCompilerInternalOptions
.UseMetadataMemberNames)
480
if (this.Format.CompilerInternalOptions.IncludesOption(
SymbolDisplayCompilerInternalOptions
.IncludeCustomModifiers))
616
Format.CompilerInternalOptions.IncludesOption(
SymbolDisplayCompilerInternalOptions
.FlagMissingMetadataTypes))
Symbols\Symbol.cs (1)
1025
.WithCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
.IncludeContainingFileForFileTypes);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (1)
3428
""", ilFormat: SymbolDisplayFormat.ILVisualizationFormat.RemoveCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
.UseNativeIntegerUnderlyingType));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Emit\NumericIntPtrTests.cs (4)
54
.RemoveCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
.UseNativeIntegerUnderlyingType);
57
.RemoveCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
.UseNativeIntegerUnderlyingType);
10388
Assert.Equal("System.IntPtr", type.ToDisplayString(TestFormat.WithCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
.UseNativeIntegerUnderlyingType)));
10397
Assert.Equal("System.UIntPtr", type.ToDisplayString(TestFormat.WithCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
.UseNativeIntegerUnderlyingType)));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Attributes\AttributeTests_NativeInteger.cs (1)
25
.RemoveCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
.UseNativeIntegerUnderlyingType);
Attributes\AttributeTests_Nullable.cs (1)
4198
WithCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
.None);
Semantics\ExtensionTests.cs (1)
182
format = new SymbolDisplayFormat(compilerInternalOptions:
SymbolDisplayCompilerInternalOptions
.UseMetadataMemberNames);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\NativeIntegerTests.cs (2)
46
.RemoveCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
.UseNativeIntegerUnderlyingType);
49
.RemoveCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
.UseNativeIntegerUnderlyingType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (26)
SymbolDisplay\SymbolDisplayTests.cs (25)
1451
compilerInternalOptions:
SymbolDisplayCompilerInternalOptions
.UseMetadataMemberNames);
1473
compilerInternalOptions:
SymbolDisplayCompilerInternalOptions
.UseArityForGenericTypes);
1499
compilerInternalOptions:
SymbolDisplayCompilerInternalOptions
.UseArityForGenericTypes |
SymbolDisplayCompilerInternalOptions
.UsePlusForNestedTypes);
1526
compilerInternalOptions:
SymbolDisplayCompilerInternalOptions
.UseArityForGenericTypes |
SymbolDisplayCompilerInternalOptions
.UsePlusForNestedTypes);
1554
compilerInternalOptions:
SymbolDisplayCompilerInternalOptions
.UseArityForGenericTypes |
SymbolDisplayCompilerInternalOptions
.UsePlusForNestedTypes);
1582
compilerInternalOptions:
SymbolDisplayCompilerInternalOptions
.UseArityForGenericTypes |
SymbolDisplayCompilerInternalOptions
.UsePlusForNestedTypes);
2053
[InlineData(
SymbolDisplayCompilerInternalOptions
.None)]
2054
[InlineData(
SymbolDisplayCompilerInternalOptions
.UseMetadataMemberNames)]
2055
internal void TestPropertyGetAccessor(
SymbolDisplayCompilerInternalOptions
internalOptions)
2328
compilerInternalOptions:
SymbolDisplayCompilerInternalOptions
.UseMetadataMemberNames,
2352
[InlineData(
SymbolDisplayCompilerInternalOptions
.None)]
2353
[InlineData(
SymbolDisplayCompilerInternalOptions
.UseMetadataMemberNames)]
2354
internal void TestPropertyBackingFieldFromMetadata(
SymbolDisplayCompilerInternalOptions
internalOptions)
3423
compilerInternalOptions:
SymbolDisplayCompilerInternalOptions
.IncludeCustomModifiers);
3552
compilerInternalOptions:
SymbolDisplayCompilerInternalOptions
.IncludeCustomModifiers);
3613
compilerInternalOptions:
SymbolDisplayCompilerInternalOptions
.IncludeCustomModifiers);
3674
compilerInternalOptions:
SymbolDisplayCompilerInternalOptions
.IncludeCustomModifiers);
4881
compilerInternalOptions:
SymbolDisplayCompilerInternalOptions
.ReverseArrayRankSpecifiers);
6217
.WithCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
.None);
6289
.WithCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
.None);
8248
var formatWithUnderlyingTypes = formatWithoutOptions.WithCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
.UseNativeIntegerUnderlyingType);
Symbols\Source\FileModifierTests.cs (1)
4126
Assert.Equal("System.Void@<tree 0>", typeInfo.Type!.ToDisplayString(SymbolDisplayFormat.TestFormat.WithCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
.IncludeContainingFileForFileTypes)));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
NativeIntegerAttributesVisitor.cs (1)
35
WithCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
.UseNativeIntegerUnderlyingType);
SymbolUtilities.cs (1)
99
.WithCompilerInternalOptions(
SymbolDisplayCompilerInternalOptions
.None);