71 references to CSharpErrorMessageFormat
Microsoft.AspNetCore.Analyzers (1)
OptionsFacts.cs (1)
16if (string.Equals(item.OptionsType.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat), SymbolNames.MvcOptions.MetadataName) &&
Microsoft.AspNetCore.Components.Analyzers (8)
ComponentParameterAnalyzer.cs (8)
87property.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat))); 94property.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat))); 108property.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat), 109property.Type.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat), 110symbols.ParameterCaptureUnmatchedValuesRuntimeType.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat))); 118property.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat))); 129type.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat), 133captureUnmatchedValuesParameters.Select(p => p.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat)).OrderBy(n => n))));
Microsoft.AspNetCore.Components.SdkAnalyzers (7)
ComponentParameterAnalyzer.cs (7)
81property.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat))); 88property.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat))); 102property.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat), 103property.Type.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat), 104symbols.ParameterCaptureUnmatchedValuesRuntimeType.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat))); 116type.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat), 120captureUnmatchedValuesParameters.Select(p => p.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat)).OrderBy(n => n))));
Microsoft.CodeAnalysis (1)
SymbolDisplay\SymbolDisplayFormat.cs (1)
37internal static SymbolDisplayFormat CSharpErrorMessageNoParameterNamesFormat { get; } = CSharpErrorMessageFormat
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder_Attributes.cs (2)
252Error(diagnostics, ErrorCode.ERR_AttributeCtorInParameter, node, attributeConstructor.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat)); 962Binder.Error(diagnostics, ErrorCode.ERR_AttrArgWithTypeVars, node.Syntax, typeOfArgument.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat));
Binder\Binder_Symbols.cs (4)
2071new FormattedSymbol(first, SymbolDisplayFormat.CSharpErrorMessageFormat), 2072new FormattedSymbol(second, SymbolDisplayFormat.CSharpErrorMessageFormat) }); 2217new FormattedSymbol(first, SymbolDisplayFormat.CSharpErrorMessageFormat), 2218new FormattedSymbol(second, SymbolDisplayFormat.CSharpErrorMessageFormat) });
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
1510new FormattedSymbol(first, SymbolDisplayFormat.CSharpErrorMessageFormat), 1511new FormattedSymbol(second, SymbolDisplayFormat.CSharpErrorMessageFormat)
Emitter\EditAndContinue\EmitHelpers.cs (1)
175string.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> 35format = format ?? SymbolDisplayFormat.CSharpErrorMessageFormat; 54format = 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> 140format = format ?? SymbolDisplayFormat.CSharpErrorMessageFormat; 153format = format ?? SymbolDisplayFormat.CSharpErrorMessageFormat; 164format ??= 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)
184new FormattedSymbol(symbol, SymbolDisplayFormat.CSharpErrorMessageFormat)); 194new FormattedSymbol(symbol, SymbolDisplayFormat.CSharpErrorMessageFormat));
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4572new FormattedSymbol(existingMember, SymbolDisplayFormat.CSharpErrorMessageFormat.WithMemberOptions(SymbolDisplayMemberOptions.IncludeContainingType)),
Symbols\TypeWithAnnotations.cs (1)
335return ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat);
Microsoft.CodeAnalysis.CSharp.Features (3)
CodeLens\CSharpCodeLensDisplayInfoService.cs (1)
21SymbolDisplayFormat.CSharpErrorMessageFormat.RemoveMemberOptions(
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1602protected override SymbolDisplayFormat ErrorDisplayFormat => SymbolDisplayFormat.CSharpErrorMessageFormat;
NavigationBar\CSharpNavigationBarItemService.cs (1)
27SymbolDisplayFormat.CSharpErrorMessageFormat.AddGenericsOptions(SymbolDisplayGenericsOptions.IncludeVariance);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (26)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (15)
4695Assert.Equal("A<object>.B<?>", type.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat)); 4710Assert.Equal("A<?, ?, ?>.B<object>", type.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat)); 4725Assert.Equal("A<?>.B<?>", type.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat)); 4800Assert.Equal("(int, int)", type.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat)); 4823Assert.Equal("(int Alice, int Bob)", type.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat)); 4846Assert.Equal("(short, int)", type.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat)); 4869Assert.Equal("(short, string)", type.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat)); 4892Assert.Equal("(short Alice, string Bob)", type.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat)); 4915Assert.Equal("(int Alice, int Bob).Bob", element.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat)); 4938Assert.Equal("(int Alice, short Bob).Bob", element.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat)); 4961Assert.Equal("(short Alice, string Bob).Bob", element.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat)); 4996Assert.Equal("(short Alice, string Bob).Bob", element.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat)); 5042Assert.Equal("(short Alice, string Bob).Bob", element.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat)); 5091Assert.Equal("(short Alice, string Bob).Bob", element.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat)); 5114Assert.Equal("(short, string Bob).Bob", element.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat));
SymbolDisplay\SymbolDisplayTests.cs (11)
3644var format = new SymbolDisplayFormat(globalNamespaceStyle: SymbolDisplayFormat.CSharpErrorMessageFormat.GlobalNamespaceStyle, 3645typeQualificationStyle: SymbolDisplayFormat.CSharpErrorMessageFormat.TypeQualificationStyle, 3646genericsOptions: SymbolDisplayFormat.CSharpErrorMessageFormat.GenericsOptions, 3647memberOptions: SymbolDisplayFormat.CSharpErrorMessageFormat.MemberOptions, 3648parameterOptions: SymbolDisplayFormat.CSharpErrorMessageFormat.ParameterOptions, 3649propertyStyle: SymbolDisplayFormat.CSharpErrorMessageFormat.PropertyStyle, 3650localOptions: SymbolDisplayFormat.CSharpErrorMessageFormat.LocalOptions, 3653miscellaneousOptions: SymbolDisplayFormat.CSharpErrorMessageFormat.MiscellaneousOptions); 3665miscellaneousOptions: SymbolDisplayFormat.CSharpErrorMessageFormat.MiscellaneousOptions); 8560Verify(methodSymbol.ToDisplayParts(SymbolDisplayFormat.CSharpErrorMessageFormat), "C.M(ref int)", 8587Verify(parameterSymbol.ToDisplayParts(SymbolDisplayFormat.CSharpErrorMessageFormat), "ref int p",
Microsoft.CodeAnalysis.VisualBasic (3)
Emit\EditAndContinue\EmitHelpers.vb (1)
160String.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>