1 instantiation of SourcePropertySymbol
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourcePropertySymbol.cs (1)
67return new SourcePropertySymbol(
68 references to SourcePropertySymbol
Microsoft.CodeAnalysis.CSharp (21)
Binder\BinderFactory.BinderFactoryVisitor.cs (5)
283var propertySymbol = GetPropertySymbol((BasePropertyDeclarationSyntax)propertyOrEventDecl, resultBinder); 404var propertySymbol = GetPropertySymbol(parent, resultBinder); 507private SourcePropertySymbol GetPropertySymbol(BasePropertyDeclarationSyntax basePropertyDeclarationSyntax, Binder outerBinder) 513return (SourcePropertySymbol)_memberOpt; 523return (SourcePropertySymbol)GetMemberSymbol(propertyName, basePropertyDeclarationSyntax.Span, container, SymbolKind.Property);
Compilation\InitializerSemanticModel.cs (2)
166var property = (SourcePropertySymbol)this.MemberSymbol;
Compilation\SyntaxTreeSemanticModel.cs (2)
1134var propertySymbol = GetDeclaredSymbol(propertyDecl).GetSymbol<SourcePropertySymbol>();
FlowAnalysis\NullableWalker.cs (1)
1042=> requiredMember is SourcePropertySymbol { IsAutoPropertyWithGetAccessor: true } prop ? prop.BackingField : requiredMember;
Symbols\Source\SourceMemberContainerSymbol.cs (4)
4753var property = SourcePropertySymbol.Create(this, bodyBinder, propertySyntax, diagnostics); 4878var indexer = SourcePropertySymbol.Create(this, bodyBinder, indexerSyntax, diagnostics);
Symbols\Source\SourcePropertyAccessorSymbol.cs (3)
31SourcePropertySymbol property, 68SourcePropertySymbol property, 145SourcePropertySymbol property,
Symbols\Source\SourcePropertySymbol.cs (3)
16internal static SourcePropertySymbol Create(SourceMemberContainerTypeSymbol containingType, Binder bodyBinder, PropertyDeclarationSyntax syntax, BindingDiagnosticBag diagnostics) 23internal static SourcePropertySymbol Create(SourceMemberContainerTypeSymbol containingType, Binder bodyBinder, IndexerDeclarationSyntax syntax, BindingDiagnosticBag diagnostics) 29private static SourcePropertySymbol Create(
Symbols\Source\SourcePropertySymbolBase.cs (1)
92Debug.Assert((modifiers & DeclarationModifiers.Required) == 0 || this is SourcePropertySymbol);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (21)
BreakingChanges.cs (4)
114var derivedProperty1 = derivedClass.GetMember<SourcePropertySymbol>("Property1"); 115var derivedProperty2 = derivedClass.GetMember<SourcePropertySymbol>("Property2");
Emit\EditAndContinue\SymbolMatcherTests.cs (2)
1682var member1 = compilation1.GetMember<SourcePropertySymbol>("R.X");
Emit\EmitMetadataTests.cs (15)
946var p = type.GetMember<SourcePropertySymbol>("P"); 952var q = type.GetMember<SourcePropertySymbol>("Q"); 958var r = type.GetMember<SourcePropertySymbol>("R"); 964var s = type.GetMember<SourcePropertySymbol>("S"); 1023var q = type.GetMember<SourcePropertySymbol>("Q"); 1029var r = type.GetMember<SourcePropertySymbol>("R"); 1035var s = type.GetMember<SourcePropertySymbol>("T"); 1295if (property is SourcePropertySymbol sourceProperty)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\ExpressionBodiedMemberTests.cs (4)
124var sym = Assert.IsType<SourcePropertySymbol>(info.Symbol.GetSymbol()); 126Assert.Equal(c.GetMember<SourcePropertySymbol>("P"), sym); 211Assert.IsType<SourcePropertySymbol>(prop);
Semantics\InitOnlyMemberTests.cs (1)
4758var modifier = ((SourcePropertySymbol)comp.GlobalNamespace.GetMember("C.Property")).SetMethod.ReturnTypeWithAnnotations.CustomModifiers.Single();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (21)
Symbols\IndexerTests.cs (2)
2863var unsubstitutedIndexer = unsubstitutedType.GetMember<SourcePropertySymbol>(WellKnownMemberNames.Indexer);
Symbols\Source\ExpressionBodiedPropertyTests.cs (19)
259var p = c.GetMember<SourcePropertySymbol>("P"); 265var indexer = c.GetMember<SourcePropertySymbol>("this[]"); 390var iP = i.GetMember<SourcePropertySymbol>("P"); 392var prop = c.GetMember<SourcePropertySymbol>("P"); 397prop = (SourcePropertySymbol)c.GetProperty("I.Q"); 401prop = (SourcePropertySymbol)c.GetProperty("J.Q"); 405prop = c.GetMember<SourcePropertySymbol>("D"); 506var p = c.GetMember<SourcePropertySymbol>("P"); 529var p = c.GetMember<SourcePropertySymbol>("P"); 556var p = c.GetMember<SourcePropertySymbol>("this[]"); 584var p = c.GetMember<SourcePropertySymbol>("this[]");