1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 12:23:08 +03:00
Commit Graph

14637 Commits

Author SHA1 Message Date
Patrick Thomson
a7f9633319 typo 2018-05-23 12:10:16 -04:00
Patrick Thomson
7da61bd4c9 Merge branch 'master' into strict-equals 2018-05-23 11:33:32 -04:00
Patrick Thomson
eaa54a3230 Add strict-equality function.
TypeScript, JavaScript, and PHP support an === operator, which
corresponds to strict equality (usually the equality you want). I've
added a constructor to Comparison that takes care of this. Actually
implementing non-strict equality for the above languages will have to
wait until we can build behavior a la carte.

I chose not to add Ruby's case-equality operator, though it uses ===,
since the behavior is so different. (For example, a === a is not
always true over Ruby's ===).
2018-05-23 11:28:31 -04:00
Rob Rix
16b09710d0 Merge branch 'master' into fix-module-inclusion-edges 2018-05-22 17:43:13 -04:00
Patrick Thomson
dd23a2c513 Seconds -> milliseconds 2018-05-22 16:38:18 -04:00
Rob Rix
221b17106e Merge branch 'master' into fix-module-inclusion-edges 2018-05-22 14:36:19 -04:00
Rob Rix
0984c8c725 Add vertices for lookups. 2018-05-22 14:20:03 -04:00
Rob Rix
00d5fbf627 Only include packages when requested to. 2018-05-22 14:15:10 -04:00
Rob Rix
577e5e4ace 🔥 graphingLoadErrors. 2018-05-22 14:13:51 -04:00
Rob Rix
cb264f5d36 We won’t ever have load errors to graph, so 🔥. 2018-05-22 14:13:17 -04:00
Rob Rix
178165abc2 Completely encapsulate the termwise analysis. 2018-05-22 14:13:01 -04:00
Rob Rix
2ee68fe0a3 Factor out a helper for the module analysis. 2018-05-22 14:12:35 -04:00
Rob Rix
11c0253df3 Accept a CLI flag to include the packages. 2018-05-22 14:10:37 -04:00
Rob Rix
74f6f1cfeb Move runGraph into Semantic.Graph. 2018-05-22 14:04:12 -04:00
Rob Rix
fd6dbe2ba1 🔥 a redundant constraint. 2018-05-22 13:56:39 -04:00
Rob Rix
a95b84ac2a Don’t graph packages in graphingModules. 2018-05-22 13:56:20 -04:00
Rob Rix
f41a1e9f51 Define an analysis to just graph packages. 2018-05-22 13:54:11 -04:00
Rob Rix
51bdfc2c84 Eavesdrop on loads. 2018-05-22 13:52:13 -04:00
Rob Rix
26e83423e0 We don’t define any undecidable instances any more. 2018-05-22 13:47:11 -04:00
Rob Rix
a2bea05066 Construct package vertices in the helper. 2018-05-22 13:45:30 -04:00
Rob Rix
43a0956629 Don’t export packageGraph. 2018-05-22 13:44:36 -04:00
Rob Rix
69dbfda246 Use a single entry point to construct module vertices. 2018-05-22 13:44:01 -04:00
Rob Rix
6d99476997 Revert "Provide a state effect for the previous module."
This reverts commit b6a3904a8d15728c4b378cca78eafdfb074ce85d.
2018-05-22 13:35:05 -04:00
Rob Rix
cf2011a811 Revert "Set the current module state."
This reverts commit c098e4684f24d8c3c0fe785758eb154cce9cb3a7.
2018-05-22 13:35:03 -04:00
Rob Rix
036df2416d Revert "Module inclusion uses the State effect."
This reverts commit 09b21e10807e27c6d5fc5b112478bfb60fc714bf.
2018-05-22 13:34:58 -04:00
Rob Rix
f9dea05ddb Revert "Bind the vertex."
This reverts commit 8e861863a5cee81cab3c22ceb3b0fb626b95fa5d.
2018-05-22 13:34:54 -04:00
Josh Vera
28925f8e92 Merge branch 'master' into add-parsing-timeout 2018-05-22 13:30:48 -04:00
Patrick Thomson
1721c67aa5 lint 2018-05-22 13:07:36 -04:00
Patrick Thomson
f2a55e5b0c Switch to using timeout and running the parser asynchronously. 2018-05-22 13:03:37 -04:00
Josh Vera
df7f14fb04 Merge branch 'master' into grpc-server 2018-05-22 12:53:04 -04:00
Patrick Thomson
1b2e9c9893 remove otiose lock and add explicit timeout 2018-05-22 12:45:07 -04:00
Rob Rix
84eb2f76ec Merge branch 'master' into fix-module-inclusion-edges 2018-05-22 12:00:43 -04:00
Patrick Thomson
a20efce735 maybeM is preferable to a case statement 2018-05-22 11:49:22 -04:00
Patrick Thomson
cf04b5e602 avoid possible race condition 2018-05-22 11:41:18 -04:00
Patrick Thomson
4be15ea6bc remove otiose C calls 2018-05-22 11:40:10 -04:00
Patrick Thomson
5f138682e3 better error name 2018-05-22 11:34:07 -04:00
Rob Rix
5e029b8f48 Bind the vertex. 2018-05-22 11:25:49 -04:00
Patrick Thomson
234e0bbc99 Add infrastructure for testing cancellation. 2018-05-22 11:17:04 -04:00
Rob Rix
4226bab371 Module inclusion uses the State effect. 2018-05-22 11:14:40 -04:00
Rob Rix
93c315402d Set the current module state. 2018-05-22 11:03:36 -04:00
Rob Rix
a4f6b26ae0 Provide a state effect for the previous module. 2018-05-22 11:02:45 -04:00
Patrick Thomson
d1618fe94d Add what seems like correctly-working timeout functionality. 2018-05-22 11:01:23 -04:00
Rick Winfrey
a01ed11736 Restrict import of Foreign.C.Types to CBool type 2018-05-21 16:27:43 -07:00
Rick Winfrey
ae316a3d7c Release TSTree after building the AST 2018-05-21 16:18:28 -07:00
Max Brunsfeld
1023097082 Update to use the new Tree-sitter API
Co-Authored-By: Rick Winfrey <rewinfrey@github.com>
2018-05-21 12:57:24 -07:00
joshvera
c4517cbc33 Remove RPCToCDiffRenderer 2018-05-21 15:36:26 -04:00
joshvera
378dad0d69 Merge remote-tracking branch 'origin/master' into grpc-server 2018-05-21 12:33:22 -04:00
Rob Rix
ca6b32378e Merge branch 'master' into allocator-effect 2018-05-18 11:09:20 -04:00
Josh Vera
053a158e59 Merge branch 'master' into update-fastsum 2018-05-18 10:44:08 -04:00
Rob Rix
52083e6126 evalQualifiedImport uses the Allocator effect. 2018-05-17 16:50:54 -04:00