Base:
method
MapDefinition
Microsoft.CodeAnalysis.Emit.SymbolMatcher.MapDefinition(Microsoft.Cci.IDefinition)
79 references to MapDefinition
Microsoft.CodeAnalysis.CSharp (5)
Emitter\EditAndContinue\CSharpDefinitionMap.cs (5)
61if (_mapToMetadata.MapDefinition(def)?.GetInternalSymbol() is PENamedTypeSymbol other) 73if (_mapToMetadata.MapDefinition(def)?.GetInternalSymbol() is PEEventSymbol other) 85if (_mapToMetadata.MapDefinition(def)?.GetInternalSymbol() is PEFieldSymbol other) 97if (_mapToMetadata.MapDefinition(def)?.GetInternalSymbol() is PEMethodSymbol other) 109if (_mapToMetadata.MapDefinition(def)?.GetInternalSymbol() is PEPropertySymbol other)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (74)
Emit\EditAndContinue\SymbolMatcherTests.cs (74)
103var other = matcher.MapDefinition((Cci.IDefinition)member.GetCciAdapter()); 146var other = matcher.MapDefinition((Cci.IMethodDefinition)member.GetCciAdapter()); 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()); 585var mappedX1 = (Cci.IFieldDefinition)matcher.MapDefinition(x1); 586var mappedX2 = (Cci.IFieldDefinition)matcher.MapDefinition(x2); 654var mappedX1 = (Cci.IFieldDefinition)matcher.MapDefinition(x1); 655var mappedX2 = (Cci.IFieldDefinition)matcher.MapDefinition(x2); 689var other = matcher.MapDefinition(member.GetCciAdapter()); 722var other = matcher.MapDefinition(member.GetCciAdapter()); 755var other = matcher.MapDefinition(member.GetCciAdapter()); 788var other = matcher.MapDefinition(member.GetCciAdapter()); 821var other = matcher.MapDefinition(member.GetCciAdapter()); 854var other = matcher.MapDefinition(member.GetCciAdapter()); 887var other = matcher.MapDefinition(member.GetCciAdapter()); 920var other = matcher.MapDefinition(member.GetCciAdapter()); 953var other = matcher.MapDefinition(member.GetCciAdapter()); 986var 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()); 1097Assert.Null(matcher.MapDefinition(p1.GetCciAdapter())); 1098Assert.Null(matcher.MapDefinition(q1.GetCciAdapter())); 1099Assert.Null(matcher.MapDefinition(r1.GetCciAdapter())); 1101Assert.Same(s0, matcher.MapDefinition(s1.GetCciAdapter()).GetInternalSymbol()); 1102Assert.Same(t0, matcher.MapDefinition(t1.GetCciAdapter()).GetInternalSymbol()); 1145var mappedProperty = (Cci.IPropertyDefinition)matcher.MapDefinition(property.GetCciAdapter()); 1182var other = matcher.MapDefinition(member.GetCciAdapter()); 1216var other = matcher.MapDefinition(member.GetCciAdapter()); 1250var other = matcher.MapDefinition(member.GetCciAdapter()); 1282var other = matcher.MapDefinition(member.GetCciAdapter()); 1353var mappedY1 = (Cci.IFieldDefinition)matcher.MapDefinition(y1); 1354var mappedY2 = (Cci.IFieldDefinition)matcher.MapDefinition(y2); 1413Assert.Same(x0, matcher.MapDefinition(x1.GetCciAdapter()).GetInternalSymbol()); 1414Assert.Same(y0, matcher.MapDefinition(y1.GetCciAdapter()).GetInternalSymbol()); 1415Assert.Same(m0, matcher.MapDefinition(m1.GetCciAdapter()).GetInternalSymbol()); 1416Assert.Same(n0, matcher.MapDefinition(n1.GetCciAdapter()).GetInternalSymbol()); 1417Assert.Same(p0, matcher.MapDefinition(p1.GetCciAdapter()).GetInternalSymbol()); 1418Assert.Same(q0, matcher.MapDefinition(q1.GetCciAdapter()).GetInternalSymbol()); 1419Assert.Same(e0, matcher.MapDefinition(e1.GetCciAdapter()).GetInternalSymbol()); 1420Assert.Same(f0, matcher.MapDefinition(f1.GetCciAdapter()).GetInternalSymbol()); 1458Assert.Same(f_0, matcher.MapDefinition(f_1.GetCciAdapter()).GetInternalSymbol()); 1498Assert.Null(matcher.MapDefinition(f_1.GetCciAdapter())); 1558Assert.Null(matcher.MapDefinition(f_1.GetCciAdapter())); 1589var other = matcher.MapDefinition(member.GetCciAdapter()); 1622Assert.Equal(member0, (MethodSymbol)matcher.MapDefinition(member1.GetCciAdapter()).GetInternalSymbol()); 1654Assert.Equal(member0, (MethodSymbol)matcher.MapDefinition(member1.GetCciAdapter()).GetInternalSymbol()); 1684Assert.Equal(member0, (PropertySymbol)matcher.MapDefinition(member1.GetCciAdapter()).GetInternalSymbol()); 1721var other = matcher.MapDefinition(member.GetCciAdapter()); 1790var mappedField1 = (Cci.IFieldDefinition)matcher.MapDefinition(field1); 1791var mappedField2 = (Cci.IFieldDefinition)matcher.MapDefinition(field2); 1792var mappedField3 = (Cci.IFieldDefinition)matcher.MapDefinition(field3); 1846var field1 = (Cci.IFieldDefinition)matcher.MapDefinition(field0); 1914Assert.Null(matcher.MapDefinition(field1)); 1915Assert.Null(matcher.MapDefinition(field2)); 1916Assert.Null(matcher.MapDefinition(field3)); 1981var mappedField1 = (Cci.IFieldDefinition)matcher.MapDefinition(field1); 1982var mappedField2 = (Cci.IFieldDefinition)matcher.MapDefinition(field2); 1983var mappedField3 = (Cci.IFieldDefinition)matcher.MapDefinition(field3); 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()));