[misc] token_for_code to be consistent with ruby-bindings.