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

33141 Commits

Author SHA1 Message Date
Ayman Nadeem
8c9c6ed7ec need an extra type parameter for field types 2020-02-20 16:40:38 -05:00
Ayman Nadeem
6c9f3d451e call f before constructor 2020-02-20 16:11:25 -05:00
Ayman Nadeem
615d760ff0 varT, not conT, because we have a type variable not a constructor 2020-02-20 16:11:07 -05:00
Ayman Nadeem
de828d608e delete ty' 2020-02-20 16:10:44 -05:00
Ayman Nadeem
64cf6601c7 construct extraParameterName 2020-02-20 16:10:22 -05:00
Ayman Nadeem
7d551762bb add extraTypeParameterName to symbolMatchinstance 2020-02-20 16:10:13 -05:00
Ayman Nadeem
acecb82e5f add an extra arg to symbolMatchingInstance 2020-02-20 16:09:52 -05:00
Ayman Nadeem
8b27bf0cd6 change variable to make it consistent for debugging 2020-02-20 16:09:35 -05:00
Ayman Nadeem
f67e55ab66 supply f to traversableInstances definition 2020-02-20 15:34:09 -05:00
Ayman Nadeem
76ca0060bc add an extra type parameter 2020-02-20 15:31:21 -05:00
Ayman Nadeem
1b22b0995c f should come first cosmetically 2020-02-20 15:31:05 -05:00
Ayman Nadeem
db804ecb23 f should come first 2020-02-20 15:30:39 -05:00
Ayman Nadeem
ecdaa12345 we can supply the extra parameter to the creation of a datatype 2020-02-20 15:08:23 -05:00
Ayman Nadeem
c7ac076a59 we want an additional type parameter, so it's f a not just a 2020-02-20 15:07:59 -05:00
Ayman Nadeem
2149d3a07a Merge branch 'master' into codegen-cleanup 2020-02-20 14:55:16 -05:00
Ayman Nadeem
74f35e309a rename TestHelpers for real 2020-02-20 14:53:19 -05:00
Ayman Nadeem
507f1c21a4 scope should be clear without TH. 2020-02-20 13:52:45 -05:00
Ayman Nadeem
037b03307e use TH functions instead of constructors to standardize 2020-02-20 13:48:31 -05:00
Patrick Thomson
d266a22408
Merge pull request #493 from github/haddoctor
Fix Haddock generation.
2020-02-19 16:27:50 -05:00
Patrick Thomson
467d6f0b03 Fix Haddock generation.
I found myself wanting a Haddock docset for PHP tags work.
Unfortunately, haddocset is behind a GHC version, so it does not
function correctly. At least HTML works, when you pull these
few Haddock-tag changes in.
2020-02-19 13:24:51 -05:00
Patrick Thomson
59be0e0025
Merge pull request #492 from github/respect-this-failure
Ensure that the failParsingForTesting flag is always respected.
2020-02-19 08:34:11 -05:00
Patrick Thomson
450f274490 Ensure that the failParsingForTesting flag is always respected.
The `runAssignment` code path makes sure to check that the
`failParsingForTesting` flag is set and throwing an error if
so; this patch ensures that the check happens on every code path.

I chose not to change the `runAssignment` code path to use this new
executeParserAction function, since that whole spiel is going away.
2020-02-18 15:21:47 -05:00
Ayman Nadeem
9df8160df9 remove ^ from hedgehog version bound 2020-02-14 16:37:30 -05:00
Ayman Nadeem
a1a2ca1533 use TH.plainTV instead of TH.PlainTV 2020-02-14 16:29:19 -05:00
Patrick Thomson
81aa69e13b
Merge pull request #487 from github/super-modules
Remove submodules now that parsers provide grammars themselves.
2020-02-14 14:59:10 -05:00
Patrick Thomson
ea641ab602 Stray imports. 2020-02-14 14:19:32 -05:00
Patrick Thomson
37b391b3a4
Merge pull request #468 from github/codegen-migration-leftovers
Codegen migration leftovers
2020-02-14 13:33:45 -05:00
Patrick Thomson
e45bb13fb1 Remove submodules now that parsers provide grammars themselves. 2020-02-14 13:25:37 -05:00
Patrick Thomson
29739363c3 Institute precise PHP parsing. 2020-02-14 13:19:42 -05:00
Patrick Thomson
c3279290ae Merge remote-tracking branch 'origin/master' into codegen-migration-leftovers 2020-02-14 13:03:32 -05:00
Patrick Thomson
26d3f221ee Parse PHP in a precise manner now that its assignment is disabled. 2020-02-14 12:54:23 -05:00
Patrick Thomson
5886af5e15
Merge pull request #479 from github/a-newtype-of-science
Use CurrentScope to indicate the significance of Names.
2020-02-14 12:22:58 -05: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
Ayman Nadeem
82a0062f3c change AST.Test to AST.TestHelpers 2020-02-14 11:33:01 -05:00
Ayman Nadeem
6c24228187 🥕bounds 2020-02-14 11:29:25 -05:00
Ayman Nadeem
6710c80770 opt for 🚧instead of "temporarily disabled" 2020-02-14 11:12:59 -05:00
Patrick Thomson
7a5fc45b32 fix the tests 2020-02-13 18:29:35 -05:00
Patrick Thomson
54911616a6 These explicit CurrentScope constructors help readability. 2020-02-13 18:02:46 -05:00
Patrick Thomson
c3ce8a7624 Merge remote-tracking branch 'origin/master' into a-newtype-of-science 2020-02-13 17:58:04 -05:00
Ayman Nadeem
3ef135e2d1 refactor 2020-02-13 17:17:27 -05:00
Ayman Nadeem
aed2ce774f simplify readability 2020-02-13 16:51:59 -05:00
Ayman Nadeem
4d744ffdd9 use constructor instead of String in signature 2020-02-13 16:17:26 -05:00
Ayman Nadeem
5a94fda83a factor out repeated traversalInstances 2020-02-13 16:07:35 -05:00
Ayman Nadeem
f08e0d9dda use mappend instead of <> 2020-02-13 16:01:25 -05:00
Ayman Nadeem
75bbed48f5 Update semantic-json.cabal 2020-02-13 13:47:26 -05:00
Ayman Nadeem
08860756b8 we're not quite ready to part ways with this just yet 2020-02-13 13:05:13 -05:00
Josh Vera
3b67dd3b33
Merge branch 'inject-project' into a-newtype-of-science 2020-02-13 12:45:52 -05:00
Josh Vera
ff6e145fbb
Merge pull request #478 from github/inject-project
Propagate module/path information into generated scope graphs.
2020-02-13 12:44:55 -05:00
Ayman Nadeem
06a16c2c91 remove phpParser from Semantic.Graph 2020-02-13 12:38:53 -05:00