1 implementation of Property
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5464public IPropertySymbol Property { get; }
62 references to Property
ILLink.RoslynAnalyzer (3)
DataFlow\FeatureChecksVisitor.cs (1)
53 if (analyzer.IsFeatureGuard (operation.Property, _dataFlowAnalyzerContext.Compilation)) {
DataFlow\LocalDataFlowVisitor.cs (2)
262 IMethodSymbol? setMethod = propertyRef.Property.GetSetMethod (); 611 IMethodSymbol? getMethod = operation.Property.GetGetMethod ();
Microsoft.Analyzers.Extra (4)
AsyncCallInsideUsingBlockAnalyzer.cs (1)
204return operation.Property.Name is "Result";
CallAnalysis\CallAnalyzer.Handlers.cs (1)
103if (_state.Props.TryGetValue(op.Property, out var handlers))
ConditionalAccessAnalyzer.cs (2)
42if (MaybeNull(propRef.Property.GetAttributes())) 48type = propRef.Property.Type;
Microsoft.Analyzers.Local (2)
CallAnalysis\CallAnalyzer.Handlers.cs (1)
103if (_state.Props.TryGetValue(op.Property, out var handlers))
CallAnalysis\ToInvariantString.cs (1)
49if (SymbolEqualityComparer.Default.Equals(invariantCulture, prop.Property))
Microsoft.AspNetCore.Analyzers (3)
OptionsAnalyzer.cs (3)
30property.Property?.ContainingType?.Name != null && 31property.Property.ContainingType.Name.EndsWith("Options", StringComparison.Ordinal)) 33options.Add(new OptionsItem(property.Property, operation.Value.ConstantValue.Value));
Microsoft.AspNetCore.App.Analyzers (5)
Authorization\AddAuthorizationBuilderAnalyzer.cs (4)
147if (expressionStatementOperation is ISimpleAssignmentOperation { Target: IPropertyReferenceOperation { Property.ContainingType: { } propertyReferenceContainingType } } 176var property = propertyReferenceOperation.Property; 180&& SymbolEqualityComparer.Default.Equals(property, targetProperty.Property)) 185&& SymbolEqualityComparer.Default.Equals(property, valueProperty.Property))
Http\HeaderDictionaryIndexerAnalyzer.cs (1)
25var property = propertyReference.Property;
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
ActualApiResponseMetadataFactory.cs (1)
170var property = propertyReference.Property;
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs (1)
188if (propertyReference.Property.Name != "IsValid")
Microsoft.CodeAnalysis (11)
Operations\ControlFlowGraphBuilder.cs (11)
6244return new PropertyReferenceOperation(propertyReference.Property, propertyReference.ConstrainedToType, propertyArguments, instance, semanticModel: null, propertyReference.Syntax, 6400IOperation visitedTarget = new PropertyReferenceOperation(propertyReference.Property, propertyReference.ConstrainedToType, ImmutableArray<IArgumentOperation>.Empty, visitedPropertyInstance, 6402IOperation visitedValue = visitAndCaptureInitializer(propertyReference.Property, simpleAssignment.Value); 7143operation.Property.ContainingType.IsAnonymousType && 7144operation.Property.ContainingType == _currentImplicitInstance.AnonymousType) 7147if (_currentImplicitInstance.AnonymousTypePropertyValues.TryGetValue(operation.Property, out IOperation? captured)) 7160IOperation? instance = operation.Property.IsStatic ? null : operation.Instance; 7163return new PropertyReferenceOperation(operation.Property, operation.ConstrainedToType, visitedArguments, visitedInstance, semanticModel: null, 8002var property = propertyReference.Property; 8087Debug.Assert(properties.Contains(propertyReference.Property, SymbolEqualityComparer.IgnoreAll)); 8088set.Add(propertyReference.Property);
Microsoft.CodeAnalysis.CodeStyle (3)
src\Analyzers\Core\Analyzers\ConvertTypeofToNameof\AbstractConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
65var parentProperty = operationParent.Property.Name;
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (2)
63_suppressMessageAttributeType.Equals(propertyReference.Property.ContainingType)) 65builder.Add((propertyReference.Property.Name, simpleAssignment.Value));
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
445var property = propertyOperation.Property;
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (2)
310if (propertyReference.Property.GetMethod is null || 311!propertyReference.Property.GetMethod.IsReadOnly)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (2)
123if (!propertyReference.Property.IsIndexer) 132propertyReference.Property.GetMethod,
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (1)
47lengthLikeProperty.Equals(propertyRef.Property) &&
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)
243Property: IPropertySymbol referencedProperty 384Target: IPropertyReferenceOperation { Property: IPropertySymbol property }, 451{ Instance: IInstanceReferenceOperation, Property: IPropertySymbol property }
Microsoft.CodeAnalysis.CSharp.Features (8)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (2)
310if (propertyReference.Property.GetMethod is null || 311!propertyReference.Property.GetMethod.IsReadOnly)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (2)
123if (!propertyReference.Property.IsIndexer) 132propertyReference.Property.GetMethod,
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (1)
47lengthLikeProperty.Equals(propertyRef.Property) &&
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (3)
243Property: IPropertySymbol referencedProperty 384Target: IPropertyReferenceOperation { Property: IPropertySymbol property }, 451{ Instance: IInstanceReferenceOperation, Property: IPropertySymbol property }
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IArgument.cs (1)
4156var indexerSymbol = operation.Property;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\ObjectAndCollectionInitializerTests.cs (2)
4235AssertEx.Equal(symbolInfo.Symbol.ToTestDisplayString(), propertyRef.Property.ToTestDisplayString()); 4289AssertEx.Equal(symbolInfo.Symbol.ToTestDisplayString(), propertyRef.Property.ToTestDisplayString());
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 (3)
src\Analyzers\Core\Analyzers\ConvertTypeofToNameof\AbstractConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
65var parentProperty = operationParent.Property.Name;
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (2)
63_suppressMessageAttributeType.Equals(propertyReference.Property.ContainingType)) 65builder.Add((propertyReference.Property.Name, simpleAssignment.Value));
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\OperationTreeVerifier.cs (1)
1100LogString($": {operation.Property.ToTestDisplayString()}");
Compilation\TestOperationVisitor.cs (1)
708Assert.Same(operation.Member, operation.Property);
Diagnostics\OperationTestAnalyzer.cs (1)
1388memberSymbol = ((IPropertyReferenceOperation)operation).Property;
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
445var property = propertyOperation.Property;