1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 13:51:44 +03:00

Add Switch/Case to Syntax

This commit is contained in:
joshvera 2016-06-15 15:20:58 -07:00
parent 4bcf6afcf3
commit 6e7c5eeb5a

View File

@ -36,4 +36,6 @@ data Syntax
| VarDecl f
-- | A variable assignment in a variable declaration. var foo = bar;
| VarAssignment { varId :: f, varValue :: f }
| Switch { switchExpr :: f, cases :: [f] }
| Case { caseExpr :: f, caseStatements :: f }
deriving (Functor, Show, Eq, Foldable, Traversable)