Josh Vera
b87d476fba
Merge pull request #942 from github/go-functions-with-types
...
Go functions with types
2017-01-25 18:18:51 -05:00
Rick Winfrey
40940631fe
Merge branch 'master' into go-functions-with-types
2017-01-25 13:16:37 -08:00
joshvera
4de2396b0a
++tests
2017-01-25 15:50:17 -05:00
joshvera
b30b98375e
update tests
2017-01-25 11:45:50 -05:00
joshvera
bd5b2a4c93
Add optional type to Syntax.Function
2017-01-25 11:41:09 -05:00
Rob Rix
b65b2062ed
Merge pull request #935 from github/term-assignment-matches-on-categories
...
Term assignment matches on categories
2017-01-20 11:58:07 -05:00
Rob Rix
31afc718a1
Merge branch 'master' of https://github.com/github/semantic-diff into term-assignment-matches-on-categories
2017-01-19 16:46:40 -05:00
Rob Rix
3f60857321
Merge branch 'better-record-pattern-matches' into consolidate-common-term-assignment-patterns
2017-01-19 16:38:38 -05:00
Josh Vera
e5fe533b25
Merge pull request #936 from github/better-record-pattern-matches
...
Better record pattern matches
2017-01-19 16:16:27 -05:00
Rob Rix
23881c21b6
Hide that other definition of Nil.
2017-01-19 15:53:16 -05:00
Rob Rix
8e1c5706b6
Replace uses of (.:) with (:.).
2017-01-19 15:46:28 -05:00
Rob Rix
9f707bcf3a
Rename RCons to (:.).
...
We can’t use (.:) because Haskell doesn’t allow that. However, tokens starting with : are reserved for data constructors, so (:.) is, apparently, a perfectly cromulent constructor.
2017-01-19 15:42:51 -05:00
Rob Rix
d64108dfb8
Rename TermIndexOrNil to avoid clashing with new Record construction.
2017-01-19 15:41:50 -05:00
Rob Rix
877fec5e38
Rename RNil to Nil.
2017-01-19 15:36:04 -05:00
Rob Rix
abe529534a
Don’t add “modifier” for now.
2017-01-19 14:05:51 -05:00
Rob Rix
cd5a51aa7a
Disable -Wdeprecations on files pattern matching against Category.
...
We can’t 🔥 RescueModifier yet because of RWS instability. See also #778 .
2017-01-19 14:01:48 -05:00
Rob Rix
ae7a91d9da
Deprecate RescueModifier.
2017-01-19 14:01:01 -05:00
Rob Rix
eb8c09f2b5
Revert " 🔥 RescueModifier."
...
This reverts commit 9eda5f256678287b9252a7c654ffcaf486b22c21.
2017-01-19 13:51:24 -05:00
Rob Rix
ca1647d45e
Disambiguate the Rescue category 😞
2017-01-19 13:16:31 -05:00
Rob Rix
9c064da12f
Compute a simpler string for rescue modifiers.
2017-01-19 13:14:40 -05:00
Rob Rix
21dabbe077
🔥 RescueModifier.
2017-01-19 13:13:57 -05:00
Rob Rix
8df4e8ca7b
Look for Modifier Rescue, not RescueModifier.
2017-01-19 13:12:59 -05:00
Rob Rix
36a6760347
Match against Modifier categories where appropriate.
2017-01-19 13:09:39 -05:00
Rob Rix
2f3dfd2df7
Compact the unless/until rules.
2017-01-19 13:07:55 -05:00
Rob Rix
d9397f930c
Handle Until/Unless in the same manner as the other control statements/modifiers.
2017-01-19 13:06:12 -05:00
Rob Rix
72f2260164
Ruby term assignment is pure except for operators.
2017-01-19 13:01:59 -05:00
Rob Rix
37141178ea
Map Ruby modifier productions onto Modifier categories.
2017-01-19 12:56:09 -05:00
Rob Rix
408ad2ecc5
Add Modifier categories.
...
These are used when a normal syntactic category is attached as a modifier instead of as a statement, e.g.:
```ruby
if foo then bar end
```
vs.
```ruby
bar if foo
```
2017-01-19 12:55:06 -05:00
Rob Rix
33040ea22e
Assign terms based on the Category.
2017-01-19 12:26:45 -05:00
Rob Rix
83acde8ad4
Add a function computing the Category for a given language & production name.
2017-01-19 12:26:20 -05:00
Rob Rix
fde31b836e
Go term assignment is pure.
2017-01-19 12:02:35 -05:00
Josh Vera
e07166bd8f
Merge pull request #928 from github/more-go-terms
...
More go terms
2017-01-18 16:26:51 -05:00
joshvera
a5709517e7
bump ruby
2017-01-18 15:37:29 -05:00
joshvera
ee10187ba1
Merge remote-tracking branch 'origin/master' into more-go-terms
2017-01-18 15:36:02 -05:00
Josh Vera
44b7f3281c
Merge pull request #934 from github/evaluate-source-spans-eagerly
...
Evaluate source spans eagerly
2017-01-18 15:35:41 -05:00
joshvera
7880046c40
Bump ruby tests for class superclasses
2017-01-18 15:18:45 -05:00
joshvera
69a3dc061c
bump method tests
2017-01-18 15:12:54 -05:00
joshvera
95d6f7a850
Add a maybeRecursively so we compare optional values as insertions or deletions when one side is missing
2017-01-18 15:08:30 -05:00
joshvera
9966b88f1b
s/if statement/maybe
2017-01-18 14:07:39 -05:00
joshvera
7f396dd7b7
Rename Default to DefaultCase
2017-01-18 14:06:45 -05:00
joshvera
b3a300f745
Add docs
2017-01-18 14:02:06 -05:00
Rob Rix
dbcfb85c1c
This comment now applies to sourceSpan as well.
2017-01-18 13:40:55 -05:00
Rob Rix
0854ba66e2
Evaluate the SourceSpan strictly.
2017-01-18 13:39:58 -05:00
Rob Rix
60a8f588e4
Term assignment takes a pure SourceSpan.
...
We always access this now, so we don’t need to guard it in IO.
2017-01-18 13:39:40 -05:00
joshvera
d34b8e2354
Parse methods
2017-01-18 13:38:31 -05:00
joshvera
9c689cc05a
update tests for pairs
2017-01-18 13:23:54 -05:00
joshvera
d4c33c0176
Map keyed_element to Pair
2017-01-18 13:01:25 -05:00
joshvera
0acdf470e4
Remove identifer_list wrapper in field declarations
2017-01-18 12:53:12 -05:00
joshvera
8e88838495
Merge remote-tracking branch 'origin/master' into more-go-terms
2017-01-18 11:14:03 -05:00
joshvera
2af1bc0109
update tests
2017-01-17 21:06:49 -05:00