64 references to FormattedSymbol
Microsoft.CodeAnalysis.CSharp (37)
Binder\Binder.ValueChecks.cs (1)
2880
Error(diagnostics, ReadOnlyErrors[index], node, symbolKind, new
FormattedSymbol
(symbol, SymbolDisplayFormat.ShortFormat));
Binder\Binder.WithQueryLambdaParametersBinder.cs (1)
79
var info = new CSDiagnosticInfo(ErrorCode.ERR_UnsupportedTransparentIdentifierAccess, name, new
FormattedSymbol
(receiver.ExpressionSymbol ?? receiverType, SymbolDisplayFormat.CSharpErrorMessageNoParameterNamesFormat));
Binder\Binder_Conversions.cs (1)
768
new
FormattedSymbol
(parameter, SymbolDisplayFormat.ShortFormat),
Binder\Binder_Symbols.cs (4)
2026
new
FormattedSymbol
(first, SymbolDisplayFormat.CSharpErrorMessageFormat),
2027
new
FormattedSymbol
(second, SymbolDisplayFormat.CSharpErrorMessageFormat) });
2172
new
FormattedSymbol
(first, SymbolDisplayFormat.CSharpErrorMessageFormat),
2173
new
FormattedSymbol
(second, SymbolDisplayFormat.CSharpErrorMessageFormat) });
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (5)
1210
new
FormattedSymbol
(UnwrapIfParamsArray(parameter, isLastParameter), SymbolDisplayFormat.CSharpErrorMessageNoParameterNamesFormat));
1256
new
FormattedSymbol
(parameter, SymbolDisplayFormat.CSharpErrorMessageNoParameterNamesFormat));
1292
new
FormattedSymbol
(UnwrapIfParamsArray(parameter, isLastParameter), SymbolDisplayFormat.CSharpErrorMessageNoParameterNamesFormat));
1438
new
FormattedSymbol
(first, SymbolDisplayFormat.CSharpErrorMessageFormat),
1439
new
FormattedSymbol
(second, SymbolDisplayFormat.CSharpErrorMessageFormat)
FlowAnalysis\NullableWalker.cs (3)
2165
new
FormattedSymbol
(parameterOpt, SymbolDisplayFormat.ShortFormat);
2173
new
FormattedSymbol
(containingSymbol, SymbolDisplayFormat.MinimallyQualifiedFormat);
7794
new
FormattedSymbol
(sourceInvokeMethod, SymbolDisplayFormat.MinimallyQualifiedFormat),
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
205
Error(diagnostic, node, new
FormattedSymbol
(symbol, SymbolDisplayFormat.ShortFormat));
Symbols\ObsoleteAttributeHelpers.cs (1)
162
return new CSDiagnosticInfo(ErrorCode.WRN_Experimental, new
FormattedSymbol
(symbol, SymbolDisplayFormat.CSharpErrorMessageFormat));
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4308
new
FormattedSymbol
(existingMember, SymbolDisplayFormat.CSharpErrorMessageFormat.WithMemberOptions(SymbolDisplayMemberOptions.IncludeContainingType)),
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
1177
new
FormattedSymbol
(overridingParameter, SymbolDisplayFormat.ShortFormat));
1229
new
FormattedSymbol
(overridingParameter, SymbolDisplayFormat.ShortFormat));
1254
diagnostics.Add(ErrorCode.WRN_DoesNotReturnMismatch, overrideMethod.Locations[0], new
FormattedSymbol
(overrideMethod, SymbolDisplayFormat.MinimallyQualifiedFormat));
Symbols\Source\SourceOrdinaryMethodSymbol.cs (4)
719
diagnostics.Add(ErrorCode.ERR_ScopedMismatchInParameterOfPartial, implementingMethod.Locations[0], new
FormattedSymbol
(implementingParameter, SymbolDisplayFormat.ShortFormat));
740
diagnostics.Add(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, implementingMethod.Locations[0], new
FormattedSymbol
(implementingParameter, SymbolDisplayFormat.ShortFormat));
751
new
FormattedSymbol
(definition, SymbolDisplayFormat.MinimallyQualifiedFormat),
752
new
FormattedSymbol
(implementation, SymbolDisplayFormat.MinimallyQualifiedFormat));
Symbols\TypeSymbol.cs (12)
1765
implementingEvent.Locations[0], new
FormattedSymbol
(implementedEvent, SymbolDisplayFormat.MinimallyQualifiedFormat));
1771
new
FormattedSymbol
(implementingEvent, SymbolDisplayFormat.MinimallyQualifiedFormat),
1772
new
FormattedSymbol
(implementedEvent, SymbolDisplayFormat.MinimallyQualifiedFormat));
1798
implementingMethod.Locations[0], new
FormattedSymbol
(implementedMethod.ConstructedFrom, SymbolDisplayFormat.MinimallyQualifiedFormat));
1806
new
FormattedSymbol
(implementingMethod, SymbolDisplayFormat.MinimallyQualifiedFormat),
1807
new
FormattedSymbol
(implementedMethod.ConstructedFrom, SymbolDisplayFormat.MinimallyQualifiedFormat));
1820
new
FormattedSymbol
(implementingParameter, SymbolDisplayFormat.ShortFormat),
1821
new
FormattedSymbol
(implementedMethod.ConstructedFrom, SymbolDisplayFormat.MinimallyQualifiedFormat));
1829
new
FormattedSymbol
(implementingParameter, SymbolDisplayFormat.ShortFormat),
1830
new
FormattedSymbol
(implementingMethod, SymbolDisplayFormat.MinimallyQualifiedFormat),
1831
new
FormattedSymbol
(implementedMethod.ConstructedFrom, SymbolDisplayFormat.MinimallyQualifiedFormat));
1859
new
FormattedSymbol
(implementingParameter, SymbolDisplayFormat.ShortFormat));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (18)
SymbolDisplay\SymbolDisplayTests.cs (18)
5008
Assert.False(new
FormattedSymbol
(sA, f1).Equals((object)sA));
5009
Assert.False(new
FormattedSymbol
(sA, f1).Equals(null));
5011
Assert.True(new
FormattedSymbol
(sA, f1).Equals(new
FormattedSymbol
(sA, f1)));
5012
Assert.False(new
FormattedSymbol
(sA, f1).Equals(new
FormattedSymbol
(sA, f2)));
5013
Assert.False(new
FormattedSymbol
(sA, f1).Equals(new
FormattedSymbol
(sB, f1)));
5014
Assert.False(new
FormattedSymbol
(sA, f1).Equals(new
FormattedSymbol
(sB, f2)));
5016
Assert.False(new
FormattedSymbol
(sC, f1).Equals(new
FormattedSymbol
(sC.Construct(sA), f1)));
5017
Assert.True(new
FormattedSymbol
(sC.Construct(sA), f1).Equals(new
FormattedSymbol
(sC.Construct(sA), f1)));
5019
Assert.False(new
FormattedSymbol
(sA, new SymbolDisplayFormat()).Equals(new
FormattedSymbol
(sA, new SymbolDisplayFormat())));
5021
Assert.True(new
FormattedSymbol
(sA, f1).GetHashCode().Equals(new
FormattedSymbol
(sA, f1).GetHashCode()));
Microsoft.CodeAnalysis.VisualBasic (9)
SymbolDisplay\CustomSymbolDisplayFormatter.vb (8)
101
Return New
FormattedSymbol
(symbol, QualifiedNameFormat)
105
Return New
FormattedSymbol
(symbol, WithContainingTypeFormat)
109
Return New
FormattedSymbol
(symbol, ErrorNameWithKindFormat)
113
Return New
FormattedSymbol
(symbol, SymbolDisplayFormat.ShortFormat)
117
Return New
FormattedSymbol
(symbol, DelegateSignatureFormat)
121
Return New
FormattedSymbol
(symbol, ShortWithTypeArgsFormat)
125
Return New
FormattedSymbol
(symbol, ShortWithTypeArgsAndContainingTypesFormat)
129
Return New
FormattedSymbol
(symbol, SymbolDisplayFormat.VisualBasicErrorMessageFormat)
Symbols\ObsoleteAttributeHelpers.vb (1)
123
Return ErrorFactory.ErrorInfo(ERRID.WRN_Experimental, New
FormattedSymbol
(symbol, SymbolDisplayFormat.VisualBasicErrorMessageFormat))