1 implementation of INamespaceMapper
Microsoft.DotNet.ApiCompatibility (1)
Mapping\NamespaceMapper.cs (1)
14public class NamespaceMapper : ElementMapper<INamespaceSymbol>, INamespaceMapper
30 references to INamespaceMapper
Microsoft.DotNet.ApiCompatibility (21)
DifferenceVisitor.cs (3)
29else if (mapper is INamespaceMapper nsMapper) 57foreach (INamespaceMapper @namespace in assembly.GetNamespaces()) 64public void Visit(INamespaceMapper @namespace)
IDifferenceVisitor.cs (3)
38/// Visits an <see cref="INamespaceMapper"/> and stores differences in the <see cref="CompatDifferences"/> collection. 40/// <param name="namespace">The <see cref="INamespaceMapper"/> to visit.</param> 41void Visit(INamespaceMapper @namespace);
Mapping\AssemblyMapper.cs (8)
11/// This also holds a list of <see cref="INamespaceMapper"/> to represent the mapping of namespaces in between 23private Dictionary<INamespaceSymbol, INamespaceMapper>? _namespaces; 29public IEnumerable<INamespaceMapper> GetNamespaces() 33_namespaces = new Dictionary<INamespaceSymbol, INamespaceMapper>(Settings.SymbolEqualityComparer); 59INamespaceMapper mapper = AddMapper(nsSymbol); 81INamespaceMapper mapper = AddMapper(kvp.Key, checkIfExists: true, typeForwardsOnly: true); 85INamespaceMapper AddMapper(INamespaceSymbol ns, bool checkIfExists = false, bool typeForwardsOnly = false) 87if (!_namespaces.TryGetValue(ns, out INamespaceMapper? mapper))
Mapping\IAssemblyMapper.cs (3)
10/// This also holds a list of <see cref="INamespaceMapper"/> to represent the mapping of namespaces in between 23/// <returns>The list of <see cref="INamespaceMapper"/>.</returns> 24IEnumerable<INamespaceMapper> GetNamespaces();
Mapping\ITypeMapper.cs (1)
18INamespaceMapper ContainingNamespace { get; }
Mapping\TypeMapper.cs (3)
19/// <param name="containingNamespace">The containing <see cref="INamespaceMapper"/>.</param> 24INamespaceMapper containingNamespace, 31public INamespaceMapper ContainingNamespace { get; } = containingNamespace;
Microsoft.DotNet.ApiCompatibility.Tests (9)
Mapping\AssemblyMapperTests.cs (1)
74IEnumerable<INamespaceMapper> namespaceMappers = assemblyMapper.GetNamespaces();
Mapping\NamespaceMapperTests.cs (1)
63IEnumerable<INamespaceMapper> namespaceMappers = assemblyMapper.GetNamespaces();
Mapping\TypeMapperTests.cs (7)
22INamespaceMapper containingNamespace = Mock.Of<INamespaceMapper>(); 38TypeMapper typeMapper = new(Mock.Of<IRuleRunner>(), Mock.Of<IMapperSettings>(), rightSetSize: 1, Mock.Of<INamespaceMapper>()); 45TypeMapper typeMapper = new(Mock.Of<IRuleRunner>(), Mock.Of<IMapperSettings>(), rightSetSize: 1, Mock.Of<INamespaceMapper>()); 75IEnumerable<INamespaceMapper> namespaceMappers = assemblyMapper.GetNamespaces(); 116IEnumerable<INamespaceMapper> namespaceMappers = assemblyMapper.GetNamespaces(); 156IEnumerable<INamespaceMapper> namespaceMappers = assemblyMapper.GetNamespaces();