1
1
mirror of https://github.com/github/semantic.git synced 2024-12-20 13:21:59 +03:00
Commit Graph

23558 Commits

Author SHA1 Message Date
Rob Rix
c9d340affb Define topologicalSort using the depth-first algorithm.
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-06-25 15:55:49 -04:00
Rob Rix
abc872af86 Correct the docs for topologicalSort.
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-06-25 15:52:27 -04:00
Rob Rix
1ac4b8d006 Inline the definitiion of edgeCountsByVertex. 2018-06-25 13:05:22 -04:00
Rob Rix
091a341de4 Test topological sort on a -> b -> c.
This test fails.
2018-06-25 13:02:49 -04:00
Rob Rix
2e3636c015 Test topological sort on a -> b. 2018-06-25 13:02:37 -04:00
Rob Rix
f451d2bacd 📝 topologicalSort. 2018-06-25 12:57:12 -04:00
Rob Rix
95bad99319 Just modify for now. 2018-06-25 12:53:33 -04:00
Rob Rix
3fb45b5d50 Preserve the structure of the data we’re testing against. 2018-06-25 12:27:30 -04:00
Rob Rix
76185ed450 Use irrefutable patterns in the PHP specs. 2018-06-25 12:02:50 -04:00
Rob Rix
cb4938ef92 Add all the modules to the Go specs. 2018-06-25 11:59:27 -04:00
Rob Rix
525f025e73 Use irrefutable patterns in the Go specs. 2018-06-25 11:56:42 -04:00
Rob Rix
bfd79c062d 🔥 the “evaluates” prefix. 2018-06-25 11:55:54 -04:00
Rob Rix
65d85e682d Use irrefutable patterns in the Python import specs. 2018-06-25 11:55:00 -04:00
Rob Rix
7ae66f18ea Just say Python. 2018-06-25 11:51:17 -04:00
Rob Rix
7552099085 Use a State effect to work around https://github.com/joshvera/effects/issues/47 2018-06-25 11:38:05 -04:00
Rob Rix
01b00d3c7b Whoops. 2018-06-25 10:56:53 -04:00
Rob Rix
9e698cba12 Correct the docs for lookupModule. 2018-06-25 10:48:52 -04:00
Rob Rix
c5e15e7283 load & require are total (modulo exceptions). 2018-06-25 10:47:59 -04:00
Rob Rix
613e6b79bb Make more effort to show the errors in the Ruby spec. 2018-06-25 09:30:54 -04:00
Rob Rix
23ae10d847 Make more effort to show the errors in the TypeScript spec. 2018-06-25 09:26:31 -04:00
Rob Rix
d586d6dc09 Show the load order. 2018-06-22 16:06:27 -04:00
Rob Rix
c3a0adafaa I guess this was literally backwards 2018-06-22 16:05:54 -04:00
Rob Rix
346fad1097 fmap the topo sort over the import graph. 2018-06-22 16:00:36 -04:00
Rob Rix
903f048889 Don’t bind the heap when we aren’t using it. 2018-06-22 15:57:12 -04:00
Rob Rix
428b5a31dc These all import foo. 2018-06-22 15:47:31 -04:00
Rob Rix
2ed8688c28 Update the tests to pass a list of paths. 2018-06-22 15:45:42 -04:00
Rob Rix
98348908e6 🔥 some redundant imports. 2018-06-22 15:37:38 -04:00
Rob Rix
32f83378f3 evaluateProject takes a list of paths. 2018-06-22 15:26:46 -04:00
Rob Rix
19f3d720c1 Partially apply typecheckGoFile. 2018-06-22 15:10:03 -04:00
Rob Rix
88f820251d Partially apply eval*Project. 2018-06-22 15:06:31 -04:00
Rob Rix
e5546e8c86 Rename Merging' to Merging. 2018-06-22 11:31:56 -04:00
Rob Rix
f3802ba569 Rename askModuleTable' to askModuleTable. 2018-06-22 11:31:42 -04:00
Rob Rix
d3fad310f3 Repackage handleModules as a complete handler. 2018-06-22 11:31:02 -04:00
Rob Rix
11bdda42ce 🔥 runModules & friends. 2018-06-22 11:28:49 -04:00
Rob Rix
c7c2d20806 AAbbreviate the Show instance for Module a little further. 2018-06-22 11:23:07 -04:00
Rob Rix
05cf17d258 Show Module bodies. 2018-06-22 11:22:33 -04:00
Rob Rix
d97e235833 Rename the term parameter to body. 2018-06-22 11:21:10 -04:00
Rob Rix
18b0b37e2e Define a better Show instance for ModuleInfo. 2018-06-22 11:20:35 -04:00
Rob Rix
12c5dc32b2 🔥 an errant package version. 2018-06-22 10:38:03 -04:00
Rob Rix
92d50024ee Ditto for the call graph. 2018-06-22 10:34:24 -04:00
Rob Rix
9fa1befecb Graph modules which don’t import, and aren’t imported by, other modules. 2018-06-22 10:33:29 -04:00
Rob Rix
47411feb73 Tighten up the module table lookup. 2018-06-22 10:30:58 -04:00
Rob Rix
8cabd28911 We can foldMap instead of foldMapA. 2018-06-22 10:29:53 -04:00
Rob Rix
c0fe998bd5 Spacing. 2018-06-22 10:07:35 -04:00
Rob Rix
0c882fba87 Run in ghci & the tests with debug options. 2018-06-22 09:32:37 -04:00
Rob Rix
bd12fd92f9 Re-export debugOptions. 2018-06-22 09:31:37 -04:00
Rob Rix
b981b0c2e5 Add default options for debugging. 2018-06-22 09:31:32 -04:00
Rob Rix
cac0043c68 Re-export Options & defaultOptions. 2018-06-22 09:30:14 -04:00
Rob Rix
5efa9eb56d We no longer use tuple sections here. 2018-06-22 09:29:21 -04:00
Rob Rix
7bed885279 Skip graphing imports in the single module case. 2018-06-22 09:05:05 -04:00