1
1
mirror of https://github.com/github/semantic.git synced 2024-12-03 00:16:52 +03:00
Commit Graph

22223 Commits

Author SHA1 Message Date
joshvera
33d31e045f appease hlint 2018-05-24 12:04:29 -04:00
Rick Winfrey
3d70af57a4 Add blank file test fixture 2018-05-23 15:59:32 -07:00
Rick Winfrey
32619a8124 Add literal test fixtures 2018-05-23 15:55:26 -07:00
Rick Winfrey
fdbbac1998 Assign float literals 2018-05-23 15:55:14 -07:00
Rick Winfrey
5463ab4a28 Assign function declarations 2018-05-23 15:37:50 -07:00
Rick Winfrey
e0bc3fd533 Assign integer literals 2018-05-23 15:37:15 -07:00
Rick Winfrey
4bffbb5c28 Assign Haskell files without a module declaration 2018-05-23 15:36:09 -07:00
Rick Winfrey
0c8c544cdd Merge pull request #1882 from github/bump-haskell-tree-sitter
Bump haskell-tree-sitter and add minimal Haskell assignment boilerplate
2018-05-23 15:13:00 -07:00
Rick Winfrey
34d4b3d154 Update Haskell.Syntax.Module to take single term for module body 2018-05-23 14:30:05 -07:00
Rick Winfrey
bd3001a359 Merge branch 'master' into bump-haskell-tree-sitter 2018-05-23 13:10:41 -07:00
Rick Winfrey
de94112e45 Remove Program syntax 2018-05-23 11:48:29 -07:00
Rick Winfrey
2a4e5bf010 Remove commented out instance body 2018-05-23 11:45:46 -07:00
Rick Winfrey
7bc88d088c Boilerplate and minimal syntax for Haskell assignment 2018-05-23 11:32:15 -07:00
Rick Winfrey
a11fa704f9 Bump haskell-tree-sitter
- Adds tree-sitter-haskell bindings
2018-05-23 09:44:58 -07:00
Patrick Thomson
168f1bea3c Merge pull request #1881 from github/strict-equals
Add strict-equality function.
2018-05-23 12:38:56 -04:00
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
Josh Vera
c868aba53e Merge pull request #1865 from github/fix-module-inclusion-edges
Fix module inclusion edges
2018-05-23 10:31:21 -04:00
Rob Rix
57607dc0e2 Merge branch 'master' into fix-module-inclusion-edges 2018-05-22 21:00:25 -04:00
Patrick Thomson
e168b08adc Merge pull request #1875 from github/fast-builds-by-default
Make builds run at -O0 by default, except for CI/deploy.
2018-05-22 18:05:28 -04:00
Patrick Thomson
2edafbf1d1 Merge branch 'master' into fast-builds-by-default 2018-05-22 17:52:18 -04:00
Patrick Thomson
1f26db7a5e -O2 is ridiculously slow, let's hold off for now 2018-05-22 17:48:07 -04:00
Rob Rix
16b09710d0 Merge branch 'master' into fix-module-inclusion-edges 2018-05-22 17:43:13 -04:00
Patrick Thomson
b38646e0e0 Merge pull request #1864 from github/add-parsing-timeout
Add timeout functionality for the parser
2018-05-22 17:40:13 -04:00
Patrick Thomson
c1d3a041cc set -Werror when building release 2018-05-22 17:38:13 -04:00
Patrick Thomson
f563a2c808 forgot a do 2018-05-22 17:25:17 -04:00
Patrick Thomson
88d7d19bb8 Make builds run at -O0 by default, except for CI/deploy.
It's always been easy to forget the `--fast` flag. With the introduction of
`semanticd`, forgetting that carries a significant speed hit, as GHC
optimizes the resulting executable very thoroughly, which entails a
significant uptick in time spent building. For our collective sanity's
sake, this patch makes `stack build` operate without optimizations. CI
and deploy jobs pass `--flag semantic:release` to `stack`, which
specifies the `-O2` level of optimizations.

Timing `stack clean && stack build` (which rebuilds the tree-sitter
packages) went from 6m17s to 3m04s on my machine.  When building just
`semantic` by itself, standard builds take 1m06s, whereas builds with
`--flag semantic:release` take 4m12s. (GHC does a lot of
optimizations!)
2018-05-22 17:18:03 -04:00
Josh Vera
c649005602 Merge branch 'master' into fix-module-inclusion-edges 2018-05-22 17:01:53 -04:00
Patrick Thomson
c8d5a8d231 add test for cancelling in-flight parsers 2018-05-22 17:01:17 -04:00
Patrick Thomson
e64d1e2d4c Merge remote-tracking branch 'origin/master' into add-parsing-timeout 2018-05-22 16:53:18 -04:00
Patrick Thomson
949b9be418 add spec 2018-05-22 16:53:03 -04:00
Timothy Clem
e828b75099 Merge pull request #1872 from github/all-in-one-ci
All in one ci
2018-05-22 13:42:11 -07:00
Patrick Thomson
dd23a2c513 Seconds -> milliseconds 2018-05-22 16:38:18 -04:00
Patrick Thomson
3eb550ac62 Merge branch 'add-parsing-timeout' of github.com:github/semantic into add-parsing-timeout 2018-05-22 16:37:33 -04:00
Patrick Thomson
124866bc95 Move haskell-tree-sitter to master 2018-05-22 16:36:37 -04:00
Timothy Clem
a20ea785ec Merge branch 'master' into all-in-one-ci 2018-05-22 13:31:17 -07: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