65 instantiations of FormattedSymbol
Microsoft.CodeAnalysis.CSharp (47)
Binder\Binder.ValueChecks.cs (1)
3635
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)
2289
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 (3)
1251
new
FormattedSymbol
(unwrapIfParamsCollection(badArg, parameter, isLastParameter), SymbolDisplayFormat.CSharpErrorMessageNoParameterNamesFormat));
1319
new
FormattedSymbol
(parameter, SymbolDisplayFormat.CSharpErrorMessageNoParameterNamesFormat));
1365
new
FormattedSymbol
(unwrapIfParamsCollection(badArg, parameter, isLastParameter), SymbolDisplayFormat.CSharpErrorMessageNoParameterNamesFormat));
FlowAnalysis\NullableWalker.cs (3)
2359
new
FormattedSymbol
(parameterOpt, SymbolDisplayFormat.ShortFormat);
2367
new
FormattedSymbol
(containingSymbol, SymbolDisplayFormat.MinimallyQualifiedFormat);
9292
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)
235
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)
302
new
FormattedSymbol
(this, SymbolDisplayFormat.MinimallyQualifiedFormat),
303
new
FormattedSymbol
(implementation, SymbolDisplayFormat.MinimallyQualifiedFormat));
331
diagnostics.Add(ErrorCode.ERR_ScopedMismatchInParameterOfPartial, implementation.GetFirstLocation(), new
FormattedSymbol
(implementation.Parameters[i], SymbolDisplayFormat.ShortFormat));
Symbols\Source\SourceEventSymbol.cs (2)
882
new
FormattedSymbol
(this, SymbolDisplayFormat.MinimallyQualifiedFormat),
883
new
FormattedSymbol
(implementation, SymbolDisplayFormat.MinimallyQualifiedFormat));
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5165
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)
1786
implementingEvent.GetFirstLocation(), new
FormattedSymbol
(implementedEvent, SymbolDisplayFormat.MinimallyQualifiedFormat));
1792
new
FormattedSymbol
(implementingEvent, SymbolDisplayFormat.MinimallyQualifiedFormat),
1793
new
FormattedSymbol
(implementedEvent, SymbolDisplayFormat.MinimallyQualifiedFormat));
1817
implementingMethod.GetFirstLocation(), new
FormattedSymbol
(implementedMethod.ConstructedFrom, SymbolDisplayFormat.MinimallyQualifiedFormat));
1825
new
FormattedSymbol
(implementingMethod, SymbolDisplayFormat.MinimallyQualifiedFormat),
1826
new
FormattedSymbol
(implementedMethod.ConstructedFrom, SymbolDisplayFormat.MinimallyQualifiedFormat));
1839
new
FormattedSymbol
(implementingParameter, SymbolDisplayFormat.ShortFormat),
1840
new
FormattedSymbol
(implementedMethod.ConstructedFrom, SymbolDisplayFormat.MinimallyQualifiedFormat));
1848
new
FormattedSymbol
(implementingParameter, SymbolDisplayFormat.ShortFormat),
1849
new
FormattedSymbol
(implementingMethod, SymbolDisplayFormat.MinimallyQualifiedFormat),
1850
new
FormattedSymbol
(implementedMethod.ConstructedFrom, SymbolDisplayFormat.MinimallyQualifiedFormat));
1877
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
;