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