Skip to content

BUILDSYS-573 now it's possible to unregister a previously registered …#117

Merged
JanFellner merged 10 commits intomainfrom
feature/BUILDSYS-573-ts-unset-handler
Feb 12, 2026
Merged

BUILDSYS-573 now it's possible to unregister a previously registered …#117
JanFellner merged 10 commits intomainfrom
feature/BUILDSYS-573-ts-unset-handler

Conversation

@chriss5
Copy link
Contributor

@chriss5 chriss5 commented Feb 12, 2026

Added removeHandler / unregisterOperation
Added a debugger break when trying to register a handler for an already registered operation/event

…event or operation handler. A debugger break is raised when trying to register a handler for an already registered operation/event
@chriss5 chriss5 requested a review from Copilot February 12, 2026 10:24
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds support for unregistering previously registered ROSE operation handlers and introduces a debug trap when duplicate handler registration is attempted.

Changes:

  • Extended the transport interface with unregisterOperation(operationID).
  • Implemented unregisterOperation in TSASN1Base to remove handler mappings by ID and name.
  • Updated the TS ROSE generator to emit a removeHandler() method that delegates to the transport.

Reviewed changes

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

File Description
compiler/back-ends/ts-gen/gluecode/TSROSEBase.ts Adds unregisterOperation to the transport interface so generated ROSE code can remove handlers.
compiler/back-ends/ts-gen/gluecode/TSASN1Base.ts Implements unregister logic and adds a debugger trap on duplicate registration.
compiler/back-ends/ts-gen/gen-ts-rose.c Generates a new removeHandler() method in the TS ROSE class that calls transport.unregisterOperation().

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

chriss5 and others added 3 commits February 12, 2026 11:38
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ccurence is notified; replaced the assertion with an output to stderr
@ESTOS ESTOS deleted a comment from Copilot AI Feb 12, 2026
@ESTOS ESTOS deleted a comment from Copilot AI Feb 12, 2026
@chriss5 chriss5 marked this pull request as ready for review February 12, 2026 14:29
@JanFellner JanFellner merged commit 2027149 into main Feb 12, 2026
4 checks passed
@JanFellner JanFellner deleted the feature/BUILDSYS-573-ts-unset-handler branch February 12, 2026 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants