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