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

11243 Commits

Author SHA1 Message Date
Rob Rix
f52894d2e8 Rename DefaultFields to HasDefaultFields. 2017-03-31 15:18:27 -04:00
Rob Rix
46fe5ed705 Move DefaultFields into Info.hs. 2017-03-31 15:17:43 -04:00
Rob Rix
00de3a3ba2 Swap the order of arguments to match parserForLanguage. 2017-03-31 15:13:26 -04:00
Rob Rix
33d6020f9c Run the parser. 2017-03-31 15:12:56 -04:00
Rob Rix
a042055271 Scope the where clause to the ReadFilesAtSHAs command. 2017-03-31 15:11:27 -04:00
Rob Rix
b136eeca50 Define a Parse command. 2017-03-31 15:10:16 -04:00
Rob Rix
d2650ab4f0 Split parserForLanguage out of parserForType. 2017-03-31 14:40:11 -04:00
Rob Rix
7544edf932 🔥 a bunch of Languages we don’t parse (yet). 2017-03-31 14:39:52 -04:00
Rob Rix
782e172b34 Comment out blobsForSha for now. 2017-03-31 14:32:06 -04:00
Rob Rix
0772b64510 Yield inside the withRepository block. 2017-03-31 14:31:50 -04:00
Rob Rix
f2a699edfd Add a ReadFilesAtSHAs instruction. 2017-03-31 14:28:36 -04:00
Rob Rix
f0c288ab43 We don’t need to runReaderT inside the ReaderT. 2017-03-31 14:28:23 -04:00
Rob Rix
8647329cc7 Define an interpreter for Commands. 2017-03-31 12:58:27 -04:00
Rob Rix
cd8e082e6c Define a Command type. 2017-03-31 12:58:17 -04:00
Rob Rix
aa45751caf Import Command when we need both commands. 2017-03-31 11:53:36 -04:00
Rob Rix
b755a233e2 Re-export the parse and diff commands. 2017-03-31 11:52:51 -04:00
Rob Rix
e7e2b7edb7 Stub in a Command module. 2017-03-31 11:52:07 -04:00
Rob Rix
1fbe6a8319 Rename ParseCommand to Command.Parse. 2017-03-31 11:50:36 -04:00
Rob Rix
32b9dd9f16 Rename DiffCommand to Command.Diff. 2017-03-31 11:48:21 -04:00
Josh Vera
048003d18a Merge pull request #1060 from github/typescript
Add typescript support
2017-03-31 11:36:24 -04:00
joshvera
2224f87822 Regenerate public field definition tests 2017-03-30 18:07:52 -04:00
joshvera
81e178fc61 Keep track of clauses before a Method identifier 2017-03-30 18:00:13 -04:00
joshvera
eb512a6acf Add tests for method definition 2017-03-30 17:59:41 -04:00
joshvera
a20370b659 Add better interface tests 2017-03-30 17:48:16 -04:00
joshvera
b11725a01c hey maybe parse tsx files too 2017-03-30 16:03:41 -04:00
joshvera
c52623b04b Lookup Identifier term in VarAssignment 2017-03-30 15:12:56 -04:00
Rob Rix
957aa324a3 Merge branch 'master' into typescript 2017-03-30 14:32:22 -04:00
Rick Winfrey
fc71b863e1 Merge pull request #1039 from github/update-parse-command
Update ParseCommand
2017-03-30 11:31:34 -07:00
Rick Winfrey
f09e741936 Improve readability of buildParseNodes 2017-03-30 11:12:30 -07:00
Rick Winfrey
d18c2375cf Swap return for pure 2017-03-30 10:56:42 -07:00
Rick Winfrey
278a459389 Refactor O(n) check in term decorator to O(1) per execution 2017-03-30 10:56:42 -07:00
Rick Winfrey
679ba2ec1c Rename buildProgramNodes -> buildParseNodes 2017-03-29 17:22:03 -07:00
Rick Winfrey
4092b0aa0f 👋 DeriveAnyClass, ScopedTypeVariables, it was fun tho 2017-03-29 17:16:38 -07:00
Rick Winfrey
d54ec5c1b9 SExpression doesn't need term decoration, just parse 2017-03-29 17:02:55 -07:00
Rick Winfrey
ef28affa57 📝 correct comment 2017-03-29 17:01:47 -07:00
Rick Winfrey
374636aa47 📝 2017-03-29 16:53:26 -07:00
Rick Winfrey
73103f4e22 Extract sourceBlobsFromSha to top level 2017-03-29 16:53:18 -07:00
Rick Winfrey
9cbfd08133 📝 identifierFor 2017-03-29 16:52:53 -07:00
Rick Winfrey
b06bf6962d Update name sourceBlobs -> sourceBlobsFromArgs 2017-03-29 16:52:30 -07:00
Rick Winfrey
83e0600b65 Bind over parseWithDecorator 2017-03-29 16:33:08 -07:00
Rick Winfrey
7e2d5354e9 🔥 ' 2017-03-29 16:05:50 -07:00
Rick Winfrey
f05a991b88 I committed it even when I said I wouldn't 😆 2017-03-29 15:05:30 -07:00
Rick Winfrey
0283e7c574 Refactor ParseJSON -> ParseTreeFile, IndexFile, and ParseNode 2017-03-29 15:02:55 -07:00
Josh Vera
aeb8ef33c8 Merge branch 'master' into typescript 2017-03-29 17:06:22 -04:00
joshvera
7f568e8286 Update javascript tests since we parse JS with typescript now 2017-03-29 17:06:10 -04:00
joshvera
289f35da9a Parse js as typescript 2017-03-29 16:59:14 -04:00
joshvera
5339bd5ca8 add newlines 2017-03-29 16:56:25 -04:00
joshvera
b5f9938279 Remove ty from Method and throw every part of a call signature into a list 2017-03-29 16:24:54 -04:00
joshvera
89f307edf0 Don't pop off Params/Args from S.Function since type arguments can appear before or return types can appear after in some languages 2017-03-29 16:03:28 -04:00
Rick Winfrey
3bec2b5381 Merge branch 'update-parse-command' of github.com:github/semantic-diff into update-parse-command 2017-03-29 12:41:27 -07:00