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