71 references to CSharpErrorMessageFormat
Microsoft.AspNetCore.Analyzers (1)
OptionsFacts.cs (1)
16
if (string.Equals(item.OptionsType.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
), SymbolNames.MvcOptions.MetadataName) &&
Microsoft.AspNetCore.Components.Analyzers (8)
ComponentParameterAnalyzer.cs (8)
87
property.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
)));
94
property.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
)));
108
property.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
),
109
property.Type.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
),
110
symbols.ParameterCaptureUnmatchedValuesRuntimeType.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
)));
118
property.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
)));
129
type.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
),
133
captureUnmatchedValuesParameters.Select(p => p.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
)).OrderBy(n => n))));
Microsoft.AspNetCore.Components.SdkAnalyzers (7)
ComponentParameterAnalyzer.cs (7)
81
property.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
)));
88
property.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
)));
102
property.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
),
103
property.Type.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
),
104
symbols.ParameterCaptureUnmatchedValuesRuntimeType.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
)));
116
type.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
),
120
captureUnmatchedValuesParameters.Select(p => p.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
)).OrderBy(n => n))));
Microsoft.CodeAnalysis (1)
SymbolDisplay\SymbolDisplayFormat.cs (1)
37
internal static SymbolDisplayFormat CSharpErrorMessageNoParameterNamesFormat { get; } =
CSharpErrorMessageFormat
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder_Attributes.cs (2)
252
Error(diagnostics, ErrorCode.ERR_AttributeCtorInParameter, node, attributeConstructor.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
));
962
Binder.Error(diagnostics, ErrorCode.ERR_AttrArgWithTypeVars, node.Syntax, typeOfArgument.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
));
Binder\Binder_Symbols.cs (4)
2053
new FormattedSymbol(first, SymbolDisplayFormat.
CSharpErrorMessageFormat
),
2054
new FormattedSymbol(second, SymbolDisplayFormat.
CSharpErrorMessageFormat
) });
2199
new FormattedSymbol(first, SymbolDisplayFormat.
CSharpErrorMessageFormat
),
2200
new FormattedSymbol(second, SymbolDisplayFormat.
CSharpErrorMessageFormat
) });
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
1510
new FormattedSymbol(first, SymbolDisplayFormat.
CSharpErrorMessageFormat
),
1511
new FormattedSymbol(second, SymbolDisplayFormat.
CSharpErrorMessageFormat
)
Emitter\EditAndContinue\EmitHelpers.cs (1)
175
string.Format(CodeAnalysisResources.Type0DoesNotHaveExpectedConstructor, type.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
)));
SymbolDisplay\SymbolDisplay.cs (9)
25
/// <param name="format">The formatting options to apply. If null is passed, <see cref="SymbolDisplayFormat.
CSharpErrorMessageFormat
"/> will be used.</param>
35
format = format ?? SymbolDisplayFormat.
CSharpErrorMessageFormat
;
54
format = format ?? SymbolDisplayFormat.
CSharpErrorMessageFormat
;
86
/// <param name="format">The formatting options to apply. If null is passed, <see cref="SymbolDisplayFormat.
CSharpErrorMessageFormat
"/> will be used.</param>
130
/// <param name="format">The formatting options to apply. If null is passed, <see cref="SymbolDisplayFormat.
CSharpErrorMessageFormat
"/> will be used.</param>
140
format = format ?? SymbolDisplayFormat.
CSharpErrorMessageFormat
;
153
format = format ?? SymbolDisplayFormat.
CSharpErrorMessageFormat
;
164
format ??= SymbolDisplayFormat.
CSharpErrorMessageFormat
;
177
/// <param name="format">The formatting options to apply. If null is passed, <see cref="SymbolDisplayFormat.
CSharpErrorMessageFormat
"/> will be used.</param>
Symbols\ObsoleteAttributeHelpers.cs (2)
184
new FormattedSymbol(symbol, SymbolDisplayFormat.
CSharpErrorMessageFormat
));
194
new FormattedSymbol(symbol, SymbolDisplayFormat.
CSharpErrorMessageFormat
));
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4572
new FormattedSymbol(existingMember, SymbolDisplayFormat.
CSharpErrorMessageFormat
.WithMemberOptions(SymbolDisplayMemberOptions.IncludeContainingType)),
Symbols\TypeWithAnnotations.cs (1)
335
return ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
);
Microsoft.CodeAnalysis.CSharp.Features (3)
CodeLens\CSharpCodeLensDisplayInfoService.cs (1)
21
SymbolDisplayFormat.
CSharpErrorMessageFormat
.RemoveMemberOptions(
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1602
protected override SymbolDisplayFormat ErrorDisplayFormat => SymbolDisplayFormat.
CSharpErrorMessageFormat
;
NavigationBar\CSharpNavigationBarItemService.cs (1)
27
SymbolDisplayFormat.
CSharpErrorMessageFormat
.AddGenericsOptions(SymbolDisplayGenericsOptions.IncludeVariance);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (26)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (15)
4695
Assert.Equal("A<object>.B<?>", type.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
));
4710
Assert.Equal("A<?, ?, ?>.B<object>", type.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
));
4725
Assert.Equal("A<?>.B<?>", type.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
));
4800
Assert.Equal("(int, int)", type.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
));
4823
Assert.Equal("(int Alice, int Bob)", type.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
));
4846
Assert.Equal("(short, int)", type.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
));
4869
Assert.Equal("(short, string)", type.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
));
4892
Assert.Equal("(short Alice, string Bob)", type.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
));
4915
Assert.Equal("(int Alice, int Bob).Bob", element.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
));
4938
Assert.Equal("(int Alice, short Bob).Bob", element.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
));
4961
Assert.Equal("(short Alice, string Bob).Bob", element.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
));
4996
Assert.Equal("(short Alice, string Bob).Bob", element.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
));
5042
Assert.Equal("(short Alice, string Bob).Bob", element.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
));
5091
Assert.Equal("(short Alice, string Bob).Bob", element.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
));
5114
Assert.Equal("(short, string Bob).Bob", element.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
));
SymbolDisplay\SymbolDisplayTests.cs (11)
3472
var format = new SymbolDisplayFormat(globalNamespaceStyle: SymbolDisplayFormat.
CSharpErrorMessageFormat
.GlobalNamespaceStyle,
3473
typeQualificationStyle: SymbolDisplayFormat.
CSharpErrorMessageFormat
.TypeQualificationStyle,
3474
genericsOptions: SymbolDisplayFormat.
CSharpErrorMessageFormat
.GenericsOptions,
3475
memberOptions: SymbolDisplayFormat.
CSharpErrorMessageFormat
.MemberOptions,
3476
parameterOptions: SymbolDisplayFormat.
CSharpErrorMessageFormat
.ParameterOptions,
3477
propertyStyle: SymbolDisplayFormat.
CSharpErrorMessageFormat
.PropertyStyle,
3478
localOptions: SymbolDisplayFormat.
CSharpErrorMessageFormat
.LocalOptions,
3481
miscellaneousOptions: SymbolDisplayFormat.
CSharpErrorMessageFormat
.MiscellaneousOptions);
3493
miscellaneousOptions: SymbolDisplayFormat.
CSharpErrorMessageFormat
.MiscellaneousOptions);
8388
Verify(methodSymbol.ToDisplayParts(SymbolDisplayFormat.
CSharpErrorMessageFormat
), "C.M(ref int)",
8415
Verify(parameterSymbol.ToDisplayParts(SymbolDisplayFormat.
CSharpErrorMessageFormat
), "ref int p",
Microsoft.CodeAnalysis.VisualBasic (3)
Emit\EditAndContinue\EmitHelpers.vb (1)
160
String.Format(CodeAnalysisResources.Type0DoesNotHaveExpectedConstructor, type.ToDisplayString(SymbolDisplayFormat.
CSharpErrorMessageFormat
)))
SymbolDisplay\SymbolDisplay.vb (2)
39
''' <param name="format">The formatting options to apply. If null is passed, <see cref="SymbolDisplayFormat.
CSharpErrorMessageFormat
"/> will be used.</param>
90
''' <param name="format">The formatting options to apply. If null is passed, <see cref="SymbolDisplayFormat.
CSharpErrorMessageFormat
"/> will be used.</param>