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:
parent
2c613457d0
commit
b07955872b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user