def visit_classdef(self, node, parent, newstyle=None):
node, doc = self._get_doc(node)<EOL>newnode = nodes.ClassDef(node.name, doc, node.lineno, node.col_offset, parent)<EOL>metaclass = None<EOL>if PY3:<EOL><INDENT>for keyword in node.keywords:<EOL><INDENT>if keyword.arg == "<STR_LIT>":<EOL><INDENT>metaclass = self.visit(keyword, newnode).value<EOL>break<EOL><DEDENT><DEDENT><DEDENT>if node.decorator_list:<EOL><INDENT>decorators = self.visit_decorators(node, newnode)<EOL><DEDENT>else:<EOL><INDENT>decorators = None<EOL><DEDENT>newnode.postinit(<EOL>[self.visit(child, newnode) for child in node.bases],<EOL>[self.visit(child, newnode) for child in node.body],<EOL>decorators,<EOL>newstyle,<EOL>metaclass,<EOL>[<EOL>self.visit(kwd, newnode)<EOL>for kwd in node.keywords<EOL>if kwd.arg != "<STR_LIT>"<EOL>]<EOL>if PY3<EOL>else [],<EOL>)<EOL>return newnode<EOL>
visit a ClassDef node to become astroid