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

Add Syntax MemberAccess

This commit is contained in:
Rick Winfrey 2016-06-13 17:32:23 -05:00
parent 2c613457d0
commit b07955872b

View File

@ -23,4 +23,7 @@ data Syntax
| Function { id :: (Maybe f), params :: (Maybe f), expressions :: f }
-- | An assignment has an indetifier where f is a (Leaf a) and a value (Leaf a).
| Assignment { assignmentId :: f, value :: f }
-- | A member access contains a syntax, and another syntax that identifies a property or value in the first syntax.
-- | e.g. in Javascript x.y represents a member access syntax.
| MemberAccess { memberId :: f, property :: f }
deriving (Functor, Show, Eq, Foldable, Traversable)