100 references to GetCciAdapter
Microsoft.CodeAnalysis.CSharp (58)
CodeGen\EmitStackAllocInitializer.cs (1)
86var createSpanHelperReference = createSpanHelper.Construct(elementType).GetCciAdapter();
Compiler\MethodCompiler.cs (8)
252moduleBeingBuilt.AddSynthesizedDefinition(entryPoint.ContainingType, synthesizedEntryPoint.GetCciAdapter()); 625_moduleBeingBuiltOpt.AddSynthesizedDefinition(sourceTypeSymbol, method.GetCciAdapter()); 860_moduleBeingBuiltOpt.AddSynthesizedDefinition(sourceTypeSymbol, synthesizedExplicitImpl.GetCciAdapter()); 881_moduleBeingBuiltOpt.AddSynthesizedDefinition(sourceProperty.ContainingType, synthesizedAccessor.GetCciAdapter()); 1421methodSymbol.GetCciAdapter(), 1670kickoffMethod.GetCciAdapter(), 1681moveNextBodyDebugInfoOpt = new IteratorMoveNextBodyDebugInfo(kickoffMethod.GetCciAdapter()); 1725methodBodyParentSymbol.GetCciAdapter(),
Compiler\SynthesizedMetadataCompiler.cs (2)
86_moduleBeingBuilt.AddSynthesizedDefinition(symbol, synthesizedExplicitImpl.GetCciAdapter()); 111_moduleBeingBuilt.AddSynthesizedDefinition(sourceProperty.ContainingType, synthesizedAccessor.GetCciAdapter());
Emitter\Model\EventSymbolAdapter.cs (4)
31var addMethod = AdaptedEventSymbol.AddMethod?.GetCciAdapter(); 38var removeMethod = AdaptedEventSymbol.RemoveMethod?.GetCciAdapter(); 51var addMethod = AdaptedEventSymbol.AddMethod?.GetCciAdapter(); 62var removeMethod = AdaptedEventSymbol.RemoveMethod?.GetCciAdapter();
Emitter\Model\FunctionPointerTypeSymbolAdapter.cs (1)
66internal ISignature Underlying => _underlying.GetCciAdapter();
Emitter\Model\MethodSymbolAdapter.cs (2)
288return ((MethodSymbol)AdaptedMethodSymbol.OriginalDefinition).GetCciAdapter(); 562protected sealed override SymbolAdapter GetCciAdapterImpl() => GetCciAdapter();
Emitter\Model\NamedTypeSymbolAdapter.cs (6)
334var adapter = method.GetCciAdapter(); 357yield return new Microsoft.Cci.MethodImplementation(method.GetCciAdapter(), moduleBeingBuilt.TranslateOverriddenMethodReference(method.OverriddenMethod, (CSharpSyntaxNode)context.SyntaxNode, context.Diagnostics)); 372yield return new Microsoft.Cci.MethodImplementation(method.GetCciAdapter(), moduleBeingBuilt.TranslateOverriddenMethodReference(objectMethod, (CSharpSyntaxNode)context.SyntaxNode, context.Diagnostics)); 398yield return new Microsoft.Cci.MethodImplementation(body.GetCciAdapter(), moduleBeingBuilt.TranslateOverriddenMethodReference(implemented, (CSharpSyntaxNode)context.SyntaxNode, context.Diagnostics)); 632if ((alwaysIncludeConstructors && method.MethodKind == MethodKind.Constructor) || method is SynthesizedExtensionMarker || method.GetCciAdapter().ShouldInclude(context)) 634yield return method.GetCciAdapter();
Emitter\Model\PEModuleBuilder.cs (7)
841return ((MethodSymbol)Compilation.GetWellKnownTypeMember(WellKnownMember.System_Runtime_CompilerServices_RuntimeHelpers__InitializeArrayArrayRuntimeFieldHandle))?.GetCciAdapter(); 1311return _embeddedTypesManagerOpt.EmbedMethodIfNeedTo(methodSymbol.GetCciAdapter(), syntaxNodeOpt, diagnostics); 1314return methodSymbol.GetCciAdapter(); 1353methodRef = _embeddedTypesManagerOpt.EmbedMethodIfNeedTo(methodSymbol.GetCciAdapter(), syntaxNodeOpt, diagnostics); 1357methodRef = methodSymbol.GetCciAdapter(); 1487return new SynthesizedPrivateImplementationDetailsStaticConstructor(GetPrivateImplClass(syntaxOpt, diagnostics), GetUntranslatedSpecialType(SpecialType.System_Void, syntaxOpt, diagnostics)).GetCciAdapter(); 1847privateImplClass.PrivateImplementationDetails.TryAddSynthesizedMethod(methodSymbol.GetCciAdapter());
Emitter\Model\PropertySymbolAdapter.cs (6)
35var getMethod = AdaptedPropertySymbol.GetMethod?.GetCciAdapter(); 41var setMethod = AdaptedPropertySymbol.SetMethod?.GetCciAdapter(); 53yield return synthesizedAccessor.GetCciAdapter(); 75return getMethod?.GetCciAdapter(); 130return setMethod?.GetCciAdapter(); 283return (object)synthesized != null && synthesized.MethodKind == targetMethodKind ? synthesized.GetCciAdapter() : null;
Emitter\Model\SpecializedMethodReference.cs (1)
35return UnderlyingMethod.OriginalDefinition.GetCciAdapter();
Emitter\Model\TypeParameterSymbolAdapter.cs (2)
222return ((MethodSymbol)AdaptedTypeParameterSymbol.ContainingSymbol).GetCciAdapter(); 347return ((MethodSymbol)AdaptedTypeParameterSymbol.ContainingSymbol).GetCciAdapter();
Emitter\NoPia\EmbeddedEvent.cs (1)
135TypeManager.EmbedMethodIfNeedTo(((MethodSymbol)m).GetCciAdapter(), syntaxNodeOpt, diagnostics);
Emitter\NoPia\EmbeddedType.cs (3)
53TypeManager.EmbedMethod(this, m.GetCciAdapter(), syntaxNodeOpt, diagnostics); 100.Select(s => s?.GetCciAdapter()) 304TypeManager.EmbedMethod(this, ((MethodSymbol)s).GetCciAdapter(), syntaxNodeOpt, diagnostics);
Emitter\NoPia\EmbeddedTypesManager.cs (5)
419EmbedMethod(embedded, m.GetCciAdapter(), syntaxNodeOpt, diagnostics); 536var getMethod = property.AdaptedPropertySymbol.GetMethod?.GetCciAdapter(); 537var setMethod = property.AdaptedPropertySymbol.SetMethod?.GetCciAdapter(); 571var addMethod = @event.AdaptedEventSymbol.AddMethod?.GetCciAdapter(); 572var removeMethod = @event.AdaptedEventSymbol.RemoveMethod?.GetCciAdapter();
Lowering\ClosureConversion\ClosureConversion.cs (1)
1552CompilationState.ModuleBuilderOpt.AddSynthesizedDefinition(translatedLambdaContainer, synthesizedMethod.GetCciAdapter());
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (1)
504F.ModuleBuilderOpt.AddSynthesizedDefinition(stateMachineType, finallyMethod.GetCciAdapter());
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
966privateImplClass.PrivateImplementationDetails.TryAddSynthesizedMethod(method.GetCciAdapter());
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
110module.EmbeddedTypesManagerOpt.EmbedMethodIfNeedTo(m.OriginalDefinition.GetCciAdapter(), syntaxNode, _diagnostics.DiagnosticBag);
Lowering\MethodToClassRewriter.cs (1)
173this.CompilationState.ModuleBuilderOpt.AddSynthesizedDefinition(containingType, wrapper.GetCciAdapter());
Lowering\StateMachineRewriter\StateMachineRewriter.cs (3)
351F.ModuleBuilderOpt.AddSynthesizedDefinition(F.CurrentType, result.GetCciAdapter()); 362F.ModuleBuilderOpt.AddSynthesizedDefinition(F.CurrentType, getter.GetCciAdapter()); 371F.ModuleBuilderOpt.AddSynthesizedDefinition(F.CurrentType, result.GetCciAdapter());
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
563moduleBeingBuilt.AddSynthesizedDefinition(template, method.GetCciAdapter());
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (31)
Emit\EditAndContinue\SymbolMatcherTests.cs (31)
171var other = matcher.MapDefinition(member.GetCciAdapter()); 199var other = (MethodSymbol)matcher.MapDefinition(member1.GetCciAdapter()).GetInternalSymbol(); 242Assert.Same(f0, (MethodSymbol)matcher.MapDefinition(f1.GetCciAdapter()).GetInternalSymbol()); 243Assert.Same(g0, (MethodSymbol)matcher.MapDefinition(g1.GetCciAdapter()).GetInternalSymbol()); 244Assert.Null(matcher.MapDefinition(h1.GetCciAdapter())); 286Assert.Equal(f0, (MethodSymbol)matcher.MapDefinition(f1.GetCciAdapter()).GetInternalSymbol()); 287Assert.Equal(g0, (MethodSymbol)matcher.MapDefinition(g1.GetCciAdapter()).GetInternalSymbol()); 288Assert.Null(matcher.MapDefinition(h1.GetCciAdapter())); 315var mf1 = matcher.MapDefinition(f1.GetCciAdapter()); 654var other = matcher.MapDefinition(member.GetCciAdapter()); 678var other = matcher.MapDefinition(member.GetCciAdapter()); 867Assert.Null(matcher.MapDefinition(p1.GetCciAdapter())); 868Assert.Null(matcher.MapDefinition(q1.GetCciAdapter())); 869Assert.Null(matcher.MapDefinition(r1.GetCciAdapter())); 871Assert.Same(s0, matcher.MapDefinition(s1.GetCciAdapter()).GetInternalSymbol()); 872Assert.Same(t0, matcher.MapDefinition(t1.GetCciAdapter()).GetInternalSymbol()); 989var other = matcher.MapDefinition(member.GetCciAdapter()); 1014var other = matcher.MapDefinition(member.GetCciAdapter()); 1039var other = matcher.MapDefinition(member.GetCciAdapter()); 1187Assert.Same(m0, matcher.MapDefinition(m1.GetCciAdapter()).GetInternalSymbol()); 1188Assert.Same(n0, matcher.MapDefinition(n1.GetCciAdapter()).GetInternalSymbol()); 1325var other = matcher.MapDefinition(member.GetCciAdapter()); 1349Assert.Equal(member0, (MethodSymbol)matcher.MapDefinition(member1.GetCciAdapter()).GetInternalSymbol()); 1372Assert.Equal(member0, (MethodSymbol)matcher.MapDefinition(member1.GetCciAdapter()).GetInternalSymbol()); 1421var other = matcher.MapDefinition(member.GetCciAdapter()); 1726Assert.Same(members0[i], matcher.MapDefinition(members1[i].GetCciAdapter()).GetInternalSymbol()); 1768Assert.Same(members0[i], matcher.MapDefinition(members1[i * 2].GetCciAdapter()).GetInternalSymbol()); 1778Assert.Null(matcher.MapDefinition(members1[i].GetCciAdapter())); 1820Assert.Same(members0[i * 2], matcher.MapDefinition(members1[i].GetCciAdapter()).GetInternalSymbol()); 1865Assert.Null(matcher.MapDefinition(member.GetCciAdapter())); 1910Assert.Null(matcher.MapDefinition(member.GetCciAdapter()));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests_WellKnownAttributes.cs (1)
3680Assert.True(((Cci.IMethodDefinition)ctorA.GetCciAdapter()).IsExternal);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
Symbols\InterfaceImplementationTests.cs (6)
938Assert.True(((Cci.IMethodDefinition)baseClassMethod.GetCciAdapter()).IsVirtual); 939Assert.True(((Cci.IMethodDefinition)baseClassPropertyGetter.GetCciAdapter()).IsVirtual); 940Assert.True(((Cci.IMethodDefinition)baseClassPropertySetter.GetCciAdapter()).IsVirtual); 1007Assert.False(((Cci.IMethodDefinition)baseClassMethod.GetCciAdapter()).IsVirtual); 1008Assert.False(((Cci.IMethodDefinition)baseClassPropertyGetter.GetCciAdapter()).IsVirtual); 1009Assert.False(((Cci.IMethodDefinition)baseClassPropertySetter.GetCciAdapter()).IsVirtual);
Symbols\Source\MethodTests.cs (4)
1870Assert.True(((Cci.IMethodDefinition)method1.GetCciAdapter()).IsVirtual); 1871Assert.False(((Cci.IMethodDefinition)method3.GetCciAdapter()).IsVirtual); 1881Assert.True(((Cci.IMethodDefinition)method2.GetCciAdapter()).IsVirtual); 1882Assert.True(((Cci.IMethodDefinition)method4.GetCciAdapter()).IsVirtual);