4 implementations of ReducedFrom
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
54public abstract IMethodSymbol ReducedFrom { get; }
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\MethodSymbol.cs (1)
188IMethodSymbol IMethodSymbol.ReducedFrom
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\MethodSymbol.vb (1)
957Private ReadOnly Property IMethodSymbol_ReducedFrom As IMethodSymbol Implements IMethodSymbol.ReducedFrom
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
54public abstract IMethodSymbol ReducedFrom { get; }
43 references to ReducedFrom
Microsoft.Analyzers.Extra (2)
Utilities\SyntaxNodeExtensions.cs (2)
56if (memberSymbol.ReducedFrom != null) 58var fullMethodName = memberSymbol.ReducedFrom.ToString();
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\Infrastructure\RouteUsageDetector.cs (1)
269if (!(method.ReducedFrom ?? method).Parameters.Any(
Microsoft.CodeAnalysis (3)
Symbols\IMethodSymbol.cs (2)
180/// <param name="reducedFromTypeParameter">Type parameter of the corresponding <see cref="ReducedFrom"/> method.</param> 184/// <exception cref="System.ArgumentException">If <paramref name="reducedFromTypeParameter"/> doesn't belong to the corresponding <see cref="ReducedFrom"/> method.</exception>
Symbols\ISymbolExtensions.cs (1)
25var reducedFrom = method.ReducedFrom;
Microsoft.CodeAnalysis.CodeStyle (8)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
382if (targetMethod.ReducedFrom != null) 384OnSymbolUsage(targetMethod.ReducedFrom, ValueUsageInfo.Read);
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (2)
157=> whereMethod.Equals(invocation.TargetMethod.ReducedFrom ?? invocation.TargetMethod.OriginalDefinition, SymbolEqualityComparer.Default); 160=> linqMethods.Any(static (m, invocation) => m.Equals(invocation.TargetMethod.ReducedFrom ?? invocation.TargetMethod.OriginalDefinition, SymbolEqualityComparer.Default), invocation);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (2)
20visitor.WriteSymbolKey(symbol.ReducedFrom); 27var reducedFromResolution = reader.ReadSymbolKey(contextualMethod?.ReducedFrom, out var reducedFromFailureReason);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
178var rx = x.ReducedFrom; 179var ry = y.ReducedFrom;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
373ReducedFrom.Parameters: [{ RefKind: RefKind.Ref }, ..],
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\LookupTests.cs (3)
1567var reducedFrom = method.ReducedFrom; 1599Assert.Null(method.ReducedFrom); 1605var reducedFrom = method.ReducedFrom;
Semantics\QueryTests.cs (1)
2183Assert.Equal("Select", m.ReducedFrom.Name);
Semantics\ReadOnlyStructsTests.cs (1)
1284var reducedFrom = symbol.ReducedFrom;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Compilation\GetSemanticInfoTests.cs (6)
4046Assert.Same(method1.ReducedFrom.TypeParameters[0], method1.TypeParameters[0].ReducedFrom); 4047Assert.Null(method1.ReducedFrom.TypeParameters[0].ReducedFrom); 4049Assert.Equal("System.Boolean Program.Any<T>(this System.Collections.Generic.ICollection<T> s, System.Func<T, System.Boolean> predicate)", method1.ReducedFrom.ToTestDisplayString()); 4051Assert.Equal("System.Reflection.FieldInfo", method1.GetTypeInferredDuringReduction(method1.ReducedFrom.TypeParameters[0]).ToTestDisplayString()); 4053Assert.Throws<InvalidOperationException>(() => method1.ReducedFrom.GetTypeInferredDuringReduction(null)); 4057Where((m) => (object)m != (object)method1.ReducedFrom).Cast<IMethodSymbol>().Single().TypeParameters[0]));
Symbols\ExtensionMethodTests.cs (1)
230var gooOriginal = gooSymbol.ReducedFrom;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CompilationTestUtils.cs (2)
119Assert.Equal(reducedMethod.ReducedFrom, reducedFrom); 120Assert.Null(reducedFrom.ReducedFrom);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
373ReducedFrom.Parameters: [{ RefKind: RefKind.Ref }, ..],
Microsoft.CodeAnalysis.Features (3)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
382if (targetMethod.ReducedFrom != null) 384OnSymbolUsage(targetMethod.ReducedFrom, ValueUsageInfo.Read);
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
157=> whereMethod.Equals(invocation.TargetMethod.ReducedFrom ?? invocation.TargetMethod.OriginalDefinition, SymbolEqualityComparer.Default);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\MethodSymbol.vb (1)
957Private ReadOnly Property IMethodSymbol_ReducedFrom As IMethodSymbol Implements IMethodSymbol.ReducedFrom
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (2)
398method.ReducedFrom.Parameters.Length > 0 AndAlso 399method.ReducedFrom.Parameters.First().RefKind = RefKind.Ref Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (2)
398method.ReducedFrom.Parameters.Length > 0 AndAlso 399method.ReducedFrom.Parameters.First().RefKind = RefKind.Ref Then
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (2)
20visitor.WriteSymbolKey(symbol.ReducedFrom); 27var reducedFromResolution = reader.ReadSymbolKey(contextualMethod?.ReducedFrom, out var reducedFromFailureReason);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
178var rx = x.ReducedFrom; 179var ry = y.ReducedFrom;
Microsoft.VisualStudio.LanguageServices (1)
CallHierarchy\CallHierarchyProvider.cs (1)
87methodSymbol = methodSymbol.ReducedFrom ?? methodSymbol;