61 references to GetPublicSymbol
Microsoft.CodeAnalysis.CSharp (19)
Compilation\MemberSemanticModel.cs (3)
932isCompleted: awaitableInfo.IsCompleted.GetPublicSymbol(), 991currentProperty: ((PropertySymbol)enumeratorInfoOpt.CurrentPropertyGetter?.AssociatedSymbol).GetPublicSymbol(), 1097return AnonymousTypeManager.GetAnonymousTypeProperty(anonymousType, index).GetPublicSymbol();
Compilation\SyntaxTreeSemanticModel.cs (2)
1562return ((PropertySymbol)GetDeclaredMemberSymbol(declarationSyntax)).GetPublicSymbol(); 1573return ((PropertySymbol)GetDeclaredMemberSymbol(declarationSyntax)).GetPublicSymbol();
Operations\CSharpOperationFactory.cs (8)
616IPropertySymbol property = boundPropertyAccess.PropertySymbol.GetPublicSymbol(); 640return new PropertyReferenceOperation(property.GetPublicSymbol(), constrainedToType.GetPublicSymbol(), arguments, instance, _semanticModel, syntax, type, isImplicit); 900return new PropertyReferenceOperation(property.GetPublicSymbol(), constrainedToType: null, arguments, createReceiver(), _semanticModel, syntax, type, isImplicit); 1648var lengthSymbol = Binder.GetPropertySymbol(boundIndexerAccess.LengthOrCountAccess, out _, out _).GetPublicSymbol(); 1735ImmutableArray<IPropertySymbol> initializedProperties = ImmutableArray.Create<IPropertySymbol>(boundPropertyEqualsValue.Property.GetPublicSymbol()); 1903((PropertySymbol)enumeratorInfoOpt.CurrentPropertyGetter.AssociatedSymbol).GetPublicSymbol(), 2621lengthSymbol: Binder.GetPropertySymbol(boundNode.LengthAccess, out _, out _).GetPublicSymbol(), 2907reference = new PropertyReferenceOperation(property.GetPublicSymbol(), constrainedToType: null, ImmutableArray<IArgumentOperation>.Empty,
Operations\CSharpOperationFactory_Methods.cs (2)
441property.GetPublicSymbol(), 453target = new PropertyReferenceOperation(anonymousProperty.Property.GetPublicSymbol(),
Symbols\PublicModel\PropertySymbol.cs (4)
65return _underlying.OriginalDefinition.GetPublicSymbol(); 71get { return _underlying.OverriddenProperty.GetPublicSymbol(); } 113IPropertySymbol? IPropertySymbol.PartialDefinitionPart => _underlying.PartialDefinitionPart.GetPublicSymbol(); 115IPropertySymbol? IPropertySymbol.PartialImplementationPart => _underlying.PartialImplementationPart.GetPublicSymbol();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (9)
CodeGen\CodeGenAwaitUsingTests.cs (9)
2296var first = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), isCompleted1.GetPublicSymbol(), getResult1.GetPublicSymbol(), false); 2298var nulls1 = new AwaitExpressionInfo(null, isCompleted1.GetPublicSymbol(), getResult1.GetPublicSymbol(), false); 2300var nulls3 = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), isCompleted1.GetPublicSymbol(), null, false); 2301var nulls4 = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), isCompleted1.GetPublicSymbol(), null, true); 2324var second1 = new AwaitExpressionInfo(getAwaiter2.GetPublicSymbol(), isCompleted1.GetPublicSymbol(), getResult1.GetPublicSymbol(), false); 2325var second2 = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), isCompleted2.GetPublicSymbol(), getResult1.GetPublicSymbol(), false); 2326var second3 = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), isCompleted1.GetPublicSymbol(), getResult2.GetPublicSymbol(), false); 2327var second4 = new AwaitExpressionInfo(getAwaiter2.GetPublicSymbol(), isCompleted2.GetPublicSymbol(), getResult2.GetPublicSymbol(), false); 2342var another = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), isCompleted1.GetPublicSymbol(), getResult1.GetPublicSymbol(), false);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (21)
Semantics\InitOnlyMemberTests.cs (17)
50IPropertySymbol publicProperty = property.GetPublicSymbol(); 416Assert.False(property.GetPublicSymbol().SetMethod.IsInitOnly); 420Assert.True(property2.GetPublicSymbol().SetMethod.IsInitOnly); 424Assert.True(property3.GetPublicSymbol().SetMethod.IsInitOnly); 613Assert.False(property.GetPublicSymbol().GetMethod.IsInitOnly); 615Assert.True(property.GetPublicSymbol().SetMethod.IsInitOnly); 644Assert.False(property.GetPublicSymbol().GetMethod.IsInitOnly); 646Assert.True(property.GetPublicSymbol().SetMethod.IsInitOnly); 903Assert.False(property.GetPublicSymbol().GetMethod.IsInitOnly); 905Assert.True(property.GetPublicSymbol().SetMethod.IsInitOnly); 1158Assert.False(property.GetPublicSymbol().GetMethod.IsInitOnly); 1160Assert.False(property.GetPublicSymbol().SetMethod.IsInitOnly); 3826Assert.False(property0.GetPublicSymbol().SetMethod.IsInitOnly); 3914Assert.False(property0.GetPublicSymbol().SetMethod.IsInitOnly); 4003Assert.False(property0.GetPublicSymbol().SetMethod.IsInitOnly); 4064Assert.False(property.GetPublicSymbol().GetMethod.IsInitOnly); 4068Assert.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 (12)
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)
8726var propertySymbol = comp.GetMember<PropertySymbol>("C.Prop").GetPublicSymbol();
Symbols\IndexerTests.cs (1)
1298Assert.Equal(baseIndexer.GetPublicSymbol(), symbolInfo.Symbol);
Symbols\PartialPropertiesTests.cs (6)
698Assert.True(prop.GetPublicSymbol().IsExtern); 701Assert.True(prop.PartialImplementationPart!.GetPublicSymbol().IsExtern); 711Assert.False(prop.GetPublicSymbol().IsExtern); 777Assert.True(prop.GetPublicSymbol().IsExtern); 784Assert.True(implPart.GetPublicSymbol().IsExtern); 1459var p1DefPublic = p1Def.GetPublicSymbol();
Symbols\RequiredMembersTests.cs (1)
6960var property = c.GetProperty("Property").GetPublicSymbol();