1 instantiation of SourcePropertySymbol
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourcePropertySymbol.cs (1)
80return new SourcePropertySymbol(
60 references to SourcePropertySymbol
Microsoft.CodeAnalysis.CSharp (60)
Binder\Binder_Expressions.cs (2)
1453case MethodSymbol { AssociatedSymbol: SourcePropertySymbol property }: 1460if (contextualAttributeBinder is { AttributeTarget: MethodSymbol { AssociatedSymbol: SourcePropertySymbol property } })
Binder\BinderFactory.BinderFactoryVisitor.cs (6)
289var propertySymbol = GetPropertySymbol((BasePropertyDeclarationSyntax)propertyOrEventDecl, resultBinder); 417var propertySymbol = GetPropertySymbol(parent, resultBinder); 524private SourcePropertySymbol GetPropertySymbol(BasePropertyDeclarationSyntax basePropertyDeclarationSyntax, Binder outerBinder) 530return (SourcePropertySymbol)_memberOpt; 540return (SourcePropertySymbol)GetMemberSymbol(propertyName, basePropertyDeclarationSyntax.Span, container, SymbolKind.Property); 615SourcePropertySymbol property => property.PartialImplementationPart,
Compilation\InitializerSemanticModel.cs (2)
166var property = (SourcePropertySymbol)this.MemberSymbol;
Compilation\SyntaxTreeSemanticModel.cs (3)
1138var propertySymbol = GetDeclaredSymbol(propertyDecl).GetSymbol<SourcePropertySymbol>(); 1806SourcePropertySymbol property => property.PartialImplementationPart,
Compiler\DocumentationCommentCompiler.cs (1)
264SourcePropertySymbol property => property.PartialImplementationPart,
Symbols\MemberSymbolExtensions.cs (3)
553or SourcePropertySymbol { IsPartial: true } 562or SourcePropertySymbol { IsPartialImplementation: true } 571or SourcePropertySymbol { IsPartialDefinition: true }
Symbols\PublicModel\PropertySymbol.cs (1)
117bool IPropertySymbol.IsPartialDefinition => (_underlying as SourcePropertySymbol)?.IsPartialDefinition ?? false;
Symbols\Source\SourceComplexParameterSymbol.cs (2)
477SourcePropertySymbol { PartialImplementationPart.Parameters: { } parameters } => parameters, 498SourcePropertySymbol { PartialDefinitionPart.Parameters: { } parameters } => parameters,
Symbols\Source\SourceMemberContainerSymbol.cs (19)
3643case (SourcePropertySymbol currentProperty, SourcePropertySymbol prevProperty): 3653Debug.Assert(symbol is SourceOrdinaryMethodSymbol or SourcePropertySymbol or SourcePropertyAccessorSymbol); 3654Debug.Assert(prev is SourceOrdinaryMethodSymbol or SourcePropertySymbol or SourcePropertyAccessorSymbol); 3675case SourcePropertySymbol property: 3717void mergePartialProperties(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, ReadOnlyMemory<char> name, SourcePropertySymbol currentProperty, SourcePropertySymbol prevProperty, BindingDiagnosticBag diagnostics) 3720(prevProperty.IsPartialImplementation || (prevProperty.OtherPartOfPartial is SourcePropertySymbol otherImplementation && (object)otherImplementation != currentProperty))) 3725(prevProperty.IsPartialDefinition || (prevProperty.OtherPartOfPartial is SourcePropertySymbol otherDefinition && (object)otherDefinition != currentProperty))) 3762static bool hasInitializer(SourcePropertySymbol property) 3801private static void FixPartialProperty(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, ReadOnlyMemory<char> name, SourcePropertySymbol part1, SourcePropertySymbol part2) 3803SourcePropertySymbol definition; 3804SourcePropertySymbol implementation; 3823SourcePropertySymbol.InitializePartialPropertyParts(definition, implementation); 5036var property = SourcePropertySymbol.Create(this, bodyBinder, propertySyntax, diagnostics); 5161var indexer = SourcePropertySymbol.Create(this, bodyBinder, indexerSyntax, diagnostics);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
471/// This method is analogous to <see cref="SourcePropertySymbol.PartialPropertyChecks" />.
Symbols\Source\SourcePropertyAccessorSymbol.cs (7)
30SourcePropertySymbol property, 67SourcePropertySymbol property, 141SourcePropertySymbol property, 834public sealed override MethodSymbol? PartialImplementationPart => _property is SourcePropertySymbol { IsPartialDefinition: true, OtherPartOfPartial: { } other } 838public sealed override MethodSymbol? PartialDefinitionPart => _property is SourcePropertySymbol { IsPartialImplementation: true, OtherPartOfPartial: { } other } 842internal bool IsPartialDefinition => _property is SourcePropertySymbol { IsPartialDefinition: true }; 843internal bool IsPartialImplementation => _property is SourcePropertySymbol { IsPartialImplementation: true };
Symbols\Source\SourcePropertySymbol.cs (10)
17private SourcePropertySymbol? _otherPartOfPartial; 19internal static SourcePropertySymbol Create(SourceMemberContainerTypeSymbol containingType, Binder bodyBinder, PropertyDeclarationSyntax syntax, BindingDiagnosticBag diagnostics) 26internal static SourcePropertySymbol Create(SourceMemberContainerTypeSymbol containingType, Binder bodyBinder, IndexerDeclarationSyntax syntax, BindingDiagnosticBag diagnostics) 32private static SourcePropertySymbol Create( 682private void PartialPropertyChecks(SourcePropertySymbol implementation, BindingDiagnosticBag diagnostics) 783internal SourcePropertySymbol? OtherPartOfPartial => _otherPartOfPartial; 789internal SourcePropertySymbol? SourcePartialDefinitionPart => IsPartialImplementation ? OtherPartOfPartial : null; 790internal SourcePropertySymbol? SourcePartialImplementationPart => IsPartialDefinition ? OtherPartOfPartial : null; 795internal static void InitializePartialPropertyParts(SourcePropertySymbol definition, SourcePropertySymbol implementation)
Symbols\Source\SourcePropertySymbolBase.cs (2)
105Debug.Assert((modifiers & DeclarationModifiers.Required) == 0 || this is SourcePropertySymbol); 740(this is SourcePropertySymbol { OtherPartOfPartial: { } otherPart } && (otherPart._propertyFlags & flags) != 0);
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
108var property = (_property as SourcePropertySymbol)?.SourcePartialDefinitionPart ?? _property;