4 implementations of PartialImplementationPart
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
59public abstract IMethodSymbol PartialImplementationPart { get; }
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\MethodSymbol.cs (1)
285IMethodSymbol IMethodSymbol.PartialImplementationPart
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\MethodSymbol.vb (1)
1020Private ReadOnly Property IMethodSymbol_PartialImplementationPart As IMethodSymbol Implements IMethodSymbol.PartialImplementationPart
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
59public abstract IMethodSymbol PartialImplementationPart { get; }
71 references to PartialImplementationPart
Microsoft.AspNetCore.App.Analyzers (4)
src\Shared\Roslyn\CodeAnalysisExtensions.cs (4)
159Debug.Assert(method.PartialImplementationPart == null && !SymbolEqualityComparer.Default.Equals(method.PartialDefinitionPart, method)); 163else if (method.PartialImplementationPart != null) 165Debug.Assert(!SymbolEqualityComparer.Default.Equals(method.PartialImplementationPart, method)); 166yield return method.PartialImplementationPart;
Microsoft.AspNetCore.Mvc.Analyzers (4)
src\Shared\Roslyn\CodeAnalysisExtensions.cs (4)
159Debug.Assert(method.PartialImplementationPart == null && !SymbolEqualityComparer.Default.Equals(method.PartialDefinitionPart, method)); 163else if (method.PartialImplementationPart != null) 165Debug.Assert(!SymbolEqualityComparer.Default.Equals(method.PartialImplementationPart, method)); 166yield return method.PartialImplementationPart;
Microsoft.AspNetCore.Mvc.Api.Analyzers (4)
src\Shared\Roslyn\CodeAnalysisExtensions.cs (4)
159Debug.Assert(method.PartialImplementationPart == null && !SymbolEqualityComparer.Default.Equals(method.PartialDefinitionPart, method)); 163else if (method.PartialImplementationPart != null) 165Debug.Assert(!SymbolEqualityComparer.Default.Equals(method.PartialImplementationPart, method)); 166yield return method.PartialImplementationPart;
Microsoft.CodeAnalysis (5)
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (1)
207if (member is IMethodSymbol { PartialImplementationPart: { } methodImplementation })
Emit\EditAndContinue\SymbolChanges.cs (1)
423Debug.Assert(edit.OldSymbol == null || ((IMethodSymbol)edit.OldSymbol).PartialImplementationPart == null);
Emit\SemanticEdit.cs (2)
145if (oldSymbol is IMethodSymbol { PartialImplementationPart: not null } or IPropertySymbol { PartialImplementationPart: not null }) 150if (newSymbol is IMethodSymbol { PartialImplementationPart: not null } or IPropertySymbol { PartialImplementationPart: not null })
Symbols\IMethodSymbol.cs (1)
274/// is an implementing body, it can be retrieved with <see cref="PartialImplementationPart"/>.
Microsoft.CodeAnalysis.CodeStyle (7)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
212method.PartialImplementationPart != null ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (4)
24Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 27else if (method.PartialImplementationPart != null) 29Debug.Assert(!Equals(method.PartialImplementationPart, method)); 30return [method.PartialImplementationPart, method];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (1)
261method = method.PartialImplementationPart ?? method;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
230=> symbol.PartialImplementationPart != null;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
139if (invokedMethod.IsPartialDefinition && invokedMethod.PartialImplementationPart is null)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
216if (symbol is not IMethodSymbol method || method.PartialImplementationPart is not null)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
SymbolKey\SymbolKeyCompilationsTests.cs (2)
133var implementation = definition.PartialImplementationPart; 160var implementation = definition.PartialImplementationPart;
Microsoft.CodeAnalysis.CSharp.Features (4)
NavigationBar\CSharpNavigationBarItemService.cs (2)
76if (member is IMethodSymbol { PartialImplementationPart: { } } methodSymbol) 79memberItems.AddIfNotNull(CreateItemForMember(solution, methodSymbol.PartialImplementationPart, tree, cancellationToken));
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
139if (invokedMethod.IsPartialDefinition && invokedMethod.PartialImplementationPart is null)
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
216if (symbol is not IMethodSymbol method || method.PartialImplementationPart is not null)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\ExtendedPartialMethodsTests.cs (2)
3498var implSymbol = defSymbol.PartialImplementationPart; 3503Assert.Null(implSymbol.PartialImplementationPart);
Symbols\Source\MethodTests.cs (2)
2548Assert.Same(partialDef.PartialImplementationPart, partialImpl); 2552Assert.Null(partialImpl.PartialImplementationPart);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Rename\CSharpRenameRewriterLanguageService.cs (2)
828methodSymbol.PartialImplementationPart != null) 830var matchingParameterSymbol = methodSymbol.PartialImplementationPart.Parameters[renamedParameterSymbol.Ordinal];
Microsoft.CodeAnalysis.Features (7)
Debugging\AbstractBreakpointResolver.cs (1)
232SymbolKind.Method => ((IMethodSymbol)symbol).PartialImplementationPart,
EditAndContinue\Utilities\Extensions.cs (1)
233IMethodSymbol { PartialImplementationPart: var impl } => impl,
GoToDefinition\GoToDefinitionFeatureHelpers.cs (1)
49symbol = (symbol as IMethodSymbol)?.PartialImplementationPart ?? symbol;
InitializeParameter\AbstractInitializeParameterCodeRefactoringProvider.cs (1)
88methodSymbol.PartialImplementationPart != null ||
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (2)
98if (calleeMethodSymbol.PartialImplementationPart != null) 100calleeMethodSymbol = calleeMethodSymbol.PartialImplementationPart;
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
212method.PartialImplementationPart != null ||
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\MethodSymbol.vb (1)
1020Private ReadOnly Property IMethodSymbol_PartialImplementationPart As IMethodSymbol Implements IMethodSymbol.PartialImplementationPart
Microsoft.CodeAnalysis.VisualBasic.Features (3)
NavigationBar\VisualBasicNavigationBarItemService.vb (3)
413If method IsNot Nothing AndAlso method.PartialImplementationPart IsNot Nothing Then 414method = method.PartialImplementationPart 452If method.PartialImplementationPart IsNot Nothing Then
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
SymbolsTests\Source\MethodTests.vb (2)
1762Assert.Null(m.PartialImplementationPart) 1782Assert.False(m.PartialImplementationPart.IsPartialDefinition)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
CaseCorrection\VisualBasicCaseCorrectionService.Rewriter.vb (1)
209Return If(methodSymbol.PartialDefinitionPart, methodSymbol.PartialImplementationPart)
Rename\VisualBasicRenameRewriterLanguageService.vb (2)
717If methodSymbol.PartialImplementationPart IsNot Nothing Then 718Dim matchingParameterSymbol = methodSymbol.PartialImplementationPart.Parameters((DirectCast(renamedSymbol, IParameterSymbol)).Ordinal)
Microsoft.CodeAnalysis.Workspaces (15)
FindSymbols\FindReferences\Finders\MethodTypeParameterSymbolReferenceFinder.cs (3)
33if (method.PartialImplementationPart != null && ordinal < method.PartialImplementationPart.TypeParameters.Length) 34return new([method.PartialImplementationPart.TypeParameters[ordinal]]);
FindSymbols\FindReferences\Finders\OrdinaryMethodReferenceFinder.cs (2)
41if (symbol.PartialImplementationPart != null) 42return [symbol.PartialImplementationPart];
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (2)
251if (ordinal < method.PartialImplementationPart?.Parameters.Length) 252results.Add(method.PartialImplementationPart.Parameters[ordinal]);
Rename\ConflictEngine\DeclarationConflictHelpers.cs (2)
62!(conflictingMethod.PartialImplementationPart != null && Equals(conflictingMethod.PartialImplementationPart, renamedMethod)))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (4)
24Debug.Assert(method.PartialImplementationPart == null && !Equals(method.PartialDefinitionPart, method)); 27else if (method.PartialImplementationPart != null) 29Debug.Assert(!Equals(method.PartialImplementationPart, method)); 30return [method.PartialImplementationPart, method];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (1)
261method = method.PartialImplementationPart ?? method;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
230=> symbol.PartialImplementationPart != null;
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
3621? methodSymbol.PartialImplementationPart != null
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
4175Dim isPartial = methodSymbol.PartialDefinitionPart IsNot Nothing OrElse methodSymbol.PartialImplementationPart IsNot Nothing