196 references to GetPublicSymbol
Microsoft.CodeAnalysis.CSharp (59)
Binder\Semantics\Conversions\Conversion.cs (1)
1022return this.Method.GetPublicSymbol();
Compilation\CSharpCompilation.cs (3)
4298return new SynthesizedIntrinsicOperatorSymbol(csharpLeftType, name, csharpRightType, csharpReturnType).GetPublicSymbol(); 4524return new SynthesizedIntrinsicOperatorSymbol(csharpOperandType, name, csharpReturnType).GetPublicSymbol(); 4586return this.GetEntryPoint(cancellationToken).GetPublicSymbol();
Compilation\CSharpSemanticModel.cs (4)
1675results.Add(reduced.GetPublicSymbol()); 2000return new SymbolInfo(pat.DeconstructMethod.GetPublicSymbol()); 5188: ImmutableArray.Create<ISymbol>(namedType, primaryConstructor.GetPublicSymbol()); 5206return interceptor.GetPublicSymbol();
Compilation\MemberSemanticModel.cs (5)
625return GetDeclaredLocalFunction(declarationSyntax).GetPublicSymbol(); 933getResult: awaitableInfo.GetResult.GetPublicSymbol(), 989enumeratorInfoOpt.GetEnumeratorInfo.Method.GetPublicSymbol(), 990enumeratorInfoOpt.MoveNextInfo.Method.GetPublicSymbol(), 992disposeMethod.GetPublicSymbol(),
Compilation\SyntaxTreeSemanticModel.cs (4)
1497return SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(Compilation, declarationSyntax, fallbackToMainEntryPoint: false).GetPublicSymbol(); 1535return ((MethodSymbol)GetDeclaredMemberSymbol(declarationSyntax)).GetPublicSymbol(); 1617return (this.GetDeclaredMember(container, declarationSyntax.Span, isKnownToBeANamespace: false) as MethodSymbol).GetPublicSymbol(); 1640return (this.GetDeclaredMember(container, declarationSyntax.Span, isKnownToBeANamespace: false) as MethodSymbol).GetPublicSymbol();
FlowAnalysis\CSharpDataFlowAnalysis.cs (1)
397return ImmutableArray.CreateRange(data.Where(s => s.CanBeReferencedByName).OrderBy(s => s, LexicalOrderSymbolComparer.Instance).Select(p => p.GetPublicSymbol()));
Operations\CSharpOperationFactory.cs (23)
458return new InvocationOperation(targetMethod.GetPublicSymbol(), constrainedToType.GetPublicSymbol(), receiver, isVirtual, arguments, _semanticModel, syntax, type, isImplicit); 516var objectCreationOperation = new ObjectCreationOperation(boundAttribute.Constructor.GetPublicSymbol(), initializer, DeriveArguments(boundAttribute), _semanticModel, boundAttribute.Syntax, boundAttribute.GetPublicTypeSymbol(), boundAttribute.ConstantValueOpt, isImplicit: true); 733return new ObjectCreationOperation(constructor.GetPublicSymbol(), initializer, arguments, _semanticModel, syntax, type, constantValue, isImplicit); 744return new WithOperation(operand, constructor.GetPublicSymbol(), initializer, _semanticModel, syntax, type, isImplicit); 940return new InvocationOperation(addMethod.GetPublicSymbol(), constrainedToType: null, receiver, isVirtual, arguments, _semanticModel, syntax, type, isImplicit); 996IMethodSymbol symbol = boundLambda.Symbol.GetPublicSymbol(); 1009IMethodSymbol symbol = boundLocalFunctionStatement.Symbol.GetPublicSymbol(); 1168return new MethodReferenceOperation(methodSymbol.GetPublicSymbol(), constrainedToType.GetPublicSymbol(), isVirtual, instance, _semanticModel, bindingSyntax, bindingType, isImplicit); 1228IMethodSymbol? constructMethod = getConstructMethod((CSharpCompilation)_semanticModel.Compilation, expr).GetPublicSymbol(); 1365IMethodSymbol? operatorMethod = method.GetPublicSymbol(); 1392IMethodSymbol? operatorMethod = boundIncrementOperator.MethodOpt.GetPublicSymbol(); 1435IMethodSymbol? operatorMethod = boundUnaryOperator.MethodOpt.GetPublicSymbol(); 1486IMethodSymbol operatorMethod = boundBinaryOperator.LogicalOperator.GetPublicSymbol(); 1488boundBinaryOperator.FalseOperator.GetPublicSymbol() : 1489boundBinaryOperator.TrueOperator.GetPublicSymbol(); 1510IMethodSymbol? operatorMethod = boundBinaryOperator.Method.GetPublicSymbol(); 1902enumeratorInfoOpt.GetEnumeratorInfo.Method.GetPublicSymbol(), 1904enumeratorInfoOpt.MoveNextInfo.Method.GetPublicSymbol(), 1916enumeratorInfoOpt.PatternDisposeInfo?.Method.GetPublicSymbol(), 2039disposeMethod: boundUsingStatement.PatternDisposeInfoOpt.Method.GetPublicSymbol(), 2178disposeMethod: usingDecl.PatternDisposeInfoOpt.Method.GetPublicSymbol(), 2564boundRecursivePattern.DeconstructMethod.GetPublicSymbol(), 2835boundRange.MethodOpt.GetPublicSymbol(),
Symbols\Attributes\AttributeData.cs (1)
199get { return this.AttributeConstructor.GetPublicSymbol(); }
Symbols\PublicModel\EventSymbol.cs (2)
44return _underlying.AddMethod.GetPublicSymbol(); 52return _underlying.RemoveMethod.GetPublicSymbol();
Symbols\PublicModel\FunctionPointerTypeSymbol.cs (1)
21public IMethodSymbol Signature => _underlying.Signature.GetPublicSymbol();
Symbols\PublicModel\LabelSymbol.cs (1)
25return _underlying.ContainingMethod.GetPublicSymbol();
Symbols\PublicModel\MethodSymbol.cs (9)
137return _underlying.ConstructedFrom.GetPublicSymbol(); 161return _underlying.OriginalDefinition.GetPublicSymbol(); 169return _underlying.OverriddenMethod.GetPublicSymbol(); 192return _underlying.ReducedFrom.GetPublicSymbol(); 207GetPublicSymbol(); 277return _underlying.Construct(ConstructTypeArguments(typeArguments)).GetPublicSymbol(); 282return _underlying.Construct(ConstructTypeArguments(typeArguments, typeArgumentNullableAnnotations)).GetPublicSymbol(); 289return _underlying.PartialImplementationPart.GetPublicSymbol(); 297return _underlying.PartialDefinitionPart.GetPublicSymbol();
Symbols\PublicModel\NamedTypeSymbol.cs (1)
111return UnderlyingNamedTypeSymbol.DelegateInvokeMethod.GetPublicSymbol();
Symbols\PublicModel\PropertySymbol.cs (2)
53get { return _underlying.GetMethod.GetPublicSymbol(); } 58get { return _underlying.SetMethod.GetPublicSymbol(); }
Symbols\PublicModel\TypeParameterSymbol.cs (1)
54get { return _underlying.DeclaringMethod.GetPublicSymbol(); }
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (21)
CodeGen\CodeGenAwaitUsingTests.cs (17)
2296var first = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), isCompleted1.GetPublicSymbol(), getResult1.GetPublicSymbol(), false); 2298var nulls1 = new AwaitExpressionInfo(null, isCompleted1.GetPublicSymbol(), getResult1.GetPublicSymbol(), false); 2299var nulls2 = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), null, 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);
CodeGen\CodeGenDeconstructTests.cs (1)
261Assert.Equal(firstDeconstructMethod.GetPublicSymbol(), deconstructionInfo.Method);
CodeGen\CodeGenLocalFunctionTests.cs (1)
33result = ((MethodSymbol)kvp.Value.Method).GetPublicSymbol();
CodeGen\CodeGenTupleTest.cs (1)
20807var mImplementations = ((MethodSymbol)c3.GetMember("I1<System.ValueTuple<System.Int32,System.Int32>>.M")).GetPublicSymbol().ExplicitInterfaceImplementations;
Emit\EmitMetadataTests.cs (1)
3832debugEntryPoint: comp.GetMember<MethodSymbol>("Program.M1").GetPublicSymbol(),
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (9)
Emit\EditAndContinue\EditAndContinueTests.cs (1)
12790var allAddedSymbols = new ISymbol[] { mA1.GetPublicSymbol(), mX1.GetPublicSymbol() };
PDB\PDBTests.cs (8)
658</symbols>", debugEntryPoint: f.GetPublicSymbol(), options: PdbValidationOptions.ExcludeScopes | PdbValidationOptions.ExcludeSequencePoints | PdbValidationOptions.ExcludeCustomDebugInformation); 660var peReader = new PEReader(c.EmitToArray(debugEntryPoint: f.GetPublicSymbol())); 681</symbols>", debugEntryPoint: f.GetPublicSymbol(), options: PdbValidationOptions.ExcludeScopes | PdbValidationOptions.ExcludeSequencePoints | PdbValidationOptions.ExcludeCustomDebugInformation); 683var peReader = new PEReader(c.EmitToArray(debugEntryPoint: f.GetPublicSymbol())); 715var result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: f2.GetPublicSymbol()); 720result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: d_t_g_int.GetPublicSymbol()); 725result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: d_int_g.GetPublicSymbol()); 730result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: d_int_g_int.GetPublicSymbol());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (30)
FirstClassSpanTests.cs (7)
6770var arrayType = comp.GetMember<MethodSymbol>("C.M").GetPublicSymbol().Parameters.Single().Type; 6820var arrayType = comp.GetMember<MethodSymbol>("C.M").GetPublicSymbol().Parameters.Single().Type; 6870var arrayType = comp.GetMember<MethodSymbol>("C.M").GetPublicSymbol().Parameters.Single().Type; 6920var arrayType = comp.GetMember<MethodSymbol>("C.M").GetPublicSymbol().Parameters.Single().Type; 6969var arrayType = comp.GetMember<MethodSymbol>("C.M").GetPublicSymbol().Parameters.Single().Type; 7000var methodSymbol = comp.GetMember<MethodSymbol>("C.E").GetPublicSymbol(); 7008var arrayType = comp.GetMember<MethodSymbol>("C.M").GetPublicSymbol().Parameters.Single().Type;
PartialEventsAndConstructorsTests.cs (16)
1568Assert.True(ev.AddMethod!.GetPublicSymbol().IsExtern); 1569Assert.True(ev.RemoveMethod!.GetPublicSymbol().IsExtern); 1571Assert.True(ev.PartialImplementationPart!.AddMethod!.GetPublicSymbol().IsExtern); 1572Assert.True(ev.PartialImplementationPart!.RemoveMethod!.GetPublicSymbol().IsExtern); 1576Assert.True(c.GetPublicSymbol().IsExtern); 1577Assert.True(c.PartialImplementationPart!.GetPublicSymbol().IsExtern); 1595Assert.False(ev.AddMethod!.GetPublicSymbol().IsExtern); 1596Assert.False(ev.RemoveMethod!.GetPublicSymbol().IsExtern); 1599Assert.False(c.GetPublicSymbol().IsExtern); 1717Assert.True(accessor.GetPublicSymbol().IsExtern); 1760Assert.True(ev.AddMethod!.GetPublicSymbol().IsExtern); 1764Assert.True(ev.RemoveMethod!.GetPublicSymbol().IsExtern); 1770Assert.True(c.GetPublicSymbol().IsExtern); 1779Assert.False(ev.AddMethod!.GetPublicSymbol().IsExtern); 1783Assert.False(ev.RemoveMethod!.GetPublicSymbol().IsExtern); 1789Assert.False(c.GetPublicSymbol().IsExtern);
RefReadonlyParameterTests.cs (2)
7105Assert.Same(methodFromCref, methodFromClass.GetPublicSymbol()); 7133Assert.Same(methodFromCref, methodFromClass.GetPublicSymbol());
Semantics\PrimaryConstructorTests.cs (5)
20655Assert.Same(primaryConstructor, namedType.GetSymbol<SourceMemberContainerTypeSymbol>().PrimaryConstructor.GetPublicSymbol()); 20689Assert.Same(primaryConstructor1, namedType1.GetSymbol<SourceMemberContainerTypeSymbol>().PrimaryConstructor.GetPublicSymbol()); 20733Assert.Same(primaryConstructor1, namedType1.GetSymbol<SourceMemberContainerTypeSymbol>().PrimaryConstructor.GetPublicSymbol()); 20778var primaryConstructor1 = namedType1.GetSymbol<SourceMemberContainerTypeSymbol>().PrimaryConstructor.GetPublicSymbol(); 20830Assert.Same(primaryConstructor1, namedType1.GetSymbol<SourceMemberContainerTypeSymbol>().PrimaryConstructor.GetPublicSymbol());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (41)
Semantics\DeconstructionTests.cs (4)
5992Assert.Equal(symbols.Symbol, main.GetPublicSymbol()); 6035Assert.Equal(symbols.Symbol, main.GetPublicSymbol()); 6075Assert.Equal(symbols.Symbol, main.GetPublicSymbol()); 6157Assert.Equal(symbols.Symbol, main.GetPublicSymbol());
Semantics\ForEachTests.cs (4)
3276Assert.Equal(enumeratorInfo.GetEnumeratorInfo.Method.GetPublicSymbol(), statementInfo.GetEnumeratorMethod); 3277Assert.Equal(enumeratorInfo.CurrentPropertyGetter.GetPublicSymbol(), statementInfo.CurrentProperty.GetMethod); 3278Assert.Equal(enumeratorInfo.MoveNextInfo.Method.GetPublicSymbol(), statementInfo.MoveNextMethod); 3284Assert.Equal(enumeratorInfo.PatternDisposeInfo.Method.GetPublicSymbol(), statementInfo.DisposeMethod);
Semantics\GenericConstraintsTests.cs (4)
3144Assert.Equal(declaredMethod.GetPublicSymbol(), inferredMethod); 3174Assert.Equal(declaredMethod.GetPublicSymbol(), inferredMethod.ConstructedFrom()); 3200Assert.Equal(declaredMethod.GetPublicSymbol(), inferredMethod); 3229Assert.Equal(declaredMethod.GetPublicSymbol(), inferredMethod.ConstructedFrom());
Semantics\InitOnlyMemberTests.cs (11)
1464Assert.False(getter.GetPublicSymbol().IsInitOnly); 1477Assert.True(setter.GetPublicSymbol().IsInitOnly); 2473Assert.False(constructor.GetPublicSymbol().IsInitOnly); 2477Assert.False(destructor.GetPublicSymbol().IsInitOnly); 2495Assert.False(conversion.GetPublicSymbol().IsInitOnly); 2499Assert.False(addition.GetPublicSymbol().IsInitOnly); 2567Assert.Equal(isSetter, method.GetPublicSymbol().IsInitOnly); 3638Assert.False(method.GetPublicSymbol().IsInitOnly); 3697Assert.False(method.GetPublicSymbol().IsInitOnly); 4146Assert.False(localFunctionSymbol.GetPublicSymbol().IsInitOnly); 4156Assert.False(method.GetPublicSymbol().IsInitOnly);
Semantics\IteratorTests.cs (6)
39IMethodSymbol publicI = i.GetPublicSymbol(); 91Assert.True(i.GetPublicSymbol().IsIterator); 126Assert.False(i1.GetPublicSymbol().IsIterator); 130Assert.False(i2.GetPublicSymbol().IsIterator); 158Assert.False(i1.GetPublicSymbol().IsIterator); 162Assert.False(i2.GetPublicSymbol().IsIterator);
Semantics\LambdaTests.cs (3)
3945var expectedAttributeConstructor = comp.GetTypeByMetadataName(expectedAttributeName).InstanceConstructors.Single().GetPublicSymbol(); 7630var method = comp.GetMember<MethodSymbol>("Program.M").GetPublicSymbol(); 8074var m2 = comp.GetMember<MethodSymbol>("C.M2").GetPublicSymbol();
Semantics\LocalFunctionTests.cs (2)
2377Assert.True(local.GetPublicSymbol().IsIterator); 2383Assert.True(local.GetPublicSymbol().IsIterator);
Semantics\LookupTests.cs (1)
1793Assert.Equal(methodT.GetPublicSymbol(), symbols.Single()); // Hides type parameter.
Semantics\NativeIntegerTests.cs (2)
121Assert.Equal("Sub I.F1(x As System.IntPtr, y As System.IntPtr)", VisualBasic.SymbolDisplay.ToDisplayString(method.GetPublicSymbol(), SymbolDisplayFormat.TestFormat)); 126Assert.Equal("Sub I.F2(x As System.UIntPtr, y As System.UIntPtr)", VisualBasic.SymbolDisplay.ToDisplayString(method.GetPublicSymbol(), SymbolDisplayFormat.TestFormat));
Semantics\OperatorTests.cs (1)
6942Assert.Equal(expectedOperator.GetPublicSymbol(), info.Symbol);
Semantics\ReadOnlyStructsTests.cs (1)
1327Assert.Equal(isReadOnly, property.GetMethod.GetPublicSymbol().IsReadOnly);
Semantics\UnsafeTests.cs (2)
7876Assert.True(methodGroupSummary.MethodGroup.SetEquals(ImmutableArray.Create<IMethodSymbol>(structMethod1.GetPublicSymbol(), structMethod2.GetPublicSymbol()), EqualityComparer<IMethodSymbol>.Default));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (32)
DocumentationComments\ParameterTests.cs (1)
693var method = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Program").GetMember<MethodSymbol>("M").GetPublicSymbol();
SymbolDisplay\SymbolDisplayTests.cs (2)
8633var methodSymbol = comp.GetMember<MethodSymbol>("C.M").GetPublicSymbol(); 8658var methodSymbol = comp.GetMember<MethodSymbol>("C.M").GetPublicSymbol();
Symbols\ExtendedPartialMethodsTests.cs (2)
3833verifyPublicAPI(comp.GetMember<MethodSymbol>("C.M1").GetPublicSymbol()); 3834verifyPublicAPI(comp.GetMember<MethodSymbol>("C.M2").GetPublicSymbol());
Symbols\ExtensionMethodTests.cs (2)
2858reducedWithReceiver = extensionMethod.GetPublicSymbol().ReduceExtensionMethod(msi.GetPublicSymbol()); 2881reducedWithReceiver = extensionMethod.GetPublicSymbol().ReduceExtensionMethod(msi.GetPublicSymbol());
Symbols\MethodImplementationFlagsTests.cs (10)
39var aggressiveInliningMethod = c.GetMember<MethodSymbol>("M_Aggressive").GetPublicSymbol(); 42var noInliningMethod = c.GetMember<MethodSymbol>("M_NoInlining").GetPublicSymbol(); 71var aggressiveOptimizationMethod = c.GetMember<MethodSymbol>("M_Aggressive").GetPublicSymbol(); 78var noOptimizationMethod = c.GetMember<MethodSymbol>("M_NoOptimization").GetPublicSymbol(); 118var aggressiveOptNoInliningMethod = c.GetMember<MethodSymbol>("M_AggressiveOpt_NoInlining").GetPublicSymbol(); 125var noOptNoInliningMethod = c.GetMember<MethodSymbol>("M_NoOpt_NoInlining").GetPublicSymbol(); 128var aggressiveOptAggressiveInliningMethod = c.GetMember<MethodSymbol>("M_AggressiveOpt_AggressiveInlining").GetPublicSymbol(); 135var noOptAggressiveInliningMethod = c.GetMember<MethodSymbol>("M_NoOpt_AggressiveInlining").GetPublicSymbol(); 159var method = c.GetMember<MethodSymbol>("M").GetPublicSymbol(); 181var method = c.GetMember<MethodSymbol>("M").GetPublicSymbol();
Symbols\PartialPropertiesTests.cs (7)
699Assert.True(prop.GetMethod!.GetPublicSymbol().IsExtern); 700Assert.True(prop.SetMethod!.GetPublicSymbol().IsExtern); 702Assert.True(prop.PartialImplementationPart!.GetMethod!.GetPublicSymbol().IsExtern); 703Assert.True(prop.PartialImplementationPart!.SetMethod!.GetPublicSymbol().IsExtern); 712Assert.False(prop.GetMethod!.GetPublicSymbol().IsExtern); 713Assert.False(prop.SetMethod!.GetPublicSymbol().IsExtern); 792Assert.True(accessor.GetPublicSymbol().IsExtern);
Symbols\Source\FileModifierTests.cs (1)
3512Assert.Equal(expectedMember.GetPublicSymbol(), symbolInfo.Symbol);
Symbols\Source\MethodTests.cs (7)
2408var m = comp.GetMember<MethodSymbol>("C.M").GetPublicSymbol(); 2424var m = comp.GetMember<MethodSymbol>("C.M").GetPublicSymbol(); 2443var m = comp.GetMember<MethodSymbol>("C.M").GetPublicSymbol(); 2469var m = comp.GetMember<MethodSymbol>("C.M").GetPublicSymbol(); 2491var m = comp.GetMember<MethodSymbol>("C.M").GetPublicSymbol(); 2511var m = module.GlobalNamespace.GetTypeMember("C").GetMethod("M").GetPublicSymbol(); 2518var m = module.GlobalNamespace.GetTypeMember("C").GetMethod("M").GetPublicSymbol();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (4)
CompilationTestUtils.cs (4)
136CheckReducedExtensionMethod(reducedMethod.GetPublicSymbol(), reducedFrom.GetPublicSymbol()); 155CheckConstructedMethod(constructedMethod.GetPublicSymbol(), constructedFrom.GetPublicSymbol());