zhujinxuan
e723cd535f
Fix graphtest compiling
2020-03-22 18:20:19 -04:00
Patrick Thomson
dd9d4f435f
Forgot to use this newtype in the carrier.
2020-02-14 12:01:30 -05:00
Patrick Thomson
24b8fbd870
fix tests, again
2020-02-14 11:42:12 -05:00
Patrick Thomson
7a5fc45b32
fix the tests
2020-02-13 18:29:35 -05:00
Patrick Thomson
047b602882
Propagate module/path information into generated scope graphs.
...
By adding a `Reader ModuleInfo` constraint to the scope graph DSL, we
can ensure that newly-introduced declarations and references get this
helpful information (rather than sticking a `lowerBound` in there).
2020-02-12 11:19:02 -05:00
joshvera
a1e00b3504
Fix ImportStatement
2020-02-11 15:50:59 -05:00
joshvera
9913031f97
Fix positions and kinds in tests
2020-02-11 13:06:29 -05:00
joshvera
284912ad21
Remove extra reference call in tests
2020-02-11 12:56:47 -05:00
joshvera
13ebd4650b
remove imports
2020-02-11 12:50:25 -05:00
joshvera
c588a8aab8
Revert runScopeGraph changes
2020-02-11 12:49:37 -05:00
Patrick Thomson
7715fd46a9
Remove the ScopeGraph effect and define it with a constraint kind.
2020-02-11 12:30:19 -05:00
joshvera
a572f05494
Move these to runScopeGraph
2020-02-11 11:55:32 -05:00
joshvera
639fac1a74
rename to newEdge
2020-02-07 22:21:23 -05:00
joshvera
5dc46a5f42
add expectedQualifiedImport
2020-02-07 21:36:15 -05:00
joshvera
b0e272e91a
stub in spans
2020-02-07 21:36:07 -05:00
Patrick Thomson
06e8c6ecaa
Break up Data.ScopeGraph and reorg semantic-scope-graph.
2020-02-07 15:08:33 -05:00
joshvera
c3dac243c2
remove redundant import
2020-02-06 15:30:27 -05:00
joshvera
ff1d8a73ab
Merge remote-tracking branch 'origin/master' into import-holes
2020-02-06 14:53:32 -05:00
joshvera
d8bad61c1f
fix tests
2020-02-05 19:52:47 -05:00
joshvera
0c4e86cb11
Call insertEdge in expectedImportHole
2020-02-05 19:47:24 -05:00
joshvera
f927f0b8c0
Rename Sketch effect to a ScopeGraph effect
2020-02-05 19:46:58 -05:00
joshvera
b95a575ae2
Change insertEdge to take 1 edge
2020-02-05 18:03:53 -05:00
Patrick Thomson
e4f58a7827
Merge remote-tracking branch 'origin/master' into hands-on-my-property
2020-02-05 10:48:37 -05:00
Patrick Thomson
4fc5b720fc
Revert "Move DeclProperties to ScopeGraph.Properties.Declaration."
...
This reverts commit 546bfb2581
.
2020-02-04 12:33:01 -05:00
Patrick Thomson
ffb1f828c6
Merge remote-tracking branch 'origin/master' into the-locative-case
2020-02-04 12:13:12 -05:00
Ayman Nadeem
114316c6c8
Merge pull request #448 from github/my-grate
...
Migrating ASTs to Semantic 🧀
2020-02-03 16:31:40 -05:00
Patrick Thomson
1672c57768
Move over Function and Reference properties.
2020-02-03 11:19:54 -05:00
Patrick Thomson
4bfbd5407e
Move DeclProperties to ScopeGraph.Properties.Declaration.
2020-02-03 11:11:21 -05:00
Patrick Thomson
546bfb2581
Move DeclProperties to ScopeGraph.Properties.Declaration.
2020-02-03 11:10:31 -05:00
Patrick Thomson
45c81efd2c
Preserve Python AST span information in scope graph.
...
- [ ] Depends on #451 .
2020-01-31 13:11:59 -05:00
Ayman Nadeem
0900bdbe74
Merge branch 'master' into my-grate
2020-01-29 15:09:17 -05:00
joshvera
4530d0c1d4
Stub import hole test
2020-01-29 14:14:08 -05:00
joshvera
9f64e31106
exhaust cases
2020-01-29 13:26:04 -05:00
joshvera
c707d3e11f
Merge remote-tracking branch 'origin/master' into function-scopes
2020-01-29 12:29:31 -05:00
joshvera
46d3e91a73
fix tests and start initial scope from lowerBound/Fresh 1
2020-01-28 16:28:24 -05:00
Ayman Nadeem
efe17d70b9
Add python grammar
2020-01-28 16:10:20 -05:00
Ayman Nadeem
69fd3e9cce
Update GraphTest.hs
2020-01-28 12:15:04 -05:00
joshvera
c9eb0cfa76
Add function arg test
2020-01-23 11:20:35 -05:00
joshvera
ff988e048c
Define simple function test
2020-01-22 17:31:28 -05:00
joshvera
67b96aa450
Pass DeclProperties in tests
2020-01-22 17:21:24 -05:00
joshvera
6021611a32
Merge remote-tracking branch 'origin/master' into function-scopes
2020-01-22 15:53:55 -05:00
Patrick Thomson
fb26d76137
Merge branch 'semantic-scope-graph' into name-name-go-away
2020-01-17 11:28:51 -05:00
Patrick Thomson
5c9615a5fe
Remove incomplete-uni-patterns pragma.
2020-01-17 11:21:03 -05:00
Patrick Thomson
7dacb55e35
🔥 Data.Name.
2020-01-17 11:01:59 -05:00
Patrick Thomson
b7c5989463
Give ToScopeGraph's module a more standard name.
2020-01-15 16:16:45 -05:00
joshvera
34a8eb77d6
WIP function-scopes
2020-01-15 15:01:16 -05:00
Patrick Thomson
d5bec1bf7a
No more orphan instances.
2020-01-15 15:00:01 -05:00
Patrick Thomson
90bef9691e
let the tests be run from root or semantic-python
2020-01-15 11:34:17 -05:00
Patrick Thomson
c3a2b299fc
placate hlint
2020-01-15 11:19:38 -05:00
joshvera
5ea07633d2
Failing reference test
2020-01-14 18:08:10 -05:00