Extracted ASTVisitor from NameModel