1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 22:01:46 +03:00
Commit Graph

22210 Commits

Author SHA1 Message Date
Timothy Clem
27ce720904 Test out relative python imports 2018-05-15 11:26:16 -07:00
Charlie Somerville
68f73dfdb0 add type annotation to help me understand this code 2018-05-15 11:22:57 -07:00
Timothy Clem
1d2b15680d Handle python import . from moduleY syntax 2018-05-15 11:21:00 -07:00
Charlie Somerville
d9b2c8ed80 add ValueRef and value functions 2018-05-15 11:00:45 -07:00
Rob Rix
a442683e85 Merge branch 'master' into fix-abstract-semantics 2018-05-15 13:54:01 -04:00
Rob Rix
3ab781ea48 🔥 all the constraining functions since we can use type applications instead. 2018-05-15 13:51:07 -04:00
Charlie Somerville
4bfc5f9ecd rename subtermValue to subtermRef 2018-05-15 10:38:16 -07:00
Rob Rix
47a7eeff61 Specialize ValueError construction/elimination to Value. 2018-05-15 13:27:23 -04:00
Rob Rix
bdd4e18c1b Generalize runValueError/with over the evaluator. 2018-05-15 13:25:36 -04:00
Rob Rix
7103e6b1a8 We no longer have to say this, apparently. 2018-05-15 13:22:13 -04:00
Rob Rix
500e96b8fc We already specify the location & value types. 2018-05-15 13:21:47 -04:00
Rob Rix
099f42c914 Placate hlint. 2018-05-15 13:21:12 -04:00
Rob Rix
3abc2da9df Merge branch 'master' into graph-rendering-and-serialization 2018-05-15 13:01:40 -04:00
Rob Rix
7e190024f8 📝 TermEvaluator. 2018-05-15 12:59:47 -04:00
Rob Rix
dcaad09deb Fix the specs. 2018-05-15 12:58:05 -04:00
Patrick Thomson
d7cdffc6c4 Merge branch 'master' into fix-json-instances 2018-05-15 12:52:46 -04:00
Rob Rix
0f4efa278c Run module & term analyses in TermEvaluator. 2018-05-15 12:50:38 -04:00
Patrick Thomson
15c20c3f77 Include semantic information in JSON fields.
Previously, instances of ToJSONFields1 for syntax nodes were provided
by an instance for Sum that assumed a Foldable syntax node. This is
not ideal because it omits almost all useful information associated
with a node, aside from its children: boolean nodes had no information
about their values, integers had no representation of the numbers they
stored, &c. This patch adds explicit ToJSONFields1 instances for all
our syntax nodes, and provides useful implementations where possible.

To save keystrokes, there is a default implementation for
ToJSONFields1 given a foldable instance. This preserves the old
behavior and maintains backwards compatibility.

I considered using advanced overlap for this, but it ultimately wasn't
worth the trouble.

Happily enough, there is no speed hit associated with making these
instances explicit.
2018-05-15 12:50:26 -04:00
Rob Rix
75b11eab95 Generalize providingLiveSet over the Effectful context. 2018-05-15 12:43:05 -04:00
Rob Rix
3a050c8b43 Generalize runEnvironmentError/With over the Effectful context. 2018-05-15 12:42:21 -04:00
Rob Rix
cdc768e23a We don’t even need to mention the location type. 2018-05-15 12:41:35 -04:00
Rob Rix
4dec9c82e0 Generalize runEvalError/With to any Effectful context. 2018-05-15 12:40:46 -04:00
Rob Rix
ff61b62efe Generalize runUnspecialized/With to any Effectful context. 2018-05-15 12:40:12 -04:00
Rob Rix
0ad398c38b Generalize runLoadError/With to any Effectful context. 2018-05-15 12:39:15 -04:00
Rob Rix
0ad39783bc Generalize runAddressError/With to any Effectful context. 2018-05-15 12:38:36 -04:00
Rob Rix
1e196183c6 Generalize runTypeError/runTypeErrorWith to any Effectful context. 2018-05-15 12:37:46 -04:00
Rob Rix
f0057456b7 Define a lifting of handlers from Evaluator to TermEvaluator. 2018-05-15 12:21:03 -04:00
Timothy Clem
a1608bbdd9 Merge pull request #1837 from github/tree-sitter-ruby-fix
++tree-sitter-ruby for infinite loop fix
2018-05-15 09:03:56 -07:00
Rob Rix
adbc029341 Derive an Alternative instance for TermEvaluator. 2018-05-15 12:01:13 -04:00
Rob Rix
d5bba69165 Re-export a bunch of effects stuff. 2018-05-15 11:59:42 -04:00
Rob Rix
bccc117ab8 Don’t re-export TermEvaluator from Evaluatable. 2018-05-15 11:45:51 -04:00
Rob Rix
a200a43099 Re-export TermEvaluator. 2018-05-15 11:45:32 -04:00
Rob Rix
8c82e1f4a2 Stub in a TermEvaluator newtype wrapping Evaluator. 2018-05-15 11:40:28 -04:00
Rob Rix
70c28fa288 Stub in a module for term evaluators. 2018-05-15 11:40:10 -04:00
Timothy Clem
41f230a46a ++tree-sitter-ruby for infinite loop fix 2018-05-15 08:17:48 -07:00
Rob Rix
4c712abf83 Merge remote-tracking branch 'origin/master' into fix-abstract-semantics 2018-05-15 11:16:37 -04:00
Rob Rix
d957ca989f Merge branch 'master' into graph-rendering-and-serialization 2018-05-15 11:02:58 -04:00
Rob Rix
f82094d70b Merge pull request #1836 from github/no-trace
No tracing b/c it breaks output
2018-05-15 11:01:47 -04:00
joshvera
18ce3409c7 Revert "Move grpc tool to semantic-server executable"
This reverts commit 520fffb4616b4dc146849a51ca86ebda1ac0887a.
2018-05-14 18:56:50 -04:00
joshvera
fbb273296e Move grpc tool to semantic-server executable 2018-05-14 18:50:44 -04:00
Rob Rix
e63351affd 🔥 SomeRenderer. 2018-05-14 18:44:53 -04:00
Rob Rix
367982bc8d Don’t use SomeRenderer in the CLI spec. 2018-05-14 18:44:19 -04:00
Rob Rix
16f07a17d1 🔥 Output. 2018-05-14 18:40:22 -04:00
Rob Rix
84ea29a60b Fix the tests. 2018-05-14 18:39:41 -04:00
Rob Rix
bf0d8e1b12 Move diffTerms into the where clause. 2018-05-14 18:39:20 -04:00
joshvera
0663fa9ac9 Remove Summaries intermediate object and product Error in semantic.proto 2018-05-14 18:35:36 -04:00
Rob Rix
b9cd02d8f1 Move runDiff into Semantic.Diff. 2018-05-14 18:25:47 -04:00
Timothy Clem
628aa27ccb No tracing b/c it breaks output 2018-05-14 15:19:09 -07:00
Rob Rix
938f08998b Rename withParsedBlob to withParsedBlobs. 2018-05-14 17:09:35 -04:00
Rob Rix
978abee421 🔥 a redundant constraint. 2018-05-14 17:07:59 -04:00