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

9553 Commits

Author SHA1 Message Date
joshvera
6e248e76f0 Add select statements 2016-11-14 17:47:04 -05:00
joshvera
a1d9ccdcc9 ++type switch tests 2016-11-14 17:26:06 -05:00
joshvera
666452da18 Parse type switch statements 2016-11-14 17:22:51 -05:00
Timothy Clem
4c2e24bd35 Merge pull request #906 from github/ruby-kw-args
Handle Ruby keyword params and args
2016-11-10 15:55:11 -08:00
Timothy Clem
b368c80fb7 Last tree-sitter-parser bump 2016-11-10 15:47:18 -08:00
joshvera
ed532220d1 Match on case 2016-11-10 16:36:46 -05:00
joshvera
8dbac2c98a switch statements 2016-11-10 16:19:53 -05:00
Timothy Clem
c4df3ec5ab Some documentation for these parameter types 2016-11-10 12:59:48 -08:00
Timothy Clem
d8b260e35e Remove new_ruby 2016-11-10 12:55:42 -08:00
Timothy Clem
59356c0395 Spell out parameter 2016-11-10 12:55:06 -08:00
Timothy Clem
3f5e78c483 Slightly different approach to hash arg summaries 2016-11-10 12:51:48 -08:00
Timothy Clem
3986e0ae1a Optional parameter error case, note about keyword parameter fall through 2016-11-10 12:51:26 -08:00
joshvera
524c151968 ++tests 2016-11-10 15:36:44 -05:00
Timothy Clem
9ca3308ea4 Updates for new tree-sitter productions 2016-11-10 09:56:36 -08:00
Rick Winfrey
9e9e48bdc2 Preliminary step towards outputting the JSON representation of the ParseJSON structures, but this only traverses one level of depth. 2016-11-09 17:46:08 -06:00
Rick Winfrey
92337cd70b First time making ana work in semantic-code! 🎩 to @joshvera for the 🍐 2016-11-09 17:45:00 -06:00
Rick Winfrey
849da23323 Uncurry parser and blob pairs over the folder function 2016-11-09 17:44:11 -06:00
Rick Winfrey
d89f0a432d 🔥 old language pragmas 2016-11-09 17:43:36 -06:00
Rick Winfrey
9cce621004 Add ability to parse terms and decorate them with their source blob text 2016-11-09 17:43:14 -06:00
Rick Winfrey
4d3c2b1c70 Add ParseJSON data type and DeriveAnyClass for ToJSON and Functor 2016-11-09 17:42:10 -06:00
Rick Winfrey
f0ae836d03 Make ana part of the Prologue 2016-11-09 17:40:56 -06:00
Rick Winfrey
ac872df76c Add SourceText type and sourceType getter function 2016-11-09 17:39:35 -06:00
Rick Winfrey
117a131fc3 Add text conversion for Category 2016-11-09 17:39:07 -06:00
Timothy Clem
4dba510d83 Remove commented out code 2016-11-09 15:13:01 -08:00
Timothy Clem
f62269b7e9 Fill out split categories 2016-11-09 14:38:41 -08:00
Timothy Clem
5b27115ae3 Test out that unnamed parameters work OK 2016-11-09 13:44:33 -08:00
Timothy Clem
35dd550533 Keyword and positional params 2016-11-09 13:42:41 -08:00
Timothy Clem
d98d96688d Support keyword and hash arguments in Ruby 2016-11-09 10:48:50 -08:00
Timothy Clem
8d9e864b0a Track changes to ruby rescue productions 2016-11-09 10:48:22 -08:00
Timothy Clem
8d0297d89f Updated tree-sitter 2016-11-09 10:47:13 -08:00
Timothy Clem
03f65821ce Clean up guard to use more concise pattern 2016-11-09 10:45:25 -08:00
Timothy Clem
f37bcfd157 Merge pull request #903 from github/more-ruby-parsing
More ruby parsing (control flow blocks)
2016-11-09 08:49:06 -08:00
Timothy Clem
d978ff86b4 Get identation right for module 2016-11-08 15:54:02 -08:00
Timothy Clem
76422a219a One final tree-sitter bump 2016-11-08 14:53:01 -08:00
Timothy Clem
29cbf788cb No need for these now that source ranges are correct 2016-11-07 16:11:30 -08:00
Timothy Clem
41442873e0 Proper source ranges for Negate 2016-11-07 14:23:17 -08:00
Timothy Clem
ba9e0424ff Implement until as a negation of while 2016-11-07 13:33:41 -08:00
Timothy Clem
cafcd8fd91 Implement unless as a Negate syntax 2016-11-07 13:12:53 -08:00
Timothy Clem
363fb62bd7 Remove comment 2016-11-07 13:11:03 -08:00
Timothy Clem
b541a903dd Collapse up Ruby begin with Try syntax 2016-11-07 10:26:59 -08:00
Timothy Clem
ce2dbacde8 s/LastException/RescuedException 2016-11-07 08:00:06 -08:00
Timothy Clem
2b195508fd Streamline block expression 2016-11-04 15:45:26 -07:00
Timothy Clem
463d075879 Refactor ruby case/when into switch/case Syntax and start on elsif 2016-11-04 15:35:09 -07:00
Timothy Clem
961ea9a1de Fix ruby function v. method calls 2016-11-04 14:49:39 -07:00
Timothy Clem
8b425e0a91 Refactor javascript function_call term construction
Not strictly necessary since we always get argument_list productions
(even when there are no args passed), but nice for completeness.
2016-11-04 14:49:22 -07:00
Timothy Clem
5705393b10 Remove Args syntax entirely! 2016-11-04 13:42:06 -07:00
Timothy Clem
46d3066a97 Remove ruby parsing dependence on Args syntax 2016-11-04 13:30:32 -07:00
Timothy Clem
437522f5e1 Remove need for Params syntax 2016-11-04 13:05:28 -07:00
Timothy Clem
4ff0ccf653 New module/ternary test cases, back to broken multiple assignments 2016-11-04 12:57:08 -07:00
Timothy Clem
eee81e55fa Summaries look like this now 2016-11-04 12:56:04 -07:00