Base:
method
MapDefinition
Microsoft.CodeAnalysis.Emit.SymbolMatcher.MapDefinition(Microsoft.Cci.IDefinition)
79 references to MapDefinition
Microsoft.CodeAnalysis.CSharp (5)
Emitter\EditAndContinue\CSharpDefinitionMap.cs (5)
61
if (_mapToMetadata.
MapDefinition
(def)?.GetInternalSymbol() is PENamedTypeSymbol other)
73
if (_mapToMetadata.
MapDefinition
(def)?.GetInternalSymbol() is PEEventSymbol other)
85
if (_mapToMetadata.
MapDefinition
(def)?.GetInternalSymbol() is PEFieldSymbol other)
97
if (_mapToMetadata.
MapDefinition
(def)?.GetInternalSymbol() is PEMethodSymbol other)
109
if (_mapToMetadata.
MapDefinition
(def)?.GetInternalSymbol() is PEPropertySymbol other)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (74)
Emit\EditAndContinue\SymbolMatcherTests.cs (74)
103
var other = matcher.
MapDefinition
((Cci.IDefinition)member.GetCciAdapter());
146
var other = matcher.
MapDefinition
((Cci.IMethodDefinition)member.GetCciAdapter());
178
var other = matcher.
MapDefinition
(member.GetCciAdapter());
215
var other = (MethodSymbol)matcher.
MapDefinition
(member1.GetCciAdapter()).GetInternalSymbol();
267
Assert.Same(f0, (MethodSymbol)matcher.
MapDefinition
(f1.GetCciAdapter()).GetInternalSymbol());
268
Assert.Same(g0, (MethodSymbol)matcher.
MapDefinition
(g1.GetCciAdapter()).GetInternalSymbol());
269
Assert.Null(matcher.
MapDefinition
(h1.GetCciAdapter()));
317
Assert.Equal(f0, (MethodSymbol)matcher.
MapDefinition
(f1.GetCciAdapter()).GetInternalSymbol());
318
Assert.Equal(g0, (MethodSymbol)matcher.
MapDefinition
(g1.GetCciAdapter()).GetInternalSymbol());
319
Assert.Null(matcher.
MapDefinition
(h1.GetCciAdapter()));
355
var mf1 = matcher.
MapDefinition
(f1.GetCciAdapter());
585
var mappedX1 = (Cci.IFieldDefinition)matcher.
MapDefinition
(x1);
586
var mappedX2 = (Cci.IFieldDefinition)matcher.
MapDefinition
(x2);
654
var mappedX1 = (Cci.IFieldDefinition)matcher.
MapDefinition
(x1);
655
var mappedX2 = (Cci.IFieldDefinition)matcher.
MapDefinition
(x2);
689
var other = matcher.
MapDefinition
(member.GetCciAdapter());
722
var other = matcher.
MapDefinition
(member.GetCciAdapter());
755
var other = matcher.
MapDefinition
(member.GetCciAdapter());
788
var other = matcher.
MapDefinition
(member.GetCciAdapter());
821
var other = matcher.
MapDefinition
(member.GetCciAdapter());
854
var other = matcher.
MapDefinition
(member.GetCciAdapter());
887
var other = matcher.
MapDefinition
(member.GetCciAdapter());
920
var other = matcher.
MapDefinition
(member.GetCciAdapter());
953
var other = matcher.
MapDefinition
(member.GetCciAdapter());
986
var other = matcher.
MapDefinition
(member.GetCciAdapter());
1040
Assert.Null(matcher.
MapDefinition
(p1.GetCciAdapter()));
1041
Assert.Null(matcher.
MapDefinition
(q1.GetCciAdapter()));
1042
Assert.Null(matcher.
MapDefinition
(r1.GetCciAdapter()));
1044
Assert.Same(s0, matcher.
MapDefinition
(s1.GetCciAdapter()).GetInternalSymbol());
1045
Assert.Same(t0, matcher.
MapDefinition
(t1.GetCciAdapter()).GetInternalSymbol());
1097
Assert.Null(matcher.
MapDefinition
(p1.GetCciAdapter()));
1098
Assert.Null(matcher.
MapDefinition
(q1.GetCciAdapter()));
1099
Assert.Null(matcher.
MapDefinition
(r1.GetCciAdapter()));
1101
Assert.Same(s0, matcher.
MapDefinition
(s1.GetCciAdapter()).GetInternalSymbol());
1102
Assert.Same(t0, matcher.
MapDefinition
(t1.GetCciAdapter()).GetInternalSymbol());
1145
var mappedProperty = (Cci.IPropertyDefinition)matcher.
MapDefinition
(property.GetCciAdapter());
1182
var other = matcher.
MapDefinition
(member.GetCciAdapter());
1216
var other = matcher.
MapDefinition
(member.GetCciAdapter());
1250
var other = matcher.
MapDefinition
(member.GetCciAdapter());
1282
var other = matcher.
MapDefinition
(member.GetCciAdapter());
1353
var mappedY1 = (Cci.IFieldDefinition)matcher.
MapDefinition
(y1);
1354
var mappedY2 = (Cci.IFieldDefinition)matcher.
MapDefinition
(y2);
1413
Assert.Same(x0, matcher.
MapDefinition
(x1.GetCciAdapter()).GetInternalSymbol());
1414
Assert.Same(y0, matcher.
MapDefinition
(y1.GetCciAdapter()).GetInternalSymbol());
1415
Assert.Same(m0, matcher.
MapDefinition
(m1.GetCciAdapter()).GetInternalSymbol());
1416
Assert.Same(n0, matcher.
MapDefinition
(n1.GetCciAdapter()).GetInternalSymbol());
1417
Assert.Same(p0, matcher.
MapDefinition
(p1.GetCciAdapter()).GetInternalSymbol());
1418
Assert.Same(q0, matcher.
MapDefinition
(q1.GetCciAdapter()).GetInternalSymbol());
1419
Assert.Same(e0, matcher.
MapDefinition
(e1.GetCciAdapter()).GetInternalSymbol());
1420
Assert.Same(f0, matcher.
MapDefinition
(f1.GetCciAdapter()).GetInternalSymbol());
1458
Assert.Same(f_0, matcher.
MapDefinition
(f_1.GetCciAdapter()).GetInternalSymbol());
1498
Assert.Null(matcher.
MapDefinition
(f_1.GetCciAdapter()));
1558
Assert.Null(matcher.
MapDefinition
(f_1.GetCciAdapter()));
1589
var other = matcher.
MapDefinition
(member.GetCciAdapter());
1622
Assert.Equal(member0, (MethodSymbol)matcher.
MapDefinition
(member1.GetCciAdapter()).GetInternalSymbol());
1654
Assert.Equal(member0, (MethodSymbol)matcher.
MapDefinition
(member1.GetCciAdapter()).GetInternalSymbol());
1684
Assert.Equal(member0, (PropertySymbol)matcher.
MapDefinition
(member1.GetCciAdapter()).GetInternalSymbol());
1721
var other = matcher.
MapDefinition
(member.GetCciAdapter());
1790
var mappedField1 = (Cci.IFieldDefinition)matcher.
MapDefinition
(field1);
1791
var mappedField2 = (Cci.IFieldDefinition)matcher.
MapDefinition
(field2);
1792
var mappedField3 = (Cci.IFieldDefinition)matcher.
MapDefinition
(field3);
1846
var field1 = (Cci.IFieldDefinition)matcher.
MapDefinition
(field0);
1914
Assert.Null(matcher.
MapDefinition
(field1));
1915
Assert.Null(matcher.
MapDefinition
(field2));
1916
Assert.Null(matcher.
MapDefinition
(field3));
1981
var mappedField1 = (Cci.IFieldDefinition)matcher.
MapDefinition
(field1);
1982
var mappedField2 = (Cci.IFieldDefinition)matcher.
MapDefinition
(field2);
1983
var mappedField3 = (Cci.IFieldDefinition)matcher.
MapDefinition
(field3);
2027
Assert.Same(members0[i], matcher.
MapDefinition
(members1[i].GetCciAdapter()).GetInternalSymbol());
2078
Assert.Same(members0[i], matcher.
MapDefinition
(members1[i * 2].GetCciAdapter()).GetInternalSymbol());
2088
Assert.Null(matcher.
MapDefinition
(members1[i].GetCciAdapter()));
2139
Assert.Same(members0[i * 2], matcher.
MapDefinition
(members1[i].GetCciAdapter()).GetInternalSymbol());
2193
Assert.Null(matcher.
MapDefinition
(member.GetCciAdapter()));
2247
Assert.Null(matcher.
MapDefinition
(member.GetCciAdapter()));