Base:
method
MapDefinition
Microsoft.CodeAnalysis.Emit.SymbolMatcher.MapDefinition(Microsoft.Cci.IDefinition)
74 references to MapDefinition
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (74)
Emit\EditAndContinue\SymbolMatcherTests.cs (74)
115var other = matcher.MapDefinition((Cci.IDefinition)member.GetCciAdapter()); 149var other = matcher.MapDefinition((Cci.IMethodDefinition)member.GetCciAdapter()); 172var other = matcher.MapDefinition(member.GetCciAdapter()); 200var other = (MethodSymbol)matcher.MapDefinition(member1.GetCciAdapter()).GetInternalSymbol(); 243Assert.Same(f0, (MethodSymbol)matcher.MapDefinition(f1.GetCciAdapter()).GetInternalSymbol()); 244Assert.Same(g0, (MethodSymbol)matcher.MapDefinition(g1.GetCciAdapter()).GetInternalSymbol()); 245Assert.Null(matcher.MapDefinition(h1.GetCciAdapter())); 287Assert.Equal(f0, (MethodSymbol)matcher.MapDefinition(f1.GetCciAdapter()).GetInternalSymbol()); 288Assert.Equal(g0, (MethodSymbol)matcher.MapDefinition(g1.GetCciAdapter()).GetInternalSymbol()); 289Assert.Null(matcher.MapDefinition(h1.GetCciAdapter())); 316var mf1 = matcher.MapDefinition(f1.GetCciAdapter()); 511var mappedX1 = (Cci.IFieldDefinition)matcher.MapDefinition(x1); 512var mappedX2 = (Cci.IFieldDefinition)matcher.MapDefinition(x2); 581var mappedX1 = (Cci.IFieldDefinition)matcher.MapDefinition(x1); 582var mappedX2 = (Cci.IFieldDefinition)matcher.MapDefinition(x2); 607var other = matcher.MapDefinition(member.GetCciAdapter()); 631var other = matcher.MapDefinition(member.GetCciAdapter()); 655var other = matcher.MapDefinition(member.GetCciAdapter()); 679var other = matcher.MapDefinition(member.GetCciAdapter()); 703var other = matcher.MapDefinition(member.GetCciAdapter()); 727var other = matcher.MapDefinition(member.GetCciAdapter()); 751var other = matcher.MapDefinition(member.GetCciAdapter()); 775var other = matcher.MapDefinition(member.GetCciAdapter()); 799var other = matcher.MapDefinition(member.GetCciAdapter()); 823var other = matcher.MapDefinition(member.GetCciAdapter()); 868Assert.Null(matcher.MapDefinition(p1.GetCciAdapter())); 869Assert.Null(matcher.MapDefinition(q1.GetCciAdapter())); 870Assert.Null(matcher.MapDefinition(r1.GetCciAdapter())); 872Assert.Same(s0, matcher.MapDefinition(s1.GetCciAdapter()).GetInternalSymbol()); 873Assert.Same(t0, matcher.MapDefinition(t1.GetCciAdapter()).GetInternalSymbol()); 916Assert.Null(matcher.MapDefinition(p1.GetCciAdapter())); 917Assert.Null(matcher.MapDefinition(q1.GetCciAdapter())); 918Assert.Null(matcher.MapDefinition(r1.GetCciAdapter())); 920Assert.Same(s0, matcher.MapDefinition(s1.GetCciAdapter()).GetInternalSymbol()); 921Assert.Same(t0, matcher.MapDefinition(t1.GetCciAdapter()).GetInternalSymbol()); 962var mappedProperty = (Cci.IPropertyDefinition)matcher.MapDefinition(property.GetCciAdapter()); 990var other = matcher.MapDefinition(member.GetCciAdapter()); 1015var other = matcher.MapDefinition(member.GetCciAdapter()); 1040var other = matcher.MapDefinition(member.GetCciAdapter()); 1063var other = matcher.MapDefinition(member.GetCciAdapter()); 1135var mappedY1 = (Cci.IFieldDefinition)matcher.MapDefinition(y1); 1136var mappedY2 = (Cci.IFieldDefinition)matcher.MapDefinition(y2); 1186Assert.Same(x0, matcher.MapDefinition(x1.GetCciAdapter()).GetInternalSymbol()); 1187Assert.Same(y0, matcher.MapDefinition(y1.GetCciAdapter()).GetInternalSymbol()); 1188Assert.Same(m0, matcher.MapDefinition(m1.GetCciAdapter()).GetInternalSymbol()); 1189Assert.Same(n0, matcher.MapDefinition(n1.GetCciAdapter()).GetInternalSymbol()); 1190Assert.Same(p0, matcher.MapDefinition(p1.GetCciAdapter()).GetInternalSymbol()); 1191Assert.Same(q0, matcher.MapDefinition(q1.GetCciAdapter()).GetInternalSymbol()); 1192Assert.Same(e0, matcher.MapDefinition(e1.GetCciAdapter()).GetInternalSymbol()); 1193Assert.Same(f0, matcher.MapDefinition(f1.GetCciAdapter()).GetInternalSymbol()); 1222Assert.Same(f_0, matcher.MapDefinition(f_1.GetCciAdapter()).GetInternalSymbol()); 1253Assert.Null(matcher.MapDefinition(f_1.GetCciAdapter())); 1304Assert.Null(matcher.MapDefinition(f_1.GetCciAdapter())); 1326var other = matcher.MapDefinition(member.GetCciAdapter()); 1350Assert.Equal(member0, (MethodSymbol)matcher.MapDefinition(member1.GetCciAdapter()).GetInternalSymbol()); 1373Assert.Equal(member0, (MethodSymbol)matcher.MapDefinition(member1.GetCciAdapter()).GetInternalSymbol()); 1394Assert.Equal(member0, (PropertySymbol)matcher.MapDefinition(member1.GetCciAdapter()).GetInternalSymbol()); 1422var other = matcher.MapDefinition(member.GetCciAdapter()); 1492var mappedField1 = (Cci.IFieldDefinition)matcher.MapDefinition(field1); 1493var mappedField2 = (Cci.IFieldDefinition)matcher.MapDefinition(field2); 1494var mappedField3 = (Cci.IFieldDefinition)matcher.MapDefinition(field3); 1549var field1 = (Cci.IFieldDefinition)matcher.MapDefinition(field0); 1620Assert.Null(matcher.MapDefinition(field1)); 1621Assert.Null(matcher.MapDefinition(field2)); 1622Assert.Null(matcher.MapDefinition(field3)); 1690var mappedField1 = (Cci.IFieldDefinition)matcher.MapDefinition(field1); 1691var mappedField2 = (Cci.IFieldDefinition)matcher.MapDefinition(field2); 1692var mappedField3 = (Cci.IFieldDefinition)matcher.MapDefinition(field3); 1727Assert.Same(members0[i], matcher.MapDefinition(members1[i].GetCciAdapter()).GetInternalSymbol()); 1769Assert.Same(members0[i], matcher.MapDefinition(members1[i * 2].GetCciAdapter()).GetInternalSymbol()); 1779Assert.Null(matcher.MapDefinition(members1[i].GetCciAdapter())); 1821Assert.Same(members0[i * 2], matcher.MapDefinition(members1[i].GetCciAdapter()).GetInternalSymbol()); 1866Assert.Null(matcher.MapDefinition(member.GetCciAdapter())); 1911Assert.Null(matcher.MapDefinition(member.GetCciAdapter()));