-
Notifications
You must be signed in to change notification settings - Fork 52
Add information required for LSP features to Parse AST #764
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
Merged
Merged
Changes from 41 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
0fd9d99
Semantic highlighting support
JonasAlaif e89c730
Initial work to add lsp support
JonasAlaif a57e307
Add even more features
JonasAlaif bf34ffb
Merge
JonasAlaif 00611a7
Fix merge issues
JonasAlaif 4d66c5c
Improve some parsing errors
JonasAlaif 14a1c09
Update failing cases, add parsing edge case
JonasAlaif b5bd646
Fix parsing error, due to ambiguity between typed call and bracketed exp
JonasAlaif 7217062
Crazy cuts everywhere
JonasAlaif 44b9931
Merge with more cuts version
JonasAlaif 23fb785
Start work on cleaning up to merge
JonasAlaif 580d869
Merge update
JonasAlaif f6b9b24
Finish reworking FastParser
JonasAlaif f834348
Almost done
JonasAlaif b4fadb2
Compiling
JonasAlaif b44cd21
Actually compiles
JonasAlaif 1765fc3
Merge in master
JonasAlaif fbff41c
Fix merge issues
JonasAlaif db65342
Clean up document symbol story
JonasAlaif d565779
Fix parsing issue
JonasAlaif c379b5f
Fix some bugs
JonasAlaif e10bc6f
Various fixes
JonasAlaif cb50467
Many small fixes
JonasAlaif 9a7b8e3
Tests pass
JonasAlaif 69cce40
Separate out LSP features
JonasAlaif 1fe8211
Add brackets and fix bug
JonasAlaif 5d790d5
Merge branch 'master' into sem-highlight
JonasAlaif 2ea6b5a
Fix tests
JonasAlaif 87e0cfc
Fix test annotations
JonasAlaif a019534
Remove LSP features
JonasAlaif ba47657
Clean up PR
JonasAlaif 00810c5
Clean up tests code
JonasAlaif 190a7e0
Update test to remove `Rational`
JonasAlaif b74d831
Fix macro issues
JonasAlaif edf9ba2
Fix issue with macros
JonasAlaif 899478e
Fix issue with directly nested macros
JonasAlaif 0ef69a4
Parse members in order and keep parsing after error
JonasAlaif 4653da0
Merge branch 'master' into sem-highlight
JonasAlaif b8dfd93
Fix warnings in 2 test cases
JonasAlaif 61b94bd
Return source position in parse error
JonasAlaif f0ccd0c
Clear up `PAssign` error message
JonasAlaif 0930905
Minor cleanup
marcoeilers 9f67812
Adapted test annotation
marcoeilers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| package viper.silver.ast.utility | ||
|
|
||
| import java.nio.file.Path | ||
| import scala.io.Source | ||
| import scala.util.{Using, Try} | ||
|
|
||
| trait FileLoader { | ||
| def loadContent(path: Path): Try[String] | ||
| } | ||
|
|
||
| trait DiskLoader extends FileLoader { | ||
| override def loadContent(path: Path): Try[String] = { | ||
| Using(Source.fromFile(path.toFile()))(_.mkString) | ||
| } | ||
| } | ||
|
|
||
| object DiskLoader extends DiskLoader |
This file contains hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.