1 instantiation of SourcePropertySymbol
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourcePropertySymbol.cs (1)
80
return new
SourcePropertySymbol
(
59 references to SourcePropertySymbol
Microsoft.CodeAnalysis.CSharp (59)
Binder\Binder_Expressions.cs (2)
1495
case MethodSymbol { AssociatedSymbol:
SourcePropertySymbol
property }:
1508
if (contextualAttributeBinder is { AttributeTarget: MethodSymbol { AssociatedSymbol:
SourcePropertySymbol
property } })
Binder\BinderFactory.BinderFactoryVisitor.cs (5)
289
var
propertySymbol = GetPropertySymbol((BasePropertyDeclarationSyntax)propertyOrEventDecl, resultBinder);
417
var
propertySymbol = GetPropertySymbol(parent, resultBinder);
524
private
SourcePropertySymbol
GetPropertySymbol(BasePropertyDeclarationSyntax basePropertyDeclarationSyntax, Binder outerBinder)
530
return (
SourcePropertySymbol
)_memberOpt;
540
return (
SourcePropertySymbol
)GetMemberSymbol(propertyName, basePropertyDeclarationSyntax.Span, container, SymbolKind.Property);
Compilation\InitializerSemanticModel.cs (2)
166
var
property = (
SourcePropertySymbol
)this.MemberSymbol;
Compilation\SyntaxTreeSemanticModel.cs (2)
1138
var
propertySymbol = GetDeclaredSymbol(propertyDecl).GetSymbol<
SourcePropertySymbol
>();
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (1)
164
if (UnderlyingMethod is SourcePropertyAccessorSymbol { AssociatedSymbol:
SourcePropertySymbol
property })
Symbols\MemberSymbolExtensions.cs (5)
799
or
SourcePropertySymbol
{ IsPartial: true }
811
or
SourcePropertySymbol
{ IsPartialImplementation: true }
823
or
SourcePropertySymbol
{ IsPartialDefinition: true }
837
SourcePropertySymbol
property => property.PartialImplementationPart,
849
SourcePropertySymbol
property => property.PartialDefinitionPart,
Symbols\PublicModel\PropertySymbol.cs (1)
117
bool IPropertySymbol.IsPartialDefinition => (_underlying as
SourcePropertySymbol
)?.IsPartialDefinition ?? false;
Symbols\Source\SourceMemberContainerSymbol.cs (20)
4206
case (
SourcePropertySymbol
currentProperty,
SourcePropertySymbol
prevProperty):
4223
Debug.Assert(symbol is SourceOrdinaryMethodSymbol or
SourcePropertySymbol
or SourcePropertyAccessorSymbol or SourceEventAccessorSymbol);
4224
Debug.Assert(prev is SourceOrdinaryMethodSymbol or
SourcePropertySymbol
or SourcePropertyAccessorSymbol or SourceEventAccessorSymbol);
4258
case
SourcePropertySymbol
property:
4312
if (symbol is
SourcePropertySymbol
{ OtherPartOfPartial: null } property)
4338
static void mergePartialProperties(ArrayBuilder<Symbol> nonTypeMembers,
SourcePropertySymbol
currentProperty,
SourcePropertySymbol
prevProperty, BindingDiagnosticBag diagnostics)
4341
(prevProperty.IsPartialImplementation || (prevProperty.OtherPartOfPartial is
SourcePropertySymbol
otherImplementation && (object)otherImplementation != currentProperty)))
4346
(prevProperty.IsPartialDefinition || (prevProperty.OtherPartOfPartial is
SourcePropertySymbol
otherDefinition && (object)otherDefinition != currentProperty)))
4381
static bool hasInitializer(
SourcePropertySymbol
property)
4465
private static void FixPartialProperty(ArrayBuilder<Symbol> nonTypeMembers,
SourcePropertySymbol
part1,
SourcePropertySymbol
part2)
4467
SourcePropertySymbol
definition;
4468
SourcePropertySymbol
implementation;
4486
SourcePropertySymbol
.InitializePartialPropertyParts(definition, implementation);
5908
var
property =
SourcePropertySymbol
.Create(this, bodyBinder, propertySyntax, diagnostics);
6029
var
indexer =
SourcePropertySymbol
.Create(this, bodyBinder, indexerSyntax, diagnostics);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
503
/// This method is analogous to <see cref="
SourcePropertySymbol
.PartialPropertyChecks" />.
Symbols\Source\SourcePropertyAccessorSymbol.cs (7)
31
SourcePropertySymbol
property,
68
SourcePropertySymbol
property,
167
SourcePropertySymbol
property,
860
public sealed override MethodSymbol? PartialImplementationPart => _property is
SourcePropertySymbol
{ IsPartialDefinition: true, OtherPartOfPartial: { } other }
864
public sealed override MethodSymbol? PartialDefinitionPart => _property is
SourcePropertySymbol
{ IsPartialImplementation: true, OtherPartOfPartial: { } other }
868
internal bool IsPartialDefinition => _property is
SourcePropertySymbol
{ IsPartialDefinition: true };
869
internal bool IsPartialImplementation => _property is
SourcePropertySymbol
{ IsPartialImplementation: true };
Symbols\Source\SourcePropertySymbol.cs (10)
18
private
SourcePropertySymbol
? _otherPartOfPartial;
20
internal static
SourcePropertySymbol
Create(SourceMemberContainerTypeSymbol containingType, Binder bodyBinder, PropertyDeclarationSyntax syntax, BindingDiagnosticBag diagnostics)
27
internal static
SourcePropertySymbol
Create(SourceMemberContainerTypeSymbol containingType, Binder bodyBinder, IndexerDeclarationSyntax syntax, BindingDiagnosticBag diagnostics)
33
private static
SourcePropertySymbol
Create(
726
private void PartialPropertyChecks(
SourcePropertySymbol
implementation, BindingDiagnosticBag diagnostics)
845
internal
SourcePropertySymbol
? OtherPartOfPartial => _otherPartOfPartial;
851
internal
SourcePropertySymbol
? SourcePartialDefinitionPart => IsPartialImplementation ? OtherPartOfPartial : null;
852
internal
SourcePropertySymbol
? SourcePartialImplementationPart => IsPartialDefinition ? OtherPartOfPartial : null;
857
internal static void InitializePartialPropertyParts(
SourcePropertySymbol
definition,
SourcePropertySymbol
implementation)
Symbols\Source\SourcePropertySymbolBase.cs (2)
108
Debug.Assert((modifiers & DeclarationModifiers.Required) == 0 || this is
SourcePropertySymbol
);
767
(this is
SourcePropertySymbol
{ OtherPartOfPartial: { } otherPart } && (otherPart._propertyFlags & flags) != 0);
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
112
var property = (_property as
SourcePropertySymbol
)?.SourcePartialDefinitionPart ?? _property;