1 instantiation of SourcePropertySymbol
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourcePropertySymbol.cs (1)
80
return new
SourcePropertySymbol
(
61 references to SourcePropertySymbol
Microsoft.CodeAnalysis.CSharp (61)
Binder\Binder_Expressions.cs (2)
1453
case MethodSymbol { AssociatedSymbol:
SourcePropertySymbol
property }:
1460
if (contextualAttributeBinder is { AttributeTarget: MethodSymbol { AssociatedSymbol:
SourcePropertySymbol
property } })
Binder\BinderFactory.BinderFactoryVisitor.cs (6)
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);
615
SourcePropertySymbol
property => property.PartialImplementationPart,
Compilation\InitializerSemanticModel.cs (2)
166
var
property = (
SourcePropertySymbol
)this.MemberSymbol;
Compilation\SyntaxTreeSemanticModel.cs (3)
1138
var
propertySymbol = GetDeclaredSymbol(propertyDecl).GetSymbol<
SourcePropertySymbol
>();
1806
SourcePropertySymbol
property => property.PartialImplementationPart,
Compiler\DocumentationCommentCompiler.cs (1)
264
SourcePropertySymbol
property => property.PartialImplementationPart,
FlowAnalysis\NullableWalker.cs (1)
974
=> requiredMember is
SourcePropertySymbol
{ IsAutoProperty: true } prop ? prop.BackingField : requiredMember;
Symbols\MemberSymbolExtensions.cs (3)
553
or
SourcePropertySymbol
{ IsPartial: true }
562
or
SourcePropertySymbol
{ IsPartialImplementation: true }
571
or
SourcePropertySymbol
{ IsPartialDefinition: true }
Symbols\PublicModel\PropertySymbol.cs (1)
117
bool IPropertySymbol.IsPartialDefinition => (_underlying as
SourcePropertySymbol
)?.IsPartialDefinition ?? false;
Symbols\Source\SourceComplexParameterSymbol.cs (2)
476
SourcePropertySymbol
{ PartialImplementationPart.Parameters: { } parameters } => parameters,
497
SourcePropertySymbol
{ PartialDefinitionPart.Parameters: { } parameters } => parameters,
Symbols\Source\SourceMemberContainerSymbol.cs (19)
3629
case (
SourcePropertySymbol
currentProperty,
SourcePropertySymbol
prevProperty):
3639
Debug.Assert(symbol is SourceOrdinaryMethodSymbol or
SourcePropertySymbol
or SourcePropertyAccessorSymbol);
3640
Debug.Assert(prev is SourceOrdinaryMethodSymbol or
SourcePropertySymbol
or SourcePropertyAccessorSymbol);
3661
case
SourcePropertySymbol
property:
3703
void mergePartialProperties(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, ReadOnlyMemory<char> name,
SourcePropertySymbol
currentProperty,
SourcePropertySymbol
prevProperty, BindingDiagnosticBag diagnostics)
3706
(prevProperty.IsPartialImplementation || (prevProperty.OtherPartOfPartial is
SourcePropertySymbol
otherImplementation && (object)otherImplementation != currentProperty)))
3711
(prevProperty.IsPartialDefinition || (prevProperty.OtherPartOfPartial is
SourcePropertySymbol
otherDefinition && (object)otherDefinition != currentProperty)))
3748
static bool hasInitializer(
SourcePropertySymbol
property)
3787
private static void FixPartialProperty(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, ReadOnlyMemory<char> name,
SourcePropertySymbol
part1,
SourcePropertySymbol
part2)
3789
SourcePropertySymbol
definition;
3790
SourcePropertySymbol
implementation;
3809
SourcePropertySymbol
.InitializePartialPropertyParts(definition, implementation);
5022
var
property =
SourcePropertySymbol
.Create(this, bodyBinder, propertySyntax, diagnostics);
5147
var
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)
30
SourcePropertySymbol
property,
67
SourcePropertySymbol
property,
141
SourcePropertySymbol
property,
834
public sealed override MethodSymbol? PartialImplementationPart => _property is
SourcePropertySymbol
{ IsPartialDefinition: true, OtherPartOfPartial: { } other }
838
public sealed override MethodSymbol? PartialDefinitionPart => _property is
SourcePropertySymbol
{ IsPartialImplementation: true, OtherPartOfPartial: { } other }
842
internal bool IsPartialDefinition => _property is
SourcePropertySymbol
{ IsPartialDefinition: true };
843
internal bool IsPartialImplementation => _property is
SourcePropertySymbol
{ IsPartialImplementation: true };
Symbols\Source\SourcePropertySymbol.cs (10)
17
private
SourcePropertySymbol
? _otherPartOfPartial;
19
internal static
SourcePropertySymbol
Create(SourceMemberContainerTypeSymbol containingType, Binder bodyBinder, PropertyDeclarationSyntax syntax, BindingDiagnosticBag diagnostics)
26
internal static
SourcePropertySymbol
Create(SourceMemberContainerTypeSymbol containingType, Binder bodyBinder, IndexerDeclarationSyntax syntax, BindingDiagnosticBag diagnostics)
32
private static
SourcePropertySymbol
Create(
682
private void PartialPropertyChecks(
SourcePropertySymbol
implementation, BindingDiagnosticBag diagnostics)
783
internal
SourcePropertySymbol
? OtherPartOfPartial => _otherPartOfPartial;
789
internal
SourcePropertySymbol
? SourcePartialDefinitionPart => IsPartialImplementation ? OtherPartOfPartial : null;
790
internal
SourcePropertySymbol
? SourcePartialImplementationPart => IsPartialDefinition ? OtherPartOfPartial : null;
795
internal static void InitializePartialPropertyParts(
SourcePropertySymbol
definition,
SourcePropertySymbol
implementation)
Symbols\Source\SourcePropertySymbolBase.cs (2)
105
Debug.Assert((modifiers & DeclarationModifiers.Required) == 0 || this is
SourcePropertySymbol
);
740
(this is
SourcePropertySymbol
{ OtherPartOfPartial: { } otherPart } && (otherPart._propertyFlags & flags) != 0);
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
108
var property = (_property as
SourcePropertySymbol
)?.SourcePartialDefinitionPart ?? _property;