-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
noop: move map key parsing into a new function
The only diff is in how we return lex error in unsupported map key type: ``` // before return lex.Invalid("unsupported map key type"); // now return key.loc.Invalid("unsupported map key type"); ``` The motivation was to simplify the function call (1 parameter less), and I believe that the two are equivalent: https://github.com/protocolbuffers/protobuf/blob/0cda26d48db0241f6aca0e931ff0a31acea1a6c2/src/google/protobuf/json/internal/lexer.h#L113
- Loading branch information
1 parent
3494bb1
commit 7f8b7d6
Showing
1 changed file
with
77 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters