Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Conversation

@bamarsha
Copy link
Contributor

@bamarsha bamarsha commented Aug 6, 2020

This is the original problem that drove me to refactor the position and ranges types: I wanted to add the offset to the range directly in SyntaxProcessor, instead of returning a tuple to the CompilationManager. Now it's possible.

This simplifies the return types of several functions from Position * QsCompilerDiagnostic[] to QsCompilerDiagnostic[], and eliminates the risk that CompilationManager will forget to add the offsets to the range (which happened before: #491).

Part of #531.

Copy link
Contributor

@ScottCarda-MS ScottCarda-MS left a comment

Choose a reason for hiding this comment

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

The changes look good. I just have some questions about the underlying concepts, for my own clarity.

@bamarsha bamarsha merged commit ddea298 into feature/position-cleanup Aug 14, 2020
@bamarsha bamarsha deleted the samarsha/add-offset-early branch August 14, 2020 00:58
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.

4 participants