64 references to ReducedExtension
Microsoft.CodeAnalysis (1)
Symbols\ISymbolExtensions.cs (1)
19if (method.MethodKind != MethodKind.ReducedExtension)
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
205=> symbol is IMethodSymbol { MethodKind: MethodKind.ReducedExtension };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
380case MethodKind.ReducedExtension:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
176if (x.MethodKind == MethodKind.ReducedExtension)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
132if (method.MethodKind == MethodKind.ReducedExtension && insertionIndex < existingParameters.Count)
Microsoft.CodeAnalysis.CSharp (18)
Compilation\CSharpSemanticModel.cs (1)
4782if (call.InvokedAsExtensionMethod && method.IsExtensionMethod && method.MethodKind != MethodKind.ReducedExtension)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (5)
287if (symbol.MethodKind == MethodKind.ReducedExtension && Format.ExtensionMethodStyle == SymbolDisplayExtensionMethodStyle.StaticMethod) 291else if (symbol.MethodKind != MethodKind.ReducedExtension && Format.ExtensionMethodStyle == SymbolDisplayExtensionMethodStyle.InstanceMethod) 383else if (symbol.MethodKind == MethodKind.ReducedExtension) 423case MethodKind.ReducedExtension: 774hasThisParameter: symbol.IsExtensionMethod && symbol.MethodKind != MethodKind.ReducedExtension,
Symbols\MethodSymbol.cs (4)
609case MethodKind.ReducedExtension: 757if (!this.IsExtensionMethod || this.MethodKind == MethodKind.ReducedExtension || receiverType.IsVoidType()) 772return (this.IsExtensionMethod && this.MethodKind != MethodKind.ReducedExtension) ? ReducedExtensionMethodSymbol.Create(this) : null; 1203or MethodKind.ReducedExtension
Symbols\NamedTypeSymbol.cs (1)
370Debug.Assert(method.MethodKind != MethodKind.ReducedExtension);
Symbols\PublicModel\MethodSymbol.cs (2)
65case MethodKind.ReducedExtension: 66return MethodKind.ReducedExtension;
Symbols\ReducedExtensionMethodSymbol.cs (4)
39Debug.Assert(method.IsExtensionMethod && method.MethodKind != MethodKind.ReducedExtension); 74Debug.Assert(method.IsExtensionMethod && method.MethodKind != MethodKind.ReducedExtension); 116Debug.Assert(method.MethodKind != MethodKind.ReducedExtension); 469get { return MethodKind.ReducedExtension; }
Symbols\Symbol.cs (1)
671case MethodKind.ReducedExtension:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
372MethodKind: MethodKind.ReducedExtension,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenTupleTest.cs (1)
14341Assert.Equal(MethodKind.ReducedExtension, m6Method.MethodKind);
Microsoft.CodeAnalysis.CSharp.Features (1)
ChangeSignature\CSharpChangeSignatureService.cs (1)
426symbolInfo.Symbol is IMethodSymbol { MethodKind: MethodKind.ReducedExtension },
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\QueryTests.cs (4)
1462Assert.NotEqual(MethodKind.ReducedExtension, ((IMethodSymbol)info0.CastInfo.Symbol).MethodKind); 1471Assert.NotEqual(MethodKind.ReducedExtension, ((IMethodSymbol)info1.OperationInfo.Symbol).MethodKind); 1671Assert.Equal(MethodKind.ReducedExtension, ((IMethodSymbol)info0.CastInfo.Symbol).MethodKind); 1680Assert.Equal(MethodKind.ReducedExtension, ((IMethodSymbol)info1.OperationInfo.Symbol).MethodKind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (2)
1722symbol.Kind == SymbolKind.Method && (((IMethodSymbol)symbol).IsExtensionMethod || ((IMethodSymbol)symbol).MethodKind == MethodKind.ReducedExtension); 1885symbol.Kind == SymbolKind.Method && (((IMethodSymbol)symbol).IsExtensionMethod || ((IMethodSymbol)symbol).MethodKind == MethodKind.ReducedExtension);
Symbols\ExtensionMethodTests.cs (1)
229Assert.Equal(MethodKind.ReducedExtension, gooSymbol.MethodKind);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
264return methodSymbol.MethodKind == MethodKind.ReducedExtension
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
372MethodKind: MethodKind.ReducedExtension,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Utilities\SymbolEquivalenceComparerTests.cs (2)
1871Assert.Equal(MethodKind.ReducedExtension, method1.MethodKind); 1874Assert.Equal(MethodKind.ReducedExtension, method2.MethodKind);
Microsoft.CodeAnalysis.Features (3)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
628var extension = method.IsExtensionMethod || method.MethodKind == MethodKind.ReducedExtension;
Shared\Extensions\ISymbolExtensions_2.cs (1)
105methodSymbol.MethodKind == MethodKind.ReducedExtension)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
132if (method.MethodKind == MethodKind.ReducedExtension && insertionIndex < existingParameters.Count)
Microsoft.CodeAnalysis.VisualBasic (12)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (6)
170If symbol.MethodKind = MethodKind.ReducedExtension AndAlso Format.ExtensionMethodStyle = SymbolDisplayExtensionMethodStyle.StaticMethod Then 172ElseIf symbol.MethodKind <> MethodKind.ReducedExtension AndAlso Format.ExtensionMethodStyle = SymbolDisplayExtensionMethodStyle.InstanceMethod Then 272MethodKind.ReducedExtension, 296If symbol.MethodKind = MethodKind.ReducedExtension Then 314Case MethodKind.ReducedExtension 427AddParametersIfRequired(isExtensionMethod:=method.IsExtensionMethod AndAlso method.MethodKind <> MethodKind.ReducedExtension,
Symbols\MethodSymbol.vb (1)
426Return IsExtensionMethod AndAlso MethodKind <> MethodKind.ReducedExtension
Symbols\ReducedExtensionMethodSymbol.vb (3)
49possiblyExtensionMethod.MethodKind <> MethodKind.ReducedExtension) Then 185If Not possiblyExtensionMethod.IsExtensionMethod OrElse possiblyExtensionMethod.MethodKind = MethodKind.ReducedExtension Then 355Return MethodKind.ReducedExtension
Symbols\Symbol.vb (2)
618Case MethodKind.Ordinary, MethodKind.DeclareMethod, MethodKind.ReducedExtension 658Case MethodKind.Ordinary, MethodKind.DeclareMethod, MethodKind.ReducedExtension, MethodKind.DelegateInvoke, MethodKind.UserDefinedOperator, MethodKind.Conversion
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
397If method.MethodKind = MethodKind.ReducedExtension AndAlso
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\IMethodSymbolExtensions.vb (1)
19If symbol.IsStatic AndAlso Not symbol.MethodKind = MethodKind.ReducedExtension Then
Microsoft.CodeAnalysis.VisualBasic.Features (1)
ChangeSignature\VisualBasicChangeSignatureService.vb (1)
358If methodSymbol IsNot Nothing AndAlso methodSymbol.MethodKind = MethodKind.ReducedExtension Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
ExtensionMethods\SemanticModelTests.vb (2)
61Assert.Equal(MethodKind.ReducedExtension, method.MethodKind) 70Assert.Equal(MethodKind.ReducedExtension, reducedMethod.MethodKind)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
397If method.MethodKind = MethodKind.ReducedExtension AndAlso
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\IMethodSymbolExtensions.vb (1)
19If symbol.IsStatic AndAlso Not symbol.MethodKind = MethodKind.ReducedExtension Then
Microsoft.CodeAnalysis.Workspaces (4)
FindSymbols\FindReferences\Finders\OrdinaryMethodReferenceFinder.cs (1)
19MethodKind.ReducedExtension or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
205=> symbol is IMethodSymbol { MethodKind: MethodKind.ReducedExtension };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
380case MethodKind.ReducedExtension:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
176if (x.MethodKind == MethodKind.ReducedExtension)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
GlyphExtensionsTests.cs (1)
47methodKind: MethodKind.ReducedExtension);