Skip to content

Add three new public interfaces - #549

Merged
toddjonker merged 1 commit into
ion-fusion:mainfrom
toddjonker:push-xrpmwyrrvwrt
Aug 25, 2026
Merged

Add three new public interfaces#549
toddjonker merged 1 commit into
ion-fusion:mainfrom
toddjonker:push-xrpmwyrrvwrt

Conversation

@toddjonker

Copy link
Copy Markdown
Member

These will replace SourceName and SourceLocation in public APIs. They have better separation of concerns between description, resource location, and module identity.

ResourceDescriptor and ResourcePosition generalize SourceName and SourceLocation respectively, without coupling to code-specific concerns like module identity.

CodePosition will replace SourceLocation in public APIs where that coupling is appropriate. It generally corresponds to a "stack frame" where we require a file+position but also want to display the module (and potentially other semantic context).

The "replaced" classes are likely to survive internally to optimize storage: the current design avoids having a ModuleId pointer in every source location.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

These will replace `SourceName` and `SourceLocation` in public APIs. They have better separation of concerns between description, resource location, and module identity.

`ResourceDescriptor` and `ResourcePosition` generalize `SourceName` and `SourceLocation` respectively, without coupling to code-specific concerns like module identity.

`CodePosition` will replace `SourceLocation` in public APIs where that coupling is appropriate. It generally corresponds to a "stack frame" where we require a file+position but also want to display the module (and potentially other semantic context).

The "replaced" classes are likely to survive internally to optimize storage: the current design avoids having a ModuleId pointer in every source location.
@toddjonker

Copy link
Copy Markdown
Member Author

RTDocs build had transient failure, and a retry succeeded: https://app.readthedocs.org/projects/ion-fusion-java/builds/34215498/

Not sure why the checks here didn't update, and I can't seem to get GitHub to reset/retry its view.

@toddjonker
toddjonker merged commit 194d255 into ion-fusion:main Aug 25, 2026
4 checks passed
@toddjonker
toddjonker deleted the push-xrpmwyrrvwrt branch August 25, 2026 00:34
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.

2 participants