1 implementation of ITypeMapper
Microsoft.DotNet.ApiCompatibility (1)
Mapping\TypeMapper.cs (1)
25
ITypeMapper? containingType = null) : ElementMapper<ITypeSymbol>(ruleRunner, settings, rightSetSize),
ITypeMapper
41 references to ITypeMapper
Microsoft.DotNet.ApiCompatibility (31)
DifferenceVisitor.cs (4)
33
else if (mapper is
ITypeMapper
typeMapper)
66
foreach (
ITypeMapper
type in @namespace.GetTypes())
73
public void Visit(
ITypeMapper
type)
79
foreach (
ITypeMapper
nestedType in type.GetNestedTypes())
IDifferenceVisitor.cs (3)
44
/// Visits an <see cref="
ITypeMapper
"/> and stores differences in the <see cref="CompatDifferences"/> collection.
46
/// <param name="type">The <see cref="
ITypeMapper
"/> to visit.</param>
47
void Visit(
ITypeMapper
type);
Mapping\IMemberMapper.cs (1)
16
ITypeMapper
ContainingType { get; }
Mapping\INamespaceMapper.cs (2)
10
/// This also holds a list of <see cref="
ITypeMapper
"/> to represent the mapping of types in between
24
IEnumerable<
ITypeMapper
> GetTypes();
Mapping\ITypeMapper.cs (4)
10
/// This also holds the nested types as a list of <see cref="
ITypeMapper
"/> and the members defined within the type
23
ITypeMapper
? ContainingType { get; }
33
/// <returns>The list of <see cref="
ITypeMapper
"/> representing the nested types.</returns>
34
IEnumerable<
ITypeMapper
> GetNestedTypes();
Mapping\MemberMapper.cs (3)
15
/// <param name="containingType">The containing <see cref="
ITypeMapper
"/>.</param>
19
ITypeMapper
containingType) : ElementMapper<ISymbol>(ruleRunner, settings, rightSetSize), IMemberMapper
22
public
ITypeMapper
ContainingType { get; } = containingType;
Mapping\NamespaceMapper.cs (5)
11
/// This also holds a list of <see cref="
ITypeMapper
"/> to represent the mapping of types in between
16
private readonly Dictionary<ITypeSymbol,
ITypeMapper
> _types;
39
_types = new Dictionary<ITypeSymbol,
ITypeMapper
>(Settings.SymbolEqualityComparer);
44
public IEnumerable<
ITypeMapper
> GetTypes()
94
if (!_types.TryGetValue(type, out
ITypeMapper
? mapper))
Mapping\TypeMapper.cs (8)
13
/// This also holds the nested types as a list of <see cref="
ITypeMapper
"/> and the members defined within the type
20
/// <param name="containingType">The containing <see cref="
ITypeMapper
"/>. <see langword="null" />, if the type doesn't have a containing type.</param>
25
ITypeMapper
? containingType = null) : ElementMapper<ITypeSymbol>(ruleRunner, settings, rightSetSize), ITypeMapper
27
private Dictionary<ITypeSymbol,
ITypeMapper
>? _nestedTypes;
34
public
ITypeMapper
? ContainingType { get; } = containingType;
75
public IEnumerable<
ITypeMapper
> GetNestedTypes()
79
_nestedTypes = new Dictionary<ITypeSymbol,
ITypeMapper
>(Settings.SymbolEqualityComparer);
99
if (!_nestedTypes.TryGetValue(nestedType, out
ITypeMapper
? mapper))
Rules\MembersMustExist.cs (1)
31
/// Evaluates whether a type exists on both sides of the <see cref="
ITypeMapper
"/>.
Microsoft.DotNet.ApiCompatibility.Tests (10)
Mapping\MemberMapperTests.cs (2)
18
ITypeMapper
containingType = Mock.Of<
ITypeMapper
>();
Mapping\NamespaceMapperTests.cs (1)
66
IEnumerable<
ITypeMapper
> typeMappers = namespaceMappers.Single().GetTypes();
Mapping\TypeMapperTests.cs (7)
23
ITypeMapper
containingType = Mock.Of<
ITypeMapper
>();
78
IEnumerable<
ITypeMapper
> typeMappers = namespaceMappers.Single().GetTypes();
81
IEnumerable<
ITypeMapper
> nestedTypeMappers = typeMappers.Single().GetNestedTypes();
119
IEnumerable<
ITypeMapper
> typeMappers = namespaceMappers.Single().GetTypes();
159
IEnumerable<
ITypeMapper
> typeMappers = namespaceMappers.Single().GetTypes();
165
IEnumerable<
ITypeMapper
> nestedTypeMappers = typeMappers.Single().GetNestedTypes();