visitIdent: tree.symbol check if varSymbol for appropriate handling of tree.type == DECLARED