Skip to content

Allow duplicate event names#279

Merged
sebaszm merged 3 commits into
R4_4from
development/allow_duplicate_events
Jun 9, 2026
Merged

Allow duplicate event names#279
sebaszm merged 3 commits into
R4_4from
development/allow_duplicate_events

Conversation

@sebaszm

@sebaszm sebaszm commented Jun 9, 2026

Copy link
Copy Markdown
Contributor
  • fix )) syntax typo
  • fix mutable default arg

Copilot AI review requested due to automatic review settings June 9, 2026 09:38
@sebaszm sebaszm requested a review from sivarajappan-siva June 9, 2026 09:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the code generators/parsers to (1) avoid a mutable default argument in the C++ parser include reader, (2) fix a C++ emission syntax typo, and (3) permit duplicate event names during JSON schema generation by disambiguating clashing event identifiers.

Changes:

  • Fix mutable default argument in CppParser.ReadFile() by switching inclusions default to None.
  • Fix an extra ) in generated C++ for hex decoding in rpc_emitter.py.
  • Adjust event-name clash handling in header_loader.py to allow duplicates (currently via # suffixing).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
ProxyStubGenerator/CppParser.py Reworks ReadFile() default argument handling for inclusions.
JsonGenerator/source/rpc_emitter.py Fixes emitted C++ syntax for hex decoding boolean result.
JsonGenerator/source/header_loader.py Changes event clash logic to allow duplicate event names by renaming on collision.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ProxyStubGenerator/CppParser.py Outdated
Comment thread JsonGenerator/source/header_loader.py
Copilot AI review requested due to automatic review settings June 9, 2026 10:21
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

LuaGenerator Results

View Results

No changes detected.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@sebaszm sebaszm merged commit 2c66d97 into R4_4 Jun 9, 2026
3 of 4 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants