-
Notifications
You must be signed in to change notification settings - Fork 32
[WIP] Adding Position Annotation #205
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
Closed
Closed
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
e92b75c
Adding Position Annotation
zhujinxuan 9a7317b
Fix types
zhujinxuan b772c38
Fix checks
zhujinxuan 901d7f1
Better argument passing
zhujinxuan 235ec1b
Remove stack.yaml
zhujinxuan b314ed7
Named Pun
zhujinxuan 1e6e7f4
Fix positions
zhujinxuan d66d358
Better positioned
zhujinxuan bf19e59
Position Query
zhujinxuan 7e23100
Fix positions
zhujinxuan d004986
Path ticks for code coverage
zhujinxuan 7e11677
Add position to VariableDefinition
zhujinxuan 610f303
Fix tolerance
zhujinxuan df6d2eb
Annotate selection
zhujinxuan 0023709
Annotate PositionInfo
zhujinxuan a6dac95
Awaiting type constraint forn setPos
zhujinxuan 4c99586
Fix tix
zhujinxuan 0f37873
Remove helper file
zhujinxuan cedad6e
Omit positioninfo for Selection Children
zhujinxuan bb13548
Add position to schema application [wip]
zhujinxuan 60d135e
Fix tix
zhujinxuan 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
.stack-work | ||
tmp/ | ||
dist-newstyle/ |
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,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
HPC_DIR=$(stack path --dist-dir)/hpc | ||
GRAPHQL_API_MIX_ABSOLUTE_PATH=$(find $HPC_DIR -maxdepth 1 -name 'graphql-api-*') | ||
GRAPHQL_API_MIX_PATH=$(basename $GRAPHQL_API_MIX_ABSOLUTE_PATH) | ||
[[ -d tmp ]] || mkdir tmp | ||
|
||
sed s/GRAPHQL_API_MIX_PATH/$GRAPHQL_API_MIX_PATH/ ticks/graphql-api.txt > tmp/graphql-api.txt | ||
stack exec hpc -- overlay --hpcdir=$HPC_DIR --srcdir=. ./tmp/graphql-api.txt > tmp/graphql-api.tix | ||
stack exec hpc -- combine $(stack path --local-hpc-root)/combined/all/all.tix tmp/graphql-api.tix --union > tmp/all.tix |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick question: Under what circumstances would position be
Nothing
? Would it make sense to add a brief comment about that?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Annotation added in 0023709.
Nothing
will be used for manually constructed ASTs. For example, when a client manually construct AST and encode the AST to query (for sending to server). When constructing the AST, the position information is missing.