* @see org.python.pydev.parser.jython.ast.VisitorIF#visitName(org.python.pydev.parser.jython.ast.Name)
*/
public Object visitName(Name node) throws Exception {
unhandled_node(node);
//when visiting the global namespace, we don't go into any inner scope.
SourceToken token = AbstractVisitor.makeToken(node, moduleName);
boolean found = true;
//on aug assign, it has to enter both, the load and the read (but first the load, because it can be undefined)
if (node.ctx == Name.Load || node.ctx == Name.Del || node.ctx == Name.AugStore) {
found = markRead(token);
}
if (node.ctx == Name.Store || node.ctx == Name.Param || node.ctx == Name.KwOnlyParam
|| (node.ctx == Name.AugStore && found)) { //if it was undefined on augstore, we do not go on to creating the token
String rep = token.getRepresentation();
if (checkCurrentScopeForAssignmentsToBuiltins()) {
if (builtinTokens.contains(rep)) {
// Overriding builtin...
onAddAssignmentToBuiltinMessage(token, rep);
}