-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow writing tests with inline range and position definitions (#2799)
### Changes - Introduce `MarkupTestFile.cs`, a file for writing tests with inline range and position definitions. - Use the markup test feature for some of the tests in `DefinitionTest.cs` - Change the processing of text diffs coming from the client so the computation is linear in the size of the change, instead of linear in the size of the document + change. - Change CodeActionHandler and DafnyCompletionHandler so they no longer do a O(DocumentSize) computation to convert between positions and indices - Small change in logging so exceptions are more likely to end up in the log. ### Testing - Performance changes are untested - Logging changes are untested - Other changes are a refactoring, covered by existing tests <small>By submitting this pull request, I confirm that my contribution is made under the terms of the [MIT license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>
- Loading branch information
1 parent
9413c19
commit 056ce5c
Showing
15 changed files
with
491 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.