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

1473 Commits

Author SHA1 Message Date
joshvera
ec1ea9aa17 update ruby tests 2017-01-05 17:09:50 -05:00
joshvera
ae40908cd2 Update go tests 2017-01-05 17:08:28 -05:00
Rob Rix
7154708015 Stub in an Hspec/LeanCheck integration module. 2017-01-05 16:41:23 -05:00
Timothy Clem
4a3b8d3769 No need to qualify these 2016-12-13 08:38:18 -08:00
Timothy Clem
63def337ca Fix tests to use Category instead of String 2016-12-12 17:47:12 -08:00
Timothy Clem
cd2fe4a681 Calculate determiner from following summary, not preceding patch 2016-12-12 15:27:09 -08:00
Timothy Clem
91721682a6 Give BEGIN/END their own Syntax 2016-12-12 15:26:26 -08:00
Timothy Clem
005a5f43d0 Parse BEGIN/END {} for Ruby 2016-12-12 13:41:55 -08:00
Timothy Clem
5b10012466 Parse Ruby scope operator 2016-12-12 08:30:43 -08:00
Timothy Clem
1741cef639 Parse Ruby range expressions 2016-12-11 08:36:26 -08:00
Timothy Clem
526199c47d Parse pairs 2016-12-09 16:12:20 -08:00
Timothy Clem
7c9fc3e0c6 Parse singleton classes 2016-12-09 16:12:07 -08:00
Timothy Clem
616f7953a7 s/function call/method call 2016-12-09 16:10:56 -08:00
joshvera
1cc130394e update tests 2016-12-07 16:12:58 -05:00
joshvera
b9b1a38f54 update struct tests 2016-12-07 15:41:28 -05:00
joshvera
076afb77ec update tests 2016-12-07 13:26:31 -05:00
joshvera
a84d14244c ++tests 2016-12-06 16:09:12 -05:00
Timothy Clem
8db7340746 Try to generate ruby if tests again 2016-12-06 12:52:01 -08:00
Timothy Clem
6e42369ffe Collapse up math assignment into operator assignment syntax 2016-12-06 12:36:56 -08:00
Timothy Clem
85367c9312 Allow proper diffing of relational, bitwise and other operators in JavaScript
Fixes #771, a long standing issue in JavaScript diffing
2016-12-06 11:59:14 -08:00
Timothy Clem
3b3c6739f8 Accept all shapes of ruby operators 2016-12-06 11:56:42 -08:00
Timothy Clem
7d5741f0d3 Revert "Mysterious go ordering test fix"
This reverts commit 99c8fd24057dc3950b4b4b4b1d38b524a488fee4.
2016-12-06 11:54:40 -08:00
Timothy Clem
fa33dd90a6 Mysterious go ordering test fix 2016-12-06 11:23:27 -08:00
Timothy Clem
907d9d6cff Update termConstruction for ruby with new unary and binary 2016-12-06 11:23:10 -08:00
Timothy Clem
696191afe2 Left hand side focused multiple assignment 2016-12-06 08:51:52 -08:00
Timothy Clem
bb17a32539 New rescue productions 2016-12-06 08:51:34 -08:00
Timothy Clem
b13262771a Fix up method calls and member_access (call) 2016-12-06 08:34:15 -08:00
Timothy Clem
73514388b6 self,nil,true,false all have productions now 2016-12-06 08:30:08 -08:00
Timothy Clem
d70045abc4 Minor js updates after fixing switch/case 2016-12-06 08:29:34 -08:00
Timothy Clem
bde540cd61 Other form of lambda works too 2016-12-06 08:22:02 -08:00
Timothy Clem
bcfac758b6 Update lambda statements to single production 2016-12-06 08:20:27 -08:00
Timothy Clem
4cc250e6cd If statements work again 2016-12-06 08:19:54 -08:00
Timothy Clem
a99724bacd Ruby when/else parsing also works 2016-12-06 08:15:26 -08:00
Timothy Clem
d7317e7360 Fix up Ruby case/when parsing 2016-12-06 08:14:23 -08:00
Rick Winfrey
171544de29 Merge branch 'master' into javascript-improvements 2016-12-05 18:07:51 -06:00
Timothy Clem
e16055d71b Bit Ruby TODO list 2016-12-05 15:58:20 -08:00
Timothy Clem
37098cf5c1 Fix up JavaScript return summaries due to new shape 2016-12-05 15:57:20 -08:00
Timothy Clem
2ee93b4525 New shape for yield statements 2016-12-05 15:56:18 -08:00
Timothy Clem
47402c7c8a New shape for return statements 2016-12-05 15:54:59 -08:00
Timothy Clem
8bd7463dc2 Remove new_go.json 2016-12-05 14:53:24 -08:00
Timothy Clem
e7775aa7ff Fix up go tests (sort of) 2016-12-05 14:52:11 -08:00
Timothy Clem
a3b87fbe84 Remove stack clean call in build 2016-12-05 13:19:52 -08:00
Timothy Clem
fdf3c5d276 Fix up crazy span numbers in javascript tests 2016-12-05 13:02:46 -08:00
joshvera
89754d574a update tests 2016-12-01 16:07:40 -05:00
joshvera
b9ac5d866d update tests 2016-12-01 16:03:52 -05:00
Rick Winfrey
c23afa4682 Remove new_javascript.json generator file 2016-11-30 18:20:03 -06:00
Rick Winfrey
df5bb88c9e Update tests to include continue, yield and break statements 2016-11-30 18:19:10 -06:00
Rick Winfrey
bab0debf6d Merge branch 'master' into parser-option 2016-11-22 15:19:30 -06:00
joshvera
f71c35d617 Handle every case by pattern matching on name in termConstructor instead of (name, children) 2016-11-22 15:10:10 -05:00
joshvera
165b6bae6f update tests 2016-11-22 13:51:11 -05:00
joshvera
0ea0ff83d0 update tests 2016-11-22 13:34:21 -05:00
joshvera
c434f79162 Merge remote-tracking branch 'origin/master' into go-parser 2016-11-22 11:30:48 -05:00
joshvera
2f542a3952 update tests 2016-11-21 15:47:41 -05:00
joshvera
231310a484 update tests 2016-11-21 14:39:16 -05:00
joshvera
807752e33d Map indexed expressions to subscript access 2016-11-14 19:12:17 -05:00
joshvera
30a3961409 Add go, defer, and subscript access statements 2016-11-14 19:05:02 -05:00
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
Timothy Clem
b368c80fb7 Last tree-sitter-parser bump 2016-11-10 15:47:18 -08:00
joshvera
8dbac2c98a switch statements 2016-11-10 16:19:53 -05:00
Timothy Clem
d8b260e35e Remove new_ruby 2016-11-10 12:55:42 -08:00
Timothy Clem
3f5e78c483 Slightly different approach to hash arg summaries 2016-11-10 12:51:48 -08:00
joshvera
524c151968 ++tests 2016-11-10 15:36:44 -05: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
d978ff86b4 Get identation right for module 2016-11-08 15:54:02 -08:00
Timothy Clem
cafcd8fd91 Implement unless as a Negate syntax 2016-11-07 13:12:53 -08:00
Timothy Clem
b541a903dd Collapse up Ruby begin with Try syntax 2016-11-07 10:26:59 -08: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
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
Timothy Clem
c02c32ac7c Back to a single Rescue syntax 2016-11-04 12:29:02 -07:00
Timothy Clem
345d4ed12e Squotes on method context summaries 2016-11-04 08:08:45 -07:00
Rick Winfrey
7398e1cf4e Import Parse 2016-11-03 18:17:25 -05:00
Timothy Clem
91798e1fb2 Show diffs in test cases. sha1, sha2 -> shas 2016-11-03 16:02:56 -07:00
Rick Winfrey
a637b78d90 Update callsites 2016-11-03 16:48:17 -05:00
Timothy Clem
c7fd3e7434 A few updated JavaScript summaries 2016-11-03 14:34:26 -07:00
Timothy Clem
70b4a3714c Regenerate to catch method updates 2016-11-03 14:27:47 -07:00
Timothy Clem
769413813c Better begin and method declaration parsing and summaries 2016-11-03 14:24:05 -07:00
Timothy Clem
947a7f1602 No longer needed 2016-11-03 13:28:51 -07:00
Timothy Clem
6d32be890f Updated rescue and when tests 2016-11-03 13:26:53 -07:00
Timothy Clem
0bb8286a06 Didn't mean to commit this 2016-11-03 13:26:10 -07:00
Timothy Clem
8df2dca93b Improve begin and when testing 2016-11-03 13:11:02 -07:00
Timothy Clem
c02dbb071f New ensure and elseif tests with new template feature 2016-11-03 13:01:39 -07:00
Timothy Clem
aefd1e11dc Merge branch 'template-syntax' into more-ruby-parsing 2016-11-03 11:34:14 -07:00
Timothy Clem
4a3ded2302 Enable syntax level templating in test case generation 2016-11-03 11:07:10 -07:00
Timothy Clem
4daf39476e Parse rescue modifiers 2016-11-03 09:23:35 -07:00
Timothy Clem
a98185f1a6 Rescue blocks in all their glory 2016-11-02 17:18:09 -07:00
Timothy Clem
60de73b079 Revert some corpus changes that aren't needed 2016-11-02 17:10:18 -07:00
joshvera
733804973d update for-loop tests 2016-11-02 18:46:48 -04:00
joshvera
beb466c260 Fix if statement tests 2016-11-02 18:09:32 -04:00
Timothy Clem
2e4c4ee194 Fully test case/when/else 2016-11-02 13:46:33 -07:00
joshvera
cbaab076d0 update tests 2016-11-02 16:46:17 -04:00
Timothy Clem
fbe7bc7c13 Better handling of case/when 2016-11-02 13:42:06 -07:00
joshvera
e45fd2d682 Fix grouped-var-declaration tests 2016-11-02 16:35:38 -04:00
joshvera
60af2fb271 regenerate tests 2016-11-02 16:29:27 -04:00
joshvera
061d605d2d Fix tests for const-declarations-with-types, const-with-implicit-values 2016-11-02 16:14:44 -04:00
Timothy Clem
295d03dd43 Handle rescue blocks 2016-11-02 13:05:30 -07:00