1 implementation of Property
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5091public IPropertySymbol Property { get; }
41 references to Property
Microsoft.CodeAnalysis (11)
Operations\ControlFlowGraphBuilder.cs (11)
6131return new PropertyReferenceOperation(propertyReference.Property, propertyReference.ConstrainedToType, propertyArguments, instance, semanticModel: null, propertyReference.Syntax, 6201IOperation visitedTarget = new PropertyReferenceOperation(propertyReference.Property, propertyReference.ConstrainedToType, ImmutableArray<IArgumentOperation>.Empty, visitedPropertyInstance, 6203IOperation visitedValue = visitAndCaptureInitializer(propertyReference.Property, simpleAssignment.Value); 6905operation.Property.ContainingType.IsAnonymousType && 6906operation.Property.ContainingType == _currentImplicitInstance.AnonymousType) 6909if (_currentImplicitInstance.AnonymousTypePropertyValues.TryGetValue(operation.Property, out IOperation? captured)) 6922IOperation? instance = operation.Property.IsStatic ? null : operation.Instance; 6925return new PropertyReferenceOperation(operation.Property, operation.ConstrainedToType, visitedArguments, visitedInstance, semanticModel: null, 7736var property = propertyReference.Property; 7821Debug.Assert(properties.Contains(propertyReference.Property, SymbolEqualityComparer.IgnoreAll)); 7822set.Add(propertyReference.Property);
Microsoft.CodeAnalysis.CodeStyle (3)
AbstractConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
68var parentProperty = operationParent.Property.Name;
SuppressMessageAttributeState.cs (2)
69_suppressMessageAttributeType.Equals(propertyReference.Property.ContainingType)) 71builder.Add((propertyReference.Property.Name, simpleAssignment.Value));
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
SyntaxGeneratorExtensions_Negate.cs (1)
417var property = propertyOperation.Property;
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
CastSimplifier.cs (1)
1242if (operation is IPropertyReferenceOperation { Property.RefKind: not RefKind.Ref })
CSharpMakeStructMemberReadOnlyAnalyzer.cs (2)
190if (propertyReference.Property.GetMethod is null || 191!propertyReference.Property.GetMethod.IsReadOnly)
CSharpUseIndexOperatorDiagnosticAnalyzer.cs (2)
123if (!propertyReference.Property.IsIndexer) 132propertyReference.Property.GetMethod,
Helpers.cs (1)
44lengthLikeProperty.Equals(propertyRef.Property) &&
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
ConvertToRecordHelpers.cs (3)
241Property: IPropertySymbol referencedProperty 382Target: IPropertyReferenceOperation { Property: IPropertySymbol property }, 449{ Instance: IInstanceReferenceOperation, Property: IPropertySymbol property }
Microsoft.CodeAnalysis.CSharp.Features (8)
ConvertToRecordHelpers.cs (3)
241Property: IPropertySymbol referencedProperty 382Target: IPropertyReferenceOperation { Property: IPropertySymbol property }, 449{ Instance: IInstanceReferenceOperation, Property: IPropertySymbol property }
CSharpMakeStructMemberReadOnlyAnalyzer.cs (2)
190if (propertyReference.Property.GetMethod is null || 191!propertyReference.Property.GetMethod.IsReadOnly)
CSharpUseIndexOperatorDiagnosticAnalyzer.cs (2)
123if (!propertyReference.Property.IsIndexer) 132propertyReference.Property.GetMethod,
J\s\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs\Helpers.cs (1)
44lengthLikeProperty.Equals(propertyRef.Property) &&
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IArgument.cs (1)
4144var indexerSymbol = operation.Property;
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CastSimplifier.cs (1)
1242if (operation is IPropertyReferenceOperation { Property.RefKind: not RefKind.Ref })
Microsoft.CodeAnalysis.Features (3)
AbstractConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
68var parentProperty = operationParent.Property.Name;
SuppressMessageAttributeState.cs (2)
69_suppressMessageAttributeType.Equals(propertyReference.Property.ContainingType)) 71builder.Add((propertyReference.Property.Name, simpleAssignment.Value));
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\OperationTreeVerifier.cs (1)
1091LogString($": {operation.Property.ToTestDisplayString()}");
Compilation\TestOperationVisitor.cs (1)
690Assert.Same(operation.Member, operation.Property);
Diagnostics\OperationTestAnalyzer.cs (1)
1388memberSymbol = ((IPropertyReferenceOperation)operation).Property;
Microsoft.CodeAnalysis.Workspaces (1)
SyntaxGeneratorExtensions_Negate.cs (1)
417var property = propertyOperation.Property;