88 references to SymbolDisplayCompilerInternalOptions
Microsoft.CodeAnalysis (27)
CodeGen\CompilationTestData.cs (2)
89SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames | 90SymbolDisplayCompilerInternalOptions.IncludeContainingFileForFileTypes,
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithMetadataName.cs (1)
61SymbolDisplayFormat.QualifiedNameArityFormat.AddCompilerInternalOptions(SymbolDisplayCompilerInternalOptions.UsePlusForNestedTypes);
SymbolDisplay\SymbolDisplayExtensions.cs (3)
56/// Determines if a flag is set on the <see cref="SymbolDisplayCompilerInternalOptions"/> enum. 61internal static bool IncludesOption(this SymbolDisplayCompilerInternalOptions options, SymbolDisplayCompilerInternalOptions flag)
SymbolDisplay\SymbolDisplayFormat.cs (21)
36compilerInternalOptions: SymbolDisplayCompilerInternalOptions.IncludeParameterNameIfStandalone); 39.RemoveCompilerInternalOptions(SymbolDisplayCompilerInternalOptions.IncludeParameterNameIfStandalone); 63compilerInternalOptions: SymbolDisplayCompilerInternalOptions.IncludeParameterNameIfStandalone); 203SymbolDisplayCompilerInternalOptions.IncludeScriptType | 204SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames | 205SymbolDisplayCompilerInternalOptions.FlagMissingMetadataTypes | 206SymbolDisplayCompilerInternalOptions.IncludeCustomModifiers | 207SymbolDisplayCompilerInternalOptions.IncludeContainingFileForFileTypes); 214WithCompilerInternalOptions(SymbolDisplayCompilerInternalOptions.None); 231compilerInternalOptions: SymbolDisplayCompilerInternalOptions.UseArityForGenericTypes, 262compilerInternalOptions: SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames); 274compilerInternalOptions: SymbolDisplayCompilerInternalOptions.ReverseArrayRankSpecifiers); 335internal SymbolDisplayCompilerInternalOptions CompilerInternalOptions { get; } 403/// This version also accepts <see cref="SymbolDisplayCompilerInternalOptions"/>. 406SymbolDisplayCompilerInternalOptions compilerInternalOptions, 767/// Creates a copy of the SymbolDisplayFormat but with added set of <see cref="SymbolDisplayCompilerInternalOptions"/>. 769internal SymbolDisplayFormat AddCompilerInternalOptions(SymbolDisplayCompilerInternalOptions options) 773/// Creates a copy of the SymbolDisplayFormat but with a set of <see cref="SymbolDisplayCompilerInternalOptions"/> stripped away from the original object. 775internal SymbolDisplayFormat RemoveCompilerInternalOptions(SymbolDisplayCompilerInternalOptions options) 779/// Creates a copy of the SymbolDisplayFormat but with replaced set of <see cref="SymbolDisplayCompilerInternalOptions"/>. 781internal SymbolDisplayFormat WithCompilerInternalOptions(SymbolDisplayCompilerInternalOptions options)
Microsoft.CodeAnalysis.CSharp (19)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
391if (namedType.IsScriptClass && !format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.IncludeScriptType))
SymbolDisplay\SymbolDisplayVisitor.Members.cs (9)
334if (format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames)) 345if (format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames) || 475var name = format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames) || symbol.ContainingType == null || symbol.ContainingType.IsAnonymousType 489if (format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames) || symbol.ContainingType == null) 504if (!format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames) && 533if (format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames)) 554if (format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames)) 801(format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.IncludeParameterNameIfStandalone) && builder.Count == 0)); 1066if (this.format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.IncludeCustomModifiers) && !customModifiers.IsEmpty)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (8)
44if (format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.ReverseArrayRankSpecifiers)) 185if ((format.CompilerInternalOptions & SymbolDisplayCompilerInternalOptions.IncludeContainingFileForFileTypes) != 0 205(symbol.IsNativeIntegerType && !format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseNativeIntegerUnderlyingType))) 291if (format.CompilerInternalOptions.HasFlag(SymbolDisplayCompilerInternalOptions.UsePlusForNestedTypes)) 380if (format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseArityForGenericTypes)) 419format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.FlagMissingMetadataTypes)) 430if (this.format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.IncludeCustomModifiers)) 565format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.FlagMissingMetadataTypes))
Symbols\Symbol.cs (1)
875.WithCompilerInternalOptions(SymbolDisplayCompilerInternalOptions.IncludeContainingFileForFileTypes);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
Attributes\AttributeTests_Nullable.cs (1)
4198WithCompilerInternalOptions(SymbolDisplayCompilerInternalOptions.None);
Emit\NumericIntPtrTests.cs (2)
10348Assert.Equal("System.IntPtr", type.ToDisplayString(SymbolDisplayFormat.TestFormat.WithCompilerInternalOptions(SymbolDisplayCompilerInternalOptions.UseNativeIntegerUnderlyingType))); 10357Assert.Equal("System.UIntPtr", type.ToDisplayString(SymbolDisplayFormat.TestFormat.WithCompilerInternalOptions(SymbolDisplayCompilerInternalOptions.UseNativeIntegerUnderlyingType)));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (19)
SymbolDisplay\SymbolDisplayTests.cs (18)
1344compilerInternalOptions: SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames); 1366compilerInternalOptions: SymbolDisplayCompilerInternalOptions.UseArityForGenericTypes); 1392compilerInternalOptions: SymbolDisplayCompilerInternalOptions.UseArityForGenericTypes | SymbolDisplayCompilerInternalOptions.UsePlusForNestedTypes); 1419compilerInternalOptions: SymbolDisplayCompilerInternalOptions.UseArityForGenericTypes | SymbolDisplayCompilerInternalOptions.UsePlusForNestedTypes); 1447compilerInternalOptions: SymbolDisplayCompilerInternalOptions.UseArityForGenericTypes | SymbolDisplayCompilerInternalOptions.UsePlusForNestedTypes); 1475compilerInternalOptions: SymbolDisplayCompilerInternalOptions.UseArityForGenericTypes | SymbolDisplayCompilerInternalOptions.UsePlusForNestedTypes); 3000compilerInternalOptions: SymbolDisplayCompilerInternalOptions.IncludeCustomModifiers); 3129compilerInternalOptions: SymbolDisplayCompilerInternalOptions.IncludeCustomModifiers); 3190compilerInternalOptions: SymbolDisplayCompilerInternalOptions.IncludeCustomModifiers); 3251compilerInternalOptions: SymbolDisplayCompilerInternalOptions.IncludeCustomModifiers); 4458compilerInternalOptions: SymbolDisplayCompilerInternalOptions.ReverseArrayRankSpecifiers); 5794.WithCompilerInternalOptions(SymbolDisplayCompilerInternalOptions.None); 5866.WithCompilerInternalOptions(SymbolDisplayCompilerInternalOptions.None); 7825var formatWithUnderlyingTypes = formatWithoutOptions.WithCompilerInternalOptions(SymbolDisplayCompilerInternalOptions.UseNativeIntegerUnderlyingType);
Symbols\Source\FileModifierTests.cs (1)
3556Assert.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);
Microsoft.CodeAnalysis.VisualBasic (15)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (10)
202If format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames) Then 213If format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames) Then 227If format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames) Then 248If tokenKind = SyntaxKind.None OrElse format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames) Then 262If tokenKind = SyntaxKind.None OrElse format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames) Then 325If format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames) Then 339If format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames) Then 349If tokenKind = SyntaxKind.None OrElse format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames) Then 364If tokenKind = SyntaxKind.None OrElse format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames) Then 572If Me.format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.IncludeCustomModifiers) AndAlso Not customModifiers.IsEmpty Then
SymbolDisplay\SymbolDisplayVisitor.Types.vb (4)
21If format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.ReverseArrayRankSpecifiers) Then 164If format.CompilerInternalOptions.HasFlag(SymbolDisplayCompilerInternalOptions.UsePlusForNestedTypes) Then 278If format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseArityForGenericTypes) Then 302If format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.FlagMissingMetadataTypes) AndAlso
SymbolDisplay\SymbolDisplayVisitor.vb (1)
357(Not namedType.IsScriptClass OrElse format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.IncludeScriptType))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (3)
SymbolDisplay\SymbolDisplayTests.vb (3)
1554compilerInternalOptions:=SymbolDisplayCompilerInternalOptions.UseMetadataMethodNames) 1582compilerInternalOptions:=SymbolDisplayCompilerInternalOptions.UseArityForGenericTypes) 4697compilerInternalOptions:=SymbolDisplayCompilerInternalOptions.ReverseArrayRankSpecifiers)