1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 12:51:52 +03:00

Merge branch 'master' into how-many-cores-could-the-mongols-hoard-if-the-mongol-hordes-got-bored

This commit is contained in:
Josh Vera 2016-08-15 17:09:29 -04:00 committed by GitHub
commit 12b67bbd0c
2 changed files with 23 additions and 2 deletions

13
Untitled Normal file
View File

@ -0,0 +1,13 @@
For statements
For-in statements
while statements
do statements
return statements
let statements Not in ES2016
Verify generator functions map to Function
Throw statements
Try/Catch/Finally statements
Arrays
Objects with method definitions
Classes
Constructor calls

View File

@ -40,6 +40,8 @@ data Category
| IntegerLiteral
-- | A regex literal.
| Regex
-- | A return statement.
| Return
-- | A symbol literal.
| SymbolLiteral
-- | A template string literal.
@ -76,8 +78,6 @@ data Category
| Operator
-- | An object/dictionary/hash literal.
| Object
-- | A return statement.
| Return
-- | A throw statement.
| Throw
-- | A constructor statement, e.g. new Foo;
@ -118,6 +118,7 @@ instance Arbitrary Category where
, pure StringLiteral
, pure IntegerLiteral
, pure Regex
, pure Return
, pure SymbolLiteral
, pure TemplateString
, pure ArrayLiteral
@ -135,6 +136,13 @@ instance Arbitrary Category where
, pure Case
, pure Operator
, pure Object
, pure Throw
, pure Constructor
, pure Try
, pure Catch
, pure Finally
, pure Class
, pure Method
, Other <$> arbitrary
]