mirror of
https://github.com/github/semantic.git
synced 2024-12-18 04:11:48 +03:00
📝 branchNode.
This commit is contained in:
parent
be464d49e2
commit
480549dd46
@ -113,6 +113,7 @@ import Data.Text.Encoding (decodeUtf8')
|
||||
import Text.Parser.Combinators as Parsers hiding (choice)
|
||||
import TreeSitter.Language
|
||||
|
||||
-- | Match a branch node, matching its children with the supplied 'Assignment' & returning the result.
|
||||
branchNode :: (Enum grammar, Ix grammar) => grammar -> Assignment ast grammar a -> Assignment ast grammar a
|
||||
branchNode sym child = symbol sym *> children child
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user