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