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