67 instantiations of FormattedSymbol
Microsoft.CodeAnalysis.CSharp (49)
Binder\Binder.ValueChecks.cs (1)
3394
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)
2307
new
FormattedSymbol
(parameter, SymbolDisplayFormat.ShortFormat),
Binder\Binder_Symbols.cs (4)
2119
new
FormattedSymbol
(first, SymbolDisplayFormat.CSharpErrorMessageFormat),
2120
new
FormattedSymbol
(second, SymbolDisplayFormat.CSharpErrorMessageFormat) });
2265
new
FormattedSymbol
(first, SymbolDisplayFormat.CSharpErrorMessageFormat),
2266
new
FormattedSymbol
(second, SymbolDisplayFormat.CSharpErrorMessageFormat) });
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (5)
1251
new
FormattedSymbol
(unwrapIfParamsCollection(badArg, parameter, isLastParameter), SymbolDisplayFormat.CSharpErrorMessageNoParameterNamesFormat));
1319
new
FormattedSymbol
(parameter, SymbolDisplayFormat.CSharpErrorMessageNoParameterNamesFormat));
1365
new
FormattedSymbol
(unwrapIfParamsCollection(badArg, parameter, isLastParameter), SymbolDisplayFormat.CSharpErrorMessageNoParameterNamesFormat));
1512
new
FormattedSymbol
(first, SymbolDisplayFormat.CSharpErrorMessageFormat),
1513
new
FormattedSymbol
(second, SymbolDisplayFormat.CSharpErrorMessageFormat)
FlowAnalysis\NullableWalker.cs (3)
2335
new
FormattedSymbol
(parameterOpt, SymbolDisplayFormat.ShortFormat);
2343
new
FormattedSymbol
(containingSymbol, SymbolDisplayFormat.MinimallyQualifiedFormat);
9145
new
FormattedSymbol
(sourceInvokeMethod, SymbolDisplayFormat.MinimallyQualifiedFormat),
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
216
Error(diagnostic, node, new
FormattedSymbol
(symbol, SymbolDisplayFormat.ShortFormat));
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
234
diagnostics.Add(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnInterceptor, attributeLocation, new
FormattedSymbol
(implementingParameter, SymbolDisplayFormat.ShortFormat), method);
Symbols\ObsoleteAttributeHelpers.cs (3)
184
new
FormattedSymbol
(symbol, SymbolDisplayFormat.CSharpErrorMessageFormat));
195
new
FormattedSymbol
(symbol, SymbolDisplayFormat.CSharpErrorMessageFormat));
200
new
FormattedSymbol
(symbol, SymbolDisplayFormat.CSharpErrorMessageFormat), data.Message);
Symbols\Source\SourceConstructorSymbol.cs (3)
294
new
FormattedSymbol
(this, SymbolDisplayFormat.MinimallyQualifiedFormat),
295
new
FormattedSymbol
(implementation, SymbolDisplayFormat.MinimallyQualifiedFormat));
323
diagnostics.Add(ErrorCode.ERR_ScopedMismatchInParameterOfPartial, implementation.GetFirstLocation(), new
FormattedSymbol
(implementation.Parameters[i], SymbolDisplayFormat.ShortFormat));
Symbols\Source\SourceEventSymbol.cs (2)
878
new
FormattedSymbol
(this, SymbolDisplayFormat.MinimallyQualifiedFormat),
879
new
FormattedSymbol
(implementation, SymbolDisplayFormat.MinimallyQualifiedFormat));
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5192
new
FormattedSymbol
(existingMember, SymbolDisplayFormat.CSharpErrorMessageFormat.WithMemberOptions(SymbolDisplayMemberOptions.IncludeContainingType)),
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
1170
new
FormattedSymbol
(overridingParameter, SymbolDisplayFormat.ShortFormat));
1233
new
FormattedSymbol
(overridingParameter, SymbolDisplayFormat.ShortFormat));
1258
diagnostics.Add(ErrorCode.WRN_DoesNotReturnMismatch, overrideMethod.GetFirstLocation(), new
FormattedSymbol
(overrideMethod, SymbolDisplayFormat.MinimallyQualifiedFormat));
Symbols\Source\SourceOrdinaryMethodSymbol.cs (4)
552
diagnostics.Add(ErrorCode.ERR_ScopedMismatchInParameterOfPartial, implementingMethod.GetFirstLocation(), new
FormattedSymbol
(implementingParameter, SymbolDisplayFormat.ShortFormat));
573
diagnostics.Add(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, implementingMethod.GetFirstLocation(), new
FormattedSymbol
(implementingParameter, SymbolDisplayFormat.ShortFormat));
584
new
FormattedSymbol
(definition, SymbolDisplayFormat.MinimallyQualifiedFormat),
585
new
FormattedSymbol
(implementation, SymbolDisplayFormat.MinimallyQualifiedFormat));
Symbols\Source\SourcePropertySymbol.cs (3)
756
new
FormattedSymbol
(this, SymbolDisplayFormat.MinimallyQualifiedFormat),
757
new
FormattedSymbol
(implementation, SymbolDisplayFormat.MinimallyQualifiedFormat));
808
diagnostics.Add(ErrorCode.ERR_ScopedMismatchInParameterOfPartial, implementation.GetFirstLocation(), new
FormattedSymbol
(implementation.Parameters[i], SymbolDisplayFormat.ShortFormat));
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
390
diagnostics.Add(ErrorCode.ERR_InstanceMemberWithUnnamedExtensionsParameter, _location, new
FormattedSymbol
(this, SymbolDisplayFormat.ShortFormat));
Symbols\TypeSymbol.cs (12)
1798
implementingEvent.GetFirstLocation(), new
FormattedSymbol
(implementedEvent, SymbolDisplayFormat.MinimallyQualifiedFormat));
1804
new
FormattedSymbol
(implementingEvent, SymbolDisplayFormat.MinimallyQualifiedFormat),
1805
new
FormattedSymbol
(implementedEvent, SymbolDisplayFormat.MinimallyQualifiedFormat));
1829
implementingMethod.GetFirstLocation(), new
FormattedSymbol
(implementedMethod.ConstructedFrom, SymbolDisplayFormat.MinimallyQualifiedFormat));
1837
new
FormattedSymbol
(implementingMethod, SymbolDisplayFormat.MinimallyQualifiedFormat),
1838
new
FormattedSymbol
(implementedMethod.ConstructedFrom, SymbolDisplayFormat.MinimallyQualifiedFormat));
1851
new
FormattedSymbol
(implementingParameter, SymbolDisplayFormat.ShortFormat),
1852
new
FormattedSymbol
(implementedMethod.ConstructedFrom, SymbolDisplayFormat.MinimallyQualifiedFormat));
1860
new
FormattedSymbol
(implementingParameter, SymbolDisplayFormat.ShortFormat),
1861
new
FormattedSymbol
(implementingMethod, SymbolDisplayFormat.MinimallyQualifiedFormat),
1862
new
FormattedSymbol
(implementedMethod.ConstructedFrom, SymbolDisplayFormat.MinimallyQualifiedFormat));
1889
new
FormattedSymbol
(implementingParameter, SymbolDisplayFormat.ShortFormat));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (18)
SymbolDisplay\SymbolDisplayTests.cs (18)
5431
Assert.False(new
FormattedSymbol
(sA, f1).Equals((object)sA));
5432
Assert.False(new
FormattedSymbol
(sA, f1).Equals(null));
5434
Assert.True(new
FormattedSymbol
(sA, f1).Equals(new
FormattedSymbol
(sA, f1)));
5435
Assert.False(new
FormattedSymbol
(sA, f1).Equals(new
FormattedSymbol
(sA, f2)));
5436
Assert.False(new
FormattedSymbol
(sA, f1).Equals(new
FormattedSymbol
(sB, f1)));
5437
Assert.False(new
FormattedSymbol
(sA, f1).Equals(new
FormattedSymbol
(sB, f2)));
5439
Assert.False(new
FormattedSymbol
(sC, f1).Equals(new
FormattedSymbol
(sC.Construct(sA), f1)));
5440
Assert.True(new
FormattedSymbol
(sC.Construct(sA), f1).Equals(new
FormattedSymbol
(sC.Construct(sA), f1)));
5442
Assert.False(new
FormattedSymbol
(sA, new SymbolDisplayFormat()).Equals(new
FormattedSymbol
(sA, new SymbolDisplayFormat())));
5444
Assert.True(new
FormattedSymbol
(sA, f1).GetHashCode().Equals(new
FormattedSymbol
(sA, f1).GetHashCode()));
2 references to FormattedSymbol
Microsoft.CodeAnalysis (2)
SymbolDisplay\FormattedSymbol.cs (2)
40
var
other = obj as
FormattedSymbol
;