-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Parser and YamlReader (#176)
* refactor(parser): decompose conditional for implicit document for initProductionTable method * refactor(yaml-reader): rename variable anchors to anchorMap Makes the name more descriptive and readable. By reading the name you can tell it's a hashmap which was not clear previously. * refactor(yaml-reader): extract method readScalarValue from readValueInternal Extract out the deserialization of scalar values to a new method. Make readValueInternal more modular * refactor(yaml-reader): rename method valueConvertedNumber to parseNumber The method valueConvertedNumber has been renamed to parseNumber for improved clarity and consistency with naming conventions. Enhances the readability of the codebase and better reflects the purpose of the method, which is to parse a string value into a Number object. * revert "refactor(yaml-reader): rename variable anchors to anchorMap" This reverts commit 78d10cd.
- Loading branch information
Showing
2 changed files
with
66 additions
and
40 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
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