5 implementations of Member
Microsoft.CodeAnalysis (5)
Operations\OperationNodes.cs (5)
184public abstract ISymbol Member { get; } 189public override ISymbol Member => Method; 194public override ISymbol Member => Property; 199public override ISymbol Member => Event; 204public override ISymbol Member => Field;
66 references to Member
Microsoft.AspNetCore.App.Analyzers (2)
Authorization\AddAuthorizationBuilderAnalyzer.cs (2)
207&& SymbolEqualityComparer.Default.Equals(methodReferenceOperation.Member, authorizationOptionsTypes.GetPolicy) 208&& SymbolEqualityComparer.Default.Equals(methodReferenceOperation.Member.ContainingType, authorizationOptionsTypes.AuthorizationOptions))
Microsoft.AspNetCore.Components.Analyzers (6)
ComponentParameterUsageAnalyzer.cs (2)
67var componentProperty = (IPropertySymbol)propertyReference.Member; 108propertyReference.Member.Name));
InternalUsageAnalyzer.cs (4)
65IFieldReferenceOperation field => field.Member, 66IMethodReferenceOperation method => method.Member, 67IPropertyReferenceOperation property => property.Member, 68IEventReferenceOperation @event => @event.Member,
Microsoft.AspNetCore.Components.SdkAnalyzers (6)
ComponentParameterUsageAnalyzer.cs (2)
67var componentProperty = (IPropertySymbol)propertyReference.Member; 108propertyReference.Member.Name));
InternalUsageAnalyzer.cs (4)
65IFieldReferenceOperation field => field.Member, 66IMethodReferenceOperation method => method.Member, 67IPropertyReferenceOperation property => property.Member, 68IEventReferenceOperation @event => @event.Member,
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs (1)
193if (!SymbolEqualityComparer.Default.Equals(propertyReference.Member.ContainingType, symbolCache.ModelStateDictionary))
Microsoft.CodeAnalysis (6)
Generated\Operations.Generated.cs (2)
908/// Type parameter which runtime type will be used to resolve virtual invocation of the <see cref="Member" />. 909/// Null if <see cref="Member" /> is resolved statically, or is an instance member.
Operations\ControlFlowGraphBuilder.cs (4)
6180if (!memberReference.Member.IsStatic && memberReference.Instance != null) 6232instance = (!fieldReference.Member.IsStatic && fieldReference.Instance != null) ? PopOperand() : null; 6237instance = (!eventReference.Member.IsStatic && eventReference.Instance != null) ? PopOperand() : null; 6242instance = (!propertyReference.Member.IsStatic && propertyReference.Instance != null) ? PopOperand() : null;
Microsoft.CodeAnalysis.CodeStyle (7)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (2)
174symbol = fieldReference.Member; 180symbol = propertyReference.Member;
src\Analyzers\Core\Analyzers\QualifyMemberAccess\AbstractQualifyMemberAccessDiagnosticAnalyzer.cs (2)
111IMemberReferenceOperation memberReferenceOperation => memberReferenceOperation.Member.Kind, 142IMemberReferenceOperation memberReferenceOperation => IsStaticMemberOrIsLocalFunctionHelper(memberReferenceOperation.Member),
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
356var memberSymbol = memberReference.Member.OriginalDefinition; 447OnSymbolUsage(memberReference.Member.OriginalDefinition, ValueUsageInfo.ReadWrite);
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
141if (Unwrap(operation) is IPropertyReferenceOperation { Member: { } member })
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (3)
150memberReference.Member.ContainingType.Equals(containingType)) 152if (memberReference.Member is IFieldSymbol or IPropertySymbol) 154fieldOrProperty = memberReference.Member;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
555var member = operation.Member.OriginalDefinition;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (3)
925if (memberReference1.Member.Equals(memberReference2.Member) && 931var field = UnwrapPropertyToField(memberReference1.Member);
Microsoft.CodeAnalysis.CSharp.Features (4)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
555var member = operation.Member.OriginalDefinition;
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (3)
925if (memberReference1.Member.Equals(memberReference2.Member) && 931var field = UnwrapPropertyToField(memberReference1.Member);
Microsoft.CodeAnalysis.Features (10)
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (1)
676member.Equals(memberReference.Member))
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (2)
174symbol = fieldReference.Member; 180symbol = propertyReference.Member;
src\Analyzers\Core\Analyzers\QualifyMemberAccess\AbstractQualifyMemberAccessDiagnosticAnalyzer.cs (2)
111IMemberReferenceOperation memberReferenceOperation => memberReferenceOperation.Member.Kind, 142IMemberReferenceOperation memberReferenceOperation => IsStaticMemberOrIsLocalFunctionHelper(memberReferenceOperation.Member),
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
356var memberSymbol = memberReference.Member.OriginalDefinition; 447OnSymbolUsage(memberReference.Member.OriginalDefinition, ValueUsageInfo.ReadWrite);
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
141if (Unwrap(operation) is IPropertyReferenceOperation { Member: { } member })
ValueTracking\ValueTracker.OperationCollector.cs (2)
145IFieldReferenceOperation fieldReferenceOperation => AddOperationAsync(operation, fieldReferenceOperation.Member, cancellationToken), 146IPropertyReferenceOperation propertyReferenceOperation => AddOperationAsync(operation, propertyReferenceOperation.Member, cancellationToken),
Microsoft.CodeAnalysis.Test.Utilities (10)
Compilation\OperationTreeVerifier.cs (2)
1042Assert.False(memberReference.Member.IsStatic && !operation.HasErrors(this._compilation)); 1053if (operation.Member.IsStatic)
Compilation\TestOperationVisitor.cs (8)
654Assert.NotNull(operation.Member); 655AssertConstrainedToType(operation.Member, operation.ConstrainedToType); 665if (operation.Member.IsStatic && 685Assert.Same(operation.Member, operation.Field); 694Assert.Same(operation.Member, operation.Method); 708Assert.Same(operation.Member, operation.Property); 716Assert.Same(operation.Member, operation.Event); 1534switch (member.Member)
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (3)
150memberReference.Member.ContainingType.Equals(containingType)) 152if (memberReference.Member is IFieldSymbol or IPropertySymbol) 154fieldOrProperty = memberReference.Member;
Microsoft.VisualStudio.LanguageServices (2)
PullMemberUp\SymbolDependentsBuilder.cs (2)
73_membersInType.Contains(memberReferenceOp.Member)) 75_dependents.Add(memberReferenceOp.Member);
System.Private.CoreLib.Generators (1)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (1)
194IMemberReferenceOperation mOperation => mOperation.Member,
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexCodeFixer.cs (1)
295fieldReferenceOperation.Member is IFieldSymbol fieldSymbol && fieldSymbol.IsConst)