53 references to GetPublicSymbol
Microsoft.CodeAnalysis.CSharp (17)
Compilation\MemberSemanticModel.cs (3)
921isCompleted: awaitableInfo.IsCompleted.GetPublicSymbol(), 981currentProperty: ((PropertySymbol)enumeratorInfoOpt.CurrentPropertyGetter?.AssociatedSymbol).GetPublicSymbol(), 1087return AnonymousTypeManager.GetAnonymousTypeProperty(anonymousType, index).GetPublicSymbol();
Compilation\SyntaxTreeSemanticModel.cs (2)
1538return ((PropertySymbol)GetDeclaredMemberSymbol(declarationSyntax)).GetPublicSymbol(); 1549return ((PropertySymbol)GetDeclaredMemberSymbol(declarationSyntax)).GetPublicSymbol();
Operations\CSharpOperationFactory.cs (8)
613IPropertySymbol property = boundPropertyAccess.PropertySymbol.GetPublicSymbol(); 637return new PropertyReferenceOperation(property.GetPublicSymbol(), constrainedToType.GetPublicSymbol(), arguments, instance, _semanticModel, syntax, type, isImplicit); 894return new PropertyReferenceOperation(property.GetPublicSymbol(), constrainedToType: null, arguments, createReceiver(), _semanticModel, syntax, type, isImplicit); 1581var lengthSymbol = Binder.GetPropertySymbol(boundIndexerAccess.LengthOrCountAccess, out _, out _).GetPublicSymbol(); 1657ImmutableArray<IPropertySymbol> initializedProperties = ImmutableArray.Create<IPropertySymbol>(boundPropertyEqualsValue.Property.GetPublicSymbol()); 1796((PropertySymbol)enumeratorInfoOpt.CurrentPropertyGetter.AssociatedSymbol).GetPublicSymbol(), 2504lengthSymbol: Binder.GetPropertySymbol(boundNode.LengthAccess, out _, out _).GetPublicSymbol(), 2762reference = new PropertyReferenceOperation(property.GetPublicSymbol(), constrainedToType: null, ImmutableArray<IArgumentOperation>.Empty,
Operations\CSharpOperationFactory_Methods.cs (2)
361property.GetPublicSymbol(), 373target = new PropertyReferenceOperation(anonymousProperty.Property.GetPublicSymbol(),
Symbols\PublicModel\PropertySymbol.cs (2)
65return _underlying.OriginalDefinition.GetPublicSymbol(); 71get { return _underlying.OverriddenProperty.GetPublicSymbol(); }
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (9)
CodeGen\CodeGenAwaitUsingTests.cs (9)
1634var first = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), isCompleted1.GetPublicSymbol(), getResult1.GetPublicSymbol(), false); 1636var nulls1 = new AwaitExpressionInfo(null, isCompleted1.GetPublicSymbol(), getResult1.GetPublicSymbol(), false); 1638var nulls3 = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), isCompleted1.GetPublicSymbol(), null, false); 1639var nulls4 = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), isCompleted1.GetPublicSymbol(), null, true); 1662var second1 = new AwaitExpressionInfo(getAwaiter2.GetPublicSymbol(), isCompleted1.GetPublicSymbol(), getResult1.GetPublicSymbol(), false); 1663var second2 = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), isCompleted2.GetPublicSymbol(), getResult1.GetPublicSymbol(), false); 1664var second3 = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), isCompleted1.GetPublicSymbol(), getResult2.GetPublicSymbol(), false); 1665var second4 = new AwaitExpressionInfo(getAwaiter2.GetPublicSymbol(), isCompleted2.GetPublicSymbol(), getResult2.GetPublicSymbol(), false); 1680var another = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), isCompleted1.GetPublicSymbol(), getResult1.GetPublicSymbol(), false);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (21)
Semantics\InitOnlyMemberTests.cs (17)
48IPropertySymbol publicProperty = property.GetPublicSymbol(); 414Assert.False(property.GetPublicSymbol().SetMethod.IsInitOnly); 418Assert.True(property2.GetPublicSymbol().SetMethod.IsInitOnly); 422Assert.True(property3.GetPublicSymbol().SetMethod.IsInitOnly); 611Assert.False(property.GetPublicSymbol().GetMethod.IsInitOnly); 613Assert.True(property.GetPublicSymbol().SetMethod.IsInitOnly); 642Assert.False(property.GetPublicSymbol().GetMethod.IsInitOnly); 644Assert.True(property.GetPublicSymbol().SetMethod.IsInitOnly); 901Assert.False(property.GetPublicSymbol().GetMethod.IsInitOnly); 903Assert.True(property.GetPublicSymbol().SetMethod.IsInitOnly); 1156Assert.False(property.GetPublicSymbol().GetMethod.IsInitOnly); 1158Assert.False(property.GetPublicSymbol().SetMethod.IsInitOnly); 3815Assert.False(property0.GetPublicSymbol().SetMethod.IsInitOnly); 3903Assert.False(property0.GetPublicSymbol().SetMethod.IsInitOnly); 3992Assert.False(property0.GetPublicSymbol().SetMethod.IsInitOnly); 4053Assert.False(property.GetPublicSymbol().GetMethod.IsInitOnly); 4057Assert.False(property.GetPublicSymbol().SetMethod.IsInitOnly);
Semantics\LookupTests.cs (4)
1729Assert.Equal(propertyLP.GetPublicSymbol(), model.GetSymbolInfo(syntaxes[0]).Symbol); 1730Assert.Equal(propertyRQ.GetPublicSymbol(), model.GetSymbolInfo(syntaxes[1]).Symbol); 1736Assert.Equal(propertyLP.GetPublicSymbol(), model.LookupSymbols(position, interfaceB.GetPublicSymbol(), "P").Single()); 1737Assert.Equal(propertyRQ.GetPublicSymbol(), model.LookupSymbols(position, interfaceB.GetPublicSymbol(), "Q").Single());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Compilation\GetSemanticInfoTests.cs (3)
1417var indexerSymbol = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").Indexers.Where(i => i.ParameterCount == 1).Single().GetPublicSymbol(); 1455var indexerSymbol1 = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").Indexers.Where(i => i.ParameterCount == 1).Single().GetPublicSymbol(); 1456var indexerSymbol2 = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").Indexers.Where(i => i.ParameterCount == 2).Single().GetPublicSymbol();
SymbolDisplay\SymbolDisplayTests.cs (1)
8236var propertySymbol = comp.GetMember<PropertySymbol>("C.Prop").GetPublicSymbol();
Symbols\IndexerTests.cs (1)
1296Assert.Equal(baseIndexer.GetPublicSymbol(), symbolInfo.Symbol);
Symbols\RequiredMembersTests.cs (1)
5514var property = c.GetProperty("Property").GetPublicSymbol();