protected DefinedType(TypeDefineNode node) { if (EnumData.GetEnum(node.Name) != null) { throw SyntaxErrorException.TypeNameConflict(node.Name, node.Location); } Name = node.Name; DefinedVars = node.DefinedVars; MethodNodes = node.Methods; ConstructorNodes = node.Constructors; }