-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(protobuf-parser): enhance parsing for enum definitions and inner…
… structures #31 Previously, the Protobuf parser did not fully support parsing enum definitions and inner structures within message definitions. This commit introduces the necessary changes to: - Update `ProtobufFullIdentListener` to properly handle `EnumDefContext` and add support for inner structures. - Refactor `constructMessageDef` and introduce `constructEnum` to build `CodeDataStruct` for enums. - Add a test case in `ProtobufAnalyserTest` to validate the parsing of enum definitions. These enhancements enable more comprehensive analysis of Protobuf files, including the handling of nested and enum-related definitions.
- Loading branch information
Showing
3 changed files
with
76 additions
and
14 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
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