public override AstNode Visit(EnumDefinition node) { // Use the base class for enumerations. Structure building = node.GetStructure(); building.SetBase(currentModule.GetEnumClass()); try { building.FixInheritance(); } catch (ModuleException error) { Error(node, error.Message); } return(node); }