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 Jul 23, 2020

Closes #506.

bamarsha and others added 28 commits July 21, 2020 10:36
* Add new Position and Range types

* Require line and column to be non-negative

* Require start <= end

* Replace private record with DU case

* Add documentation

* Fix sln file

* Remove custom equality/comparison

* Add backwards-compatible JSON serializers

* Disable Example test target for now

* Fix RangePosition serialization

* Generate valid ranges in SymbolManagementTests

* Skip execution tests for now

* Fix null offset in QsDeclarationAttribute

* Fix position + range

* Remove range + position

* Write private constructor on one line

* Rename Range.Combine to Range.Span

* Add more documentation

* Use 1-based range positions in serialization

* Re-enable C# generation tests

* Disable execution tests again

* Revert "Disable execution tests again"

This reverts commit ec0273f.

* Update package references

* Subtract 1 from all range positions in SerializationTests

* Replace TryGetFileId with GetFileId in SerializationTests

* Rename id to ident
# Conflicts:
#	src/QsCompiler/TextProcessor/QsExpressionParsing.fs
#	src/QsCompiler/TextProcessor/QsKeywords.fs
Merge master into feature/position-cleanup
Add offsets to diagnostic ranges in Core and SyntaxProcessor instead of CompilationManager
@bamarsha bamarsha marked this pull request as ready for review August 14, 2020 00:59
Copy link
Contributor

@bettinaheim bettinaheim left a comment

Choose a reason for hiding this comment

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

All in all really nice clean-up!
The request for changes is primarily related to the API naming.

@bettinaheim bettinaheim dismissed their stale review August 25, 2020 18:02

no longer applies

@bamarsha bamarsha merged commit 2d114c9 into master Aug 26, 2020
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.

Simplify position and range handling for syntax tree nodes

4 participants