Browse Source

Create a new interface for the type map database. This will be used later for mock testing.

pull/1/head
triton 13 years ago
parent
commit
bd232b03ee
  1. 8
      src/Generator/Types/TypeMap.cs

8
src/Generator/Types/TypeMap.cs

@ -58,7 +58,13 @@ namespace Cxxi.Types
} }
} }
public class TypeDatabase public interface ITypeMapDatabase
{
bool FindTypeMap(Declaration decl, out TypeMap typeMap);
bool FindTypeMap(string name, out TypeMap typeMap);
}
public class TypeDatabase : ITypeMapDatabase
{ {
public IDictionary<string, System.Type> TypeMaps { get; set; } public IDictionary<string, System.Type> TypeMaps { get; set; }

Loading…
Cancel
Save