1 implementation of IPropertyReferenceOperation
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5454internal sealed partial class PropertyReferenceOperation : BaseMemberReferenceOperation, IPropertyReferenceOperation
107 references to IPropertyReferenceOperation
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Parser\ConfigurationBinder.cs (1)
110IPropertyReferenceOperation o => o.Type,
ILLink.RoslynAnalyzer (5)
DataFlow\FeatureChecksVisitor.cs (1)
48 public override FeatureChecksValue VisitPropertyReference (IPropertyReferenceOperation operation, StateValue state)
DataFlow\LocalDataFlowVisitor.cs (2)
256 case IPropertyReferenceOperation propertyRef: { 597 public override TValue VisitPropertyReference (IPropertyReferenceOperation operation, LocalDataFlowState<TValue, TContext, TValueLattice, TContextLattice> state)
IOperationExtensions.cs (1)
264 case IPropertyReferenceOperation:
RequiresAnalyzerBase.cs (1)
214 case IPropertyReferenceOperation when targets.HasFlag (DiagnosticTargets.Property):
Microsoft.Analyzers.Extra (11)
AsyncCallInsideUsingBlockAnalyzer.cs (3)
98return TaskResultInvoked((operation as IPropertyReferenceOperation)!); 172.OfType<IPropertyReferenceOperation>() 202private static bool TaskResultInvoked(IPropertyReferenceOperation operation)
CallAnalysis\CallAnalyzer.Handlers.cs (2)
102var op = (IPropertyReferenceOperation)context.Operation;
CallAnalysis\CallAnalyzer.Registrar.cs (2)
127public void RegisterProperty(IPropertySymbol prop, Action<OperationAnalysisContext, IPropertyReferenceOperation> action) 144public void RegisterProperties(Dictionary<string, string[]> props, Action<OperationAnalysisContext, IPropertyReferenceOperation> action)
CallAnalysis\CallAnalyzer.State.cs (1)
18public readonly Dictionary<IPropertySymbol, List<Action<OperationAnalysisContext, IPropertyReferenceOperation>>> Props = new(SymbolEqualityComparer.Default);
CallAnalysis\StaticTime.cs (1)
56static void HandleProperty(OperationAnalysisContext context, IPropertyReferenceOperation op)
ConditionalAccessAnalyzer.cs (2)
41var propRef = (IPropertyReferenceOperation)op.Operation;
Microsoft.Analyzers.Local (6)
CallAnalysis\CallAnalyzer.Handlers.cs (2)
102var op = (IPropertyReferenceOperation)context.Operation;
CallAnalysis\CallAnalyzer.Registrar.cs (2)
127public void RegisterProperty(IPropertySymbol prop, Action<OperationAnalysisContext, IPropertyReferenceOperation> action) 144public void RegisterProperties(Dictionary<string, string[]> props, Action<OperationAnalysisContext, IPropertyReferenceOperation> action)
CallAnalysis\CallAnalyzer.State.cs (1)
18public readonly Dictionary<IPropertySymbol, List<Action<OperationAnalysisContext, IPropertyReferenceOperation>>> Props = new(SymbolEqualityComparer.Default);
CallAnalysis\ToInvariantString.cs (1)
44if (conv.Operand is IPropertyReferenceOperation prop)
Microsoft.AspNetCore.Analyzers (1)
OptionsAnalyzer.cs (1)
29operation.Target is IPropertyReferenceOperation property &&
Microsoft.AspNetCore.App.Analyzers (6)
Authorization\AddAuthorizationBuilderAnalyzer.cs (4)
147if (expressionStatementOperation is ISimpleAssignmentOperation { Target: IPropertyReferenceOperation { Property.ContainingType: { } propertyReferenceContainingType } } 174if (operation is IPropertyReferenceOperation propertyReferenceOperation) 179if (propertyReferenceOperation.Parent is IAssignmentOperation { Target: IPropertyReferenceOperation targetProperty } 184if (propertyReferenceOperation.Parent is IAssignmentOperation { Value: IPropertyReferenceOperation valueProperty }
Http\HeaderDictionaryIndexerAnalyzer.cs (2)
24var propertyReference = (IPropertyReferenceOperation)context.Operation;
Microsoft.AspNetCore.Components.Analyzers (3)
ComponentParameterUsageAnalyzer.cs (2)
66var propertyReference = (IPropertyReferenceOperation)leftHandSide;
InternalUsageAnalyzer.cs (1)
67IPropertyReferenceOperation property => property.Member,
Microsoft.AspNetCore.Components.SdkAnalyzers (3)
ComponentParameterUsageAnalyzer.cs (2)
66var propertyReference = (IPropertyReferenceOperation)leftHandSide;
InternalUsageAnalyzer.cs (1)
67IPropertyReferenceOperation property => property.Member,
Microsoft.AspNetCore.Mvc.Api.Analyzers (5)
ActualApiResponseMetadataFactory.cs (1)
165assignmentOperation.Target is not IPropertyReferenceOperation propertyReference)
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs (4)
187var propertyReference = (IPropertyReferenceOperation)operation; 204var modelStatePropertyReference = (IPropertyReferenceOperation)propertyReference.Instance;
Microsoft.CodeAnalysis (17)
Generated\OperationKind.Generated.cs (1)
73/// <summary>Indicates an <see cref="IPropertyReferenceOperation"/>.</summary>
Generated\Operations.Generated.cs (4)
1690/// Each initializer is an <see cref="ISimpleAssignmentOperation" />, with an <see cref="IPropertyReferenceOperation" /> 10931public override IOperation VisitPropertyReference(IPropertyReferenceOperation operation, object? argument) 11443public virtual void VisitPropertyReference(IPropertyReferenceOperation operation) => DefaultVisit(operation); 11582public virtual TResult? VisitPropertyReference(IPropertyReferenceOperation operation, TArgument argument) => DefaultVisit(operation, argument);
Operations\ControlFlowGraphBuilder.cs (12)
6173VisitAndPushArguments(((IPropertyReferenceOperation)memberReference).Arguments, instancePushed: false); 6241var propertyReference = (IPropertyReferenceOperation)originalTarget; 6281if (memberInitializer.InitializedMember is IPropertyReferenceOperation 6301if (lhs is IPropertyReferenceOperation propertyReference) 6390var propertyReference = (IPropertyReferenceOperation)simpleAssignment.Target; 7138public override IOperation VisitPropertyReference(IPropertyReferenceOperation operation, int? captureIdForResult) 7994var propertyReference = (IPropertyReferenceOperation)simpleAssignment.Target; 8086var propertyReference = (IPropertyReferenceOperation)simpleAssignment.Target;
Microsoft.CodeAnalysis.CodeStyle (6)
src\Analyzers\Core\Analyzers\ConvertTypeofToNameof\AbstractConvertTypeOfToNameOfDiagnosticAnalyzer.cs (3)
58if (operation.Parent is not IPropertyReferenceOperation) 64var operationParent = (IPropertyReferenceOperation)operation.Parent;
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
178if (operation is IPropertyReferenceOperation propertyReference)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
62if (simpleAssignment.Target is IPropertyReferenceOperation propertyReference &&
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
141if (Unwrap(operation) is IPropertyReferenceOperation { Member: { } member })
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
443if (variableExpression is IPropertyReferenceOperation propertyOperation)
Microsoft.CodeAnalysis.CSharp (1)
Operations\CSharpOperationFactory.cs (1)
612private IPropertyReferenceOperation CreateBoundPropertyAccessOperation(BoundPropertyAccess boundPropertyAccess)
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
301if (operation is IPropertyReferenceOperation propertyReference &&
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (2)
120var propertyReference = (IPropertyReferenceOperation)context.Operation;
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (1)
45=> operation is IPropertyReferenceOperation propertyRef &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1418if (operation is IPropertyReferenceOperation { Property.RefKind: not RefKind.Ref })
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (3)
240IPropertyReferenceOperation 384Target: IPropertyReferenceOperation { Property: IPropertySymbol property }, 450IPropertyReferenceOperation
Microsoft.CodeAnalysis.CSharp.Features (7)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
301if (operation is IPropertyReferenceOperation propertyReference &&
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (2)
120var propertyReference = (IPropertyReferenceOperation)context.Operation;
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (1)
45=> operation is IPropertyReferenceOperation propertyRef &&
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (3)
240IPropertyReferenceOperation 384Target: IPropertyReferenceOperation { Property: IPropertySymbol property }, 450IPropertyReferenceOperation
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IArgument.cs (1)
4148public override void VisitPropertyReference(IPropertyReferenceOperation operation)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\ObjectAndCollectionInitializerTests.cs (4)
4234var propertyRef = (IPropertyReferenceOperation)model.GetOperation(elementAccess); 4288var propertyRef = (IPropertyReferenceOperation)model.GetOperation(propertyAccess);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1418if (operation is IPropertyReferenceOperation { Property.RefKind: not RefKind.Ref })
Microsoft.CodeAnalysis.Features (9)
src\Analyzers\Core\Analyzers\ConvertTypeofToNameof\AbstractConvertTypeOfToNameOfDiagnosticAnalyzer.cs (3)
58if (operation.Parent is not IPropertyReferenceOperation) 64var operationParent = (IPropertyReferenceOperation)operation.Parent;
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
178if (operation is IPropertyReferenceOperation propertyReference)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
62if (simpleAssignment.Target is IPropertyReferenceOperation propertyReference &&
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
141if (Unwrap(operation) is IPropertyReferenceOperation { Member: { } member })
ValueTracking\ValueTracker.OperationCollector.cs (3)
35IPropertyReferenceOperation => VisitReferenceAsync(operation, cancellationToken), 116IPropertyReferenceOperation); 146IPropertyReferenceOperation propertyReferenceOperation => AddOperationAsync(operation, propertyReferenceOperation.Member, cancellationToken),
Microsoft.CodeAnalysis.Test.Utilities (10)
Compilation\ControlFlowGraphVerifier.cs (1)
1893n.Parent is IPropertyReferenceOperation propertyReference &&
Compilation\OperationTreeVerifier.cs (4)
1097public override void VisitPropertyReference(IPropertyReferenceOperation operation) 1099LogString(nameof(IPropertyReferenceOperation)); 1459var propertyReference = (IPropertyReferenceOperation)simpleAssignment.Target;
Compilation\TestOperationVisitor.cs (3)
703public override void VisitPropertyReference(IPropertyReferenceOperation operation) 1052var propertyReference = (IPropertyReferenceOperation)simpleAssignment.Target;
Diagnostics\OperationTestAnalyzer.cs (2)
1388memberSymbol = ((IPropertyReferenceOperation)operation).Property; 1389receiver = ((IPropertyReferenceOperation)operation).Instance;
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
443if (variableExpression is IPropertyReferenceOperation propertyOperation)