102 references to GetCciAdapter
Microsoft.CodeAnalysis.CSharp (60)
Compiler\MethodCompiler.cs (7)
240moduleBeingBuilt.AddSynthesizedDefinition(entryPoint.ContainingType, synthesizedEntryPoint.GetCciAdapter()); 607_moduleBeingBuiltOpt.AddSynthesizedDefinition(sourceTypeSymbol, method.GetCciAdapter()); 840_moduleBeingBuiltOpt.AddSynthesizedDefinition(sourceTypeSymbol, synthesizedExplicitImpl.GetCciAdapter()); 861_moduleBeingBuiltOpt.AddSynthesizedDefinition(sourceProperty.ContainingType, synthesizedAccessor.GetCciAdapter()); 1598kickoffMethod.GetCciAdapter(), 1609moveNextBodyDebugInfoOpt = new IteratorMoveNextBodyDebugInfo(kickoffMethod.GetCciAdapter()); 1651(method.PartialDefinitionPart ?? method).GetCciAdapter(),
Compiler\SynthesizedMetadataCompiler.cs (2)
77_moduleBeingBuilt.AddSynthesizedDefinition(symbol, synthesizedExplicitImpl.GetCciAdapter()); 102_moduleBeingBuilt.AddSynthesizedDefinition(sourceProperty.ContainingType, synthesizedAccessor.GetCciAdapter());
Emitter\Model\EventSymbolAdapter.cs (4)
28var addMethod = AdaptedEventSymbol.AddMethod?.GetCciAdapter(); 35var removeMethod = AdaptedEventSymbol.RemoveMethod?.GetCciAdapter(); 48var addMethod = AdaptedEventSymbol.AddMethod?.GetCciAdapter(); 59var removeMethod = AdaptedEventSymbol.RemoveMethod?.GetCciAdapter();
Emitter\Model\FunctionPointerTypeSymbolAdapter.cs (1)
65internal ISignature Underlying => _underlying.GetCciAdapter();
Emitter\Model\MethodSymbolAdapter.cs (2)
293return ((MethodSymbol)AdaptedMethodSymbol.OriginalDefinition).GetCciAdapter(); 559protected sealed override SymbolAdapter GetCciAdapterImpl() => GetCciAdapter();
Emitter\Model\NamedTypeSymbolAdapter.cs (6)
330var adapter = method.GetCciAdapter(); 353yield return new Microsoft.Cci.MethodImplementation(method.GetCciAdapter(), moduleBeingBuilt.TranslateOverriddenMethodReference(method.OverriddenMethod, (CSharpSyntaxNode)context.SyntaxNode, context.Diagnostics)); 368yield return new Microsoft.Cci.MethodImplementation(method.GetCciAdapter(), moduleBeingBuilt.TranslateOverriddenMethodReference(objectMethod, (CSharpSyntaxNode)context.SyntaxNode, context.Diagnostics)); 385yield return new Microsoft.Cci.MethodImplementation(body.GetCciAdapter(), moduleBeingBuilt.TranslateOverriddenMethodReference(implemented, (CSharpSyntaxNode)context.SyntaxNode, context.Diagnostics)); 621if ((alwaysIncludeConstructors && method.MethodKind == MethodKind.Constructor) || method.GetCciAdapter().ShouldInclude(context)) 623yield return method.GetCciAdapter();
Emitter\Model\PEModuleBuilder.cs (11)
822return ((MethodSymbol)Compilation.GetWellKnownTypeMember(WellKnownMember.System_Runtime_CompilerServices_RuntimeHelpers__InitializeArrayArrayRuntimeFieldHandle))?.GetCciAdapter(); 1368return _embeddedTypesManagerOpt.EmbedMethodIfNeedTo(methodSymbol.GetCciAdapter(), syntaxNodeOpt, diagnostics); 1371return methodSymbol.GetCciAdapter(); 1410methodRef = _embeddedTypesManagerOpt.EmbedMethodIfNeedTo(methodSymbol.GetCciAdapter(), syntaxNodeOpt, diagnostics); 1414methodRef = methodSymbol.GetCciAdapter(); 1544return new SynthesizedPrivateImplementationDetailsStaticConstructor(SourceModule, details, GetUntranslatedSpecialType(SpecialType.System_Void, syntaxOpt, diagnostics)).GetCciAdapter(); 1845privateImplClass.TryAddSynthesizedMethod(new SynthesizedThrowMethod(sourceModule, privateImplClass, returnType, paramNameType).GetCciAdapter()); 1847privateImplClass.TryAddSynthesizedMethod(new SynthesizedThrowIfNullMethod(sourceModule, privateImplClass, actuallyAddedThrowMethod, returnType, argumentType, paramNameType).GetCciAdapter()); 1874privateImplClass.TryAddSynthesizedMethod(new SynthesizedThrowSwitchExpressionExceptionMethod(sourceModule, privateImplClass, returnType, unmatchedValueType).GetCciAdapter()); 1899factory.WellKnownMethod(WellKnownMember.System_Runtime_CompilerServices_SwitchExpressionException__ctor)).GetCciAdapter()); 1924factory.WellKnownMethod(WellKnownMember.System_InvalidOperationException__ctor)).GetCciAdapter());
Emitter\Model\PropertySymbolAdapter.cs (6)
32var getMethod = AdaptedPropertySymbol.GetMethod?.GetCciAdapter(); 38var setMethod = AdaptedPropertySymbol.SetMethod?.GetCciAdapter(); 50yield return synthesizedAccessor.GetCciAdapter(); 72return getMethod?.GetCciAdapter(); 127return setMethod?.GetCciAdapter(); 280return (object)synthesized != null && synthesized.MethodKind == targetMethodKind ? synthesized.GetCciAdapter() : null;
Emitter\Model\SpecializedMethodReference.cs (1)
35return UnderlyingMethod.OriginalDefinition.GetCciAdapter();
Emitter\Model\TypeParameterSymbolAdapter.cs (2)
219return ((MethodSymbol)AdaptedTypeParameterSymbol.ContainingSymbol).GetCciAdapter(); 336return ((MethodSymbol)AdaptedTypeParameterSymbol.ContainingSymbol).GetCciAdapter();
Emitter\NoPia\EmbeddedEvent.cs (1)
133TypeManager.EmbedMethodIfNeedTo(((MethodSymbol)m).GetCciAdapter(), syntaxNodeOpt, diagnostics);
Emitter\NoPia\EmbeddedType.cs (3)
54TypeManager.EmbedMethod(this, m.GetCciAdapter(), syntaxNodeOpt, diagnostics); 101.Select(s => s?.GetCciAdapter()) 305TypeManager.EmbedMethod(this, ((MethodSymbol)s).GetCciAdapter(), syntaxNodeOpt, diagnostics);
Emitter\NoPia\EmbeddedTypesManager.cs (5)
404EmbedMethod(embedded, m.GetCciAdapter(), syntaxNodeOpt, diagnostics); 521var getMethod = property.AdaptedPropertySymbol.GetMethod?.GetCciAdapter(); 522var setMethod = property.AdaptedPropertySymbol.SetMethod?.GetCciAdapter(); 556var addMethod = @event.AdaptedEventSymbol.AddMethod?.GetCciAdapter(); 557var removeMethod = @event.AdaptedEventSymbol.RemoveMethod?.GetCciAdapter();
Lowering\ClosureConversion\ClosureConversion.cs (1)
1521CompilationState.ModuleBuilderOpt.AddSynthesizedDefinition(translatedLambdaContainer, synthesizedMethod.GetCciAdapter());
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (1)
498F.ModuleBuilderOpt.AddSynthesizedDefinition(stateMachineType, finallyMethod.GetCciAdapter());
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
966privateImplClass.TryAddSynthesizedMethod(method.GetCciAdapter());
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
111module.EmbeddedTypesManagerOpt.EmbedMethodIfNeedTo(m.OriginalDefinition.GetCciAdapter(), syntaxNode, _diagnostics.DiagnosticBag);
Lowering\MethodToClassRewriter.cs (1)
359this.CompilationState.ModuleBuilderOpt.AddSynthesizedDefinition(containingType, wrapper.GetCciAdapter());
Lowering\StateMachineRewriter\StateMachineRewriter.cs (3)
337F.ModuleBuilderOpt.AddSynthesizedDefinition(F.CurrentType, result.GetCciAdapter()); 348F.ModuleBuilderOpt.AddSynthesizedDefinition(F.CurrentType, getter.GetCciAdapter()); 357F.ModuleBuilderOpt.AddSynthesizedDefinition(F.CurrentType, result.GetCciAdapter());
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
557moduleBeingBuilt.AddSynthesizedDefinition(template, method.GetCciAdapter());
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (31)
Emit\EditAndContinue\SymbolMatcherTests.cs (31)
178var other = matcher.MapDefinition(member.GetCciAdapter()); 215var other = (MethodSymbol)matcher.MapDefinition(member1.GetCciAdapter()).GetInternalSymbol(); 267Assert.Same(f0, (MethodSymbol)matcher.MapDefinition(f1.GetCciAdapter()).GetInternalSymbol()); 268Assert.Same(g0, (MethodSymbol)matcher.MapDefinition(g1.GetCciAdapter()).GetInternalSymbol()); 269Assert.Null(matcher.MapDefinition(h1.GetCciAdapter())); 317Assert.Equal(f0, (MethodSymbol)matcher.MapDefinition(f1.GetCciAdapter()).GetInternalSymbol()); 318Assert.Equal(g0, (MethodSymbol)matcher.MapDefinition(g1.GetCciAdapter()).GetInternalSymbol()); 319Assert.Null(matcher.MapDefinition(h1.GetCciAdapter())); 355var mf1 = matcher.MapDefinition(f1.GetCciAdapter()); 755var other = matcher.MapDefinition(member.GetCciAdapter()); 788var other = matcher.MapDefinition(member.GetCciAdapter()); 1040Assert.Null(matcher.MapDefinition(p1.GetCciAdapter())); 1041Assert.Null(matcher.MapDefinition(q1.GetCciAdapter())); 1042Assert.Null(matcher.MapDefinition(r1.GetCciAdapter())); 1044Assert.Same(s0, matcher.MapDefinition(s1.GetCciAdapter()).GetInternalSymbol()); 1045Assert.Same(t0, matcher.MapDefinition(t1.GetCciAdapter()).GetInternalSymbol()); 1182var other = matcher.MapDefinition(member.GetCciAdapter()); 1216var other = matcher.MapDefinition(member.GetCciAdapter()); 1250var other = matcher.MapDefinition(member.GetCciAdapter()); 1415Assert.Same(m0, matcher.MapDefinition(m1.GetCciAdapter()).GetInternalSymbol()); 1416Assert.Same(n0, matcher.MapDefinition(n1.GetCciAdapter()).GetInternalSymbol()); 1589var other = matcher.MapDefinition(member.GetCciAdapter()); 1622Assert.Equal(member0, (MethodSymbol)matcher.MapDefinition(member1.GetCciAdapter()).GetInternalSymbol()); 1654Assert.Equal(member0, (MethodSymbol)matcher.MapDefinition(member1.GetCciAdapter()).GetInternalSymbol()); 1721var other = matcher.MapDefinition(member.GetCciAdapter()); 2027Assert.Same(members0[i], matcher.MapDefinition(members1[i].GetCciAdapter()).GetInternalSymbol()); 2078Assert.Same(members0[i], matcher.MapDefinition(members1[i * 2].GetCciAdapter()).GetInternalSymbol()); 2088Assert.Null(matcher.MapDefinition(members1[i].GetCciAdapter())); 2139Assert.Same(members0[i * 2], matcher.MapDefinition(members1[i].GetCciAdapter()).GetInternalSymbol()); 2193Assert.Null(matcher.MapDefinition(member.GetCciAdapter())); 2247Assert.Null(matcher.MapDefinition(member.GetCciAdapter()));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Attributes\AttributeTests_WellKnownAttributes.cs (1)
3599Assert.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)
1869Assert.True(((Cci.IMethodDefinition)method1.GetCciAdapter()).IsVirtual); 1870Assert.False(((Cci.IMethodDefinition)method3.GetCciAdapter()).IsVirtual); 1880Assert.True(((Cci.IMethodDefinition)method2.GetCciAdapter()).IsVirtual); 1881Assert.True(((Cci.IMethodDefinition)method4.GetCciAdapter()).IsVirtual);