Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use indexedLines to cache the lineCol-offset correspondence #1301

Closed
ice1000 opened this issue Feb 2, 2025 · 4 comments · Fixed by #1307
Closed

Use indexedLines to cache the lineCol-offset correspondence #1301

ice1000 opened this issue Feb 2, 2025 · 4 comments · Fixed by #1307
Assignees

Comments

@ice1000
Copy link
Member

ice1000 commented Feb 2, 2025

Instead of using this shit

Image

@ice1000 ice1000 changed the title Used indexedLines to cache the lineCol-offset correspondence Use indexedLines to cache the lineCol-offset correspondence Feb 2, 2025
@ice1000
Copy link
Member Author

ice1000 commented Feb 2, 2025

static @NotNull ImmutableSeq<IntObjTuple2<String>> indexedLines(@NotNull String str) {

@ice1000
Copy link
Member Author

ice1000 commented Feb 2, 2025

Need to refactor that, ofc

@linxuanm linxuanm self-assigned this Feb 6, 2025
@linxuanm
Copy link
Member

linxuanm commented Feb 7, 2025

#1307

@HoshinoTented HoshinoTented linked a pull request Feb 7, 2025 that will close this issue
@ice1000
Copy link
Member Author

ice1000 commented Feb 7, 2025

#1307

No need to send a reply. GitHub supports linking a branch/PR with an issue

ice1000 added a commit that referenced this issue Feb 7, 2025
Caches line positions in `SourceFile`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants