Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

Export InputRef::emit#913

Merged
zesterer merged 2 commits into
zesterer:mainfrom
al8n:issue-912
Nov 18, 2025
Merged

Export InputRef::emit#913
zesterer merged 2 commits into
zesterer:mainfrom
al8n:issue-912

Conversation

@al8n

@al8n al8n commented Nov 14, 2025

Copy link
Copy Markdown
Contributor

Close #912.

Comment thread src/input.rs Outdated
self.cursor += skip;
}

/// Emits a non-fatal error

@zesterer zesterer Nov 18, 2025

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks!

Could you clarify that it emits it at the current input position? (i.e: that it's akin to inp.emit_at(inp.cursor(), error))

Also, full stops for consistency please!

Updated documentation for emit and emit_at methods to clarify their functionality.
@al8n
al8n requested a review from zesterer November 18, 2025 20:42
@zesterer

Copy link
Copy Markdown
Owner

Thanks for the PR!

@zesterer
zesterer merged commit 2a82a88 into zesterer:main Nov 18, 2025
4 checks passed
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.

feature: make InputRef::emit public

2 participants