public TypeRenamerState() { existingNames = new ExistingNames(); namespaceToNewName = new Dictionary<string, string>(StringComparer.Ordinal); createNamespaceName = new NameCreator("ns"); globalTypeNameCreator = new GlobalTypeNameCreator(existingNames); internalTypeNameCreator = new TypeNameCreator(existingNames); }
public TypeNameCreator(ExistingNames existingNames) { this.existingNames = existingNames; createUnknownTypeName = createNameCreator("Type"); createEnumName = createNameCreator("Enum"); createStructName = createNameCreator("Struct"); createDelegateName = createNameCreator("Delegate"); createClassName = createNameCreator("Class"); createInterfaceName = createNameCreator("Interface"); var names = new string[] { "Exception", "EventArgs", "Attribute", "Form", "Dialog", "Control", }; foreach (var name in names) nameInfos.add(name, createNameCreator(name)); }
public GlobalTypeNameCreator(ExistingNames existingNames) : base(existingNames) { }
public void merge(ExistingNames other) { foreach (var key in other.allNames.Keys) allNames[key] = true; }