148 references to GetPublicSymbol
Microsoft.CodeAnalysis.CSharp (57)
Binder\Semantics\Conversions\Conversion.cs (1)
914return this.Method.GetPublicSymbol();
Compilation\CSharpCompilation.cs (3)
3936return new SynthesizedIntrinsicOperatorSymbol(csharpLeftType, name, csharpRightType, csharpReturnType).GetPublicSymbol(); 4162return new SynthesizedIntrinsicOperatorSymbol(csharpOperandType, name, csharpReturnType).GetPublicSymbol(); 4224return this.GetEntryPoint(cancellationToken).GetPublicSymbol();
Compilation\CSharpSemanticModel.cs (2)
1673results.Add(reduced.GetPublicSymbol()); 2010return new SymbolInfo(pat.DeconstructMethod.GetPublicSymbol());
Compilation\MemberSemanticModel.cs (5)
614return GetDeclaredLocalFunction(declarationSyntax).GetPublicSymbol(); 922getResult: awaitableInfo.GetResult.GetPublicSymbol(), 979enumeratorInfoOpt.GetEnumeratorInfo.Method.GetPublicSymbol(), 980enumeratorInfoOpt.MoveNextInfo.Method.GetPublicSymbol(), 982disposeMethod.GetPublicSymbol(),
Compilation\SyntaxTreeSemanticModel.cs (4)
1476return SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(Compilation, declarationSyntax, fallbackToMainEntryPoint: false).GetPublicSymbol(); 1514return ((MethodSymbol)GetDeclaredMemberSymbol(declarationSyntax)).GetPublicSymbol(); 1596return (this.GetDeclaredMember(container, declarationSyntax.Span) as MethodSymbol).GetPublicSymbol(); 1619return (this.GetDeclaredMember(container, declarationSyntax.Span) as MethodSymbol).GetPublicSymbol();
Compiler\MethodCompiler.cs (1)
1186_compilation.EventQueue.TryEnqueue(new SymbolDeclaredCompilationEvent(_compilation, methodSymbol.GetPublicSymbol(), semanticModelWithCachedBoundNodes));
FlowAnalysis\CSharpDataFlowAnalysis.cs (1)
397return ImmutableArray.CreateRange(data.Where(s => s.CanBeReferencedByName).OrderBy(s => s, LexicalOrderSymbolComparer.Instance).Select(p => p.GetPublicSymbol()));
Operations\CSharpOperationFactory.cs (22)
455return new InvocationOperation(targetMethod.GetPublicSymbol(), constrainedToType.GetPublicSymbol(), receiver, isVirtual, arguments, _semanticModel, syntax, type, isImplicit); 513var objectCreationOperation = new ObjectCreationOperation(boundAttribute.Constructor.GetPublicSymbol(), initializer, DeriveArguments(boundAttribute), _semanticModel, boundAttribute.Syntax, boundAttribute.GetPublicTypeSymbol(), boundAttribute.ConstantValueOpt, isImplicit: true); 730return new ObjectCreationOperation(constructor.GetPublicSymbol(), initializer, arguments, _semanticModel, syntax, type, constantValue, isImplicit); 741return new WithOperation(operand, constructor.GetPublicSymbol(), initializer, _semanticModel, syntax, type, isImplicit); 934return new InvocationOperation(addMethod.GetPublicSymbol(), constrainedToType: null, receiver, isVirtual, arguments, _semanticModel, syntax, type, isImplicit); 990IMethodSymbol symbol = boundLambda.Symbol.GetPublicSymbol(); 1003IMethodSymbol symbol = boundLocalFunctionStatement.Symbol.GetPublicSymbol(); 1162return new MethodReferenceOperation(methodSymbol.GetPublicSymbol(), constrainedToType.GetPublicSymbol(), isVirtual, instance, _semanticModel, bindingSyntax, bindingType, isImplicit); 1298IMethodSymbol? operatorMethod = method.GetPublicSymbol(); 1325IMethodSymbol? operatorMethod = boundIncrementOperator.MethodOpt.GetPublicSymbol(); 1368IMethodSymbol? operatorMethod = boundUnaryOperator.MethodOpt.GetPublicSymbol(); 1419IMethodSymbol operatorMethod = boundBinaryOperator.LogicalOperator.GetPublicSymbol(); 1421boundBinaryOperator.FalseOperator.GetPublicSymbol() : 1422boundBinaryOperator.TrueOperator.GetPublicSymbol(); 1443IMethodSymbol? operatorMethod = boundBinaryOperator.Method.GetPublicSymbol(); 1795enumeratorInfoOpt.GetEnumeratorInfo.Method.GetPublicSymbol(), 1797enumeratorInfoOpt.MoveNextInfo.Method.GetPublicSymbol(), 1806enumeratorInfoOpt.PatternDisposeInfo?.Method.GetPublicSymbol(), 1928disposeMethod: boundUsingStatement.PatternDisposeInfoOpt.Method.GetPublicSymbol(), 2067disposeMethod: usingDecl.PatternDisposeInfoOpt.Method.GetPublicSymbol(), 2447boundRecursivePattern.DeconstructMethod.GetPublicSymbol(), 2690boundRange.MethodOpt.GetPublicSymbol(),
Symbols\Attributes\AttributeData.cs (1)
221get { 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)
136return _underlying.ConstructedFrom.GetPublicSymbol(); 160return _underlying.OriginalDefinition.GetPublicSymbol(); 168return _underlying.OverriddenMethod.GetPublicSymbol(); 191return _underlying.ReducedFrom.GetPublicSymbol(); 206GetPublicSymbol(); 276return _underlying.Construct(ConstructTypeArguments(typeArguments)).GetPublicSymbol(); 281return _underlying.Construct(ConstructTypeArguments(typeArguments, typeArgumentNullableAnnotations)).GetPublicSymbol(); 288return _underlying.PartialImplementationPart.GetPublicSymbol(); 296return _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 (29)
CodeGen\CodeGenAwaitUsingTests.cs (17)
1634var first = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), isCompleted1.GetPublicSymbol(), getResult1.GetPublicSymbol(), false); 1636var nulls1 = new AwaitExpressionInfo(null, isCompleted1.GetPublicSymbol(), getResult1.GetPublicSymbol(), false); 1637var nulls2 = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), null, 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);
CodeGen\CodeGenDeconstructTests.cs (1)
261Assert.Equal(firstDeconstructMethod.GetPublicSymbol(), deconstructionInfo.Method);
CodeGen\CodeGenLocalFunctionTests.cs (1)
33result = ((MethodSymbol)kvp.Value.Method).GetPublicSymbol();
CodeGen\CodeGenTupleTest.cs (1)
20809var mImplementations = ((MethodSymbol)c3.GetMember("I1<(System.Int32c,System.Int32d)>.M")).GetPublicSymbol().ExplicitInterfaceImplementations;
Emit\EditAndContinue\EditAndContinueTests.cs (1)
11708var allAddedSymbols = new ISymbol[] { mA1.GetPublicSymbol(), mX1.GetPublicSymbol() };
PDB\PDBTests.cs (8)
570</symbols>", debugEntryPoint: f.GetPublicSymbol(), options: PdbValidationOptions.ExcludeScopes | PdbValidationOptions.ExcludeSequencePoints | PdbValidationOptions.ExcludeCustomDebugInformation); 572var peReader = new PEReader(c.EmitToArray(debugEntryPoint: f.GetPublicSymbol())); 593</symbols>", debugEntryPoint: f.GetPublicSymbol(), options: PdbValidationOptions.ExcludeScopes | PdbValidationOptions.ExcludeSequencePoints | PdbValidationOptions.ExcludeCustomDebugInformation); 595var peReader = new PEReader(c.EmitToArray(debugEntryPoint: f.GetPublicSymbol())); 627var result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: f2.GetPublicSymbol()); 632result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: d_t_g_int.GetPublicSymbol()); 637result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: d_int_g.GetPublicSymbol()); 642result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: d_int_g_int.GetPublicSymbol());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (33)
Semantics\DeconstructionTests.cs (4)
5995Assert.Equal(symbols.Symbol, main.GetPublicSymbol()); 6038Assert.Equal(symbols.Symbol, main.GetPublicSymbol()); 6078Assert.Equal(symbols.Symbol, main.GetPublicSymbol()); 6160Assert.Equal(symbols.Symbol, main.GetPublicSymbol());
Semantics\ForEachTests.cs (4)
3275Assert.Equal(enumeratorInfo.GetEnumeratorInfo.Method.GetPublicSymbol(), statementInfo.GetEnumeratorMethod); 3276Assert.Equal(enumeratorInfo.CurrentPropertyGetter.GetPublicSymbol(), statementInfo.CurrentProperty.GetMethod); 3277Assert.Equal(enumeratorInfo.MoveNextInfo.Method.GetPublicSymbol(), statementInfo.MoveNextMethod); 3283Assert.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)
1459Assert.False(getter.GetPublicSymbol().IsInitOnly); 1472Assert.True(setter.GetPublicSymbol().IsInitOnly); 2468Assert.False(constructor.GetPublicSymbol().IsInitOnly); 2472Assert.False(destructor.GetPublicSymbol().IsInitOnly); 2490Assert.False(conversion.GetPublicSymbol().IsInitOnly); 2494Assert.False(addition.GetPublicSymbol().IsInitOnly); 2562Assert.Equal(isSetter, method.GetPublicSymbol().IsInitOnly); 3627Assert.False(method.GetPublicSymbol().IsInitOnly); 3686Assert.False(method.GetPublicSymbol().IsInitOnly); 4135Assert.False(localFunctionSymbol.GetPublicSymbol().IsInitOnly); 4145Assert.False(method.GetPublicSymbol().IsInitOnly);
Semantics\LambdaTests.cs (3)
3930var expectedAttributeConstructor = comp.GetTypeByMetadataName(expectedAttributeName).InstanceConstructors.Single().GetPublicSymbol(); 7604var method = comp.GetMember<MethodSymbol>("Program.M").GetPublicSymbol(); 8048var m2 = comp.GetMember<MethodSymbol>("C.M2").GetPublicSymbol();
Semantics\LookupTests.cs (1)
1793Assert.Equal(methodT.GetPublicSymbol(), symbols.Single()); // Hides type parameter.
Semantics\NativeIntegerTests.cs (2)
116Assert.Equal("Sub I.F1(x As System.IntPtr, y As System.IntPtr)", VisualBasic.SymbolDisplay.ToDisplayString(method.GetPublicSymbol(), SymbolDisplayFormat.TestFormat)); 121Assert.Equal("Sub I.F2(x As System.UIntPtr, y As System.UIntPtr)", VisualBasic.SymbolDisplay.ToDisplayString(method.GetPublicSymbol(), SymbolDisplayFormat.TestFormat));
Semantics\OperatorTests.cs (1)
6941Assert.Equal(expectedOperator.GetPublicSymbol(), info.Symbol);
Semantics\ReadOnlyStructsTests.cs (1)
1327Assert.Equal(isReadOnly, property.GetMethod.GetPublicSymbol().IsReadOnly);
Semantics\UnsafeTests.cs (2)
5038Assert.True(methodGroupSummary.MethodGroup.SetEquals(ImmutableArray.Create<IMethodSymbol>(structMethod1.GetPublicSymbol(), structMethod2.GetPublicSymbol()), EqualityComparer<IMethodSymbol>.Default));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (25)
DocumentationComments\ParameterTests.cs (2)
693var method = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Program").GetMember<MethodSymbol>("M").GetPublicSymbol(); 744var method = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>("M").GetPublicSymbol();
SymbolDisplay\SymbolDisplayTests.cs (1)
8210var methodSymbol = comp.GetMember<MethodSymbol>("C.M").GetPublicSymbol();
Symbols\ExtendedPartialMethodsTests.cs (2)
3425verifyPublicAPI(comp.GetMember<MethodSymbol>("C.M1").GetPublicSymbol()); 3426verifyPublicAPI(comp.GetMember<MethodSymbol>("C.M2").GetPublicSymbol());
Symbols\ExtensionMethodTests.cs (2)
2864reducedWithReceiver = extensionMethod.GetPublicSymbol().ReduceExtensionMethod(msi.GetPublicSymbol()); 2887reducedWithReceiver = 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\Source\FileModifierTests.cs (1)
2954Assert.Equal(expectedMember.GetPublicSymbol(), symbolInfo.Symbol);
Symbols\Source\MethodTests.cs (7)
2407var m = comp.GetMember<MethodSymbol>("C.M").GetPublicSymbol(); 2423var m = comp.GetMember<MethodSymbol>("C.M").GetPublicSymbol(); 2442var m = comp.GetMember<MethodSymbol>("C.M").GetPublicSymbol(); 2468var m = comp.GetMember<MethodSymbol>("C.M").GetPublicSymbol(); 2490var m = comp.GetMember<MethodSymbol>("C.M").GetPublicSymbol(); 2510var m = module.GlobalNamespace.GetTypeMember("C").GetMethod("M").GetPublicSymbol(); 2517var 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());