tree-sitter-0.9.0.3: Unstable bindings for the tree-sitter parsing library.
Safe HaskellSafe-Inferred
LanguageHaskell2010

TreeSitter.Node

Documentation

data Node Source #

Constructors

Node 

Fields

Instances

Instances details
Storable Node Source # 
Instance details

Defined in TreeSitter.Node

Methods

sizeOf :: Node -> Int

alignment :: Node -> Int

peekElemOff :: Ptr Node -> Int -> IO Node

pokeElemOff :: Ptr Node -> Int -> Node -> IO ()

peekByteOff :: Ptr b -> Int -> IO Node

pokeByteOff :: Ptr b -> Int -> Node -> IO ()

peek :: Ptr Node -> IO Node

poke :: Ptr Node -> Node -> IO ()

Generic Node Source # 
Instance details

Defined in TreeSitter.Node

Associated Types

type Rep Node :: Type -> Type

Methods

from :: Node -> Rep Node x

to :: Rep Node x -> Node

Show Node Source # 
Instance details

Defined in TreeSitter.Node

Methods

showsPrec :: Int -> Node -> ShowS

show :: Node -> String

showList :: [Node] -> ShowS

Eq Node Source # 
Instance details

Defined in TreeSitter.Node

Methods

(==) :: Node -> Node -> Bool

(/=) :: Node -> Node -> Bool

type Rep Node Source # 
Instance details

Defined in TreeSitter.Node

type Rep Node = D1 ('MetaData "Node" "TreeSitter.Node" "tree-sitter-0.9.0.3-inplace" 'False) (C1 ('MetaCons "Node" 'PrefixI 'True) (((S1 ('MetaSel ('Just "nodeTSNode") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TSNode) :*: S1 ('MetaSel ('Just "nodeType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CString)) :*: (S1 ('MetaSel ('Just "nodeSymbol") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TSSymbol) :*: S1 ('MetaSel ('Just "nodeEndPoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TSPoint))) :*: ((S1 ('MetaSel ('Just "nodeEndByte") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "nodeChildCount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "nodeFieldName") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CString) :*: (S1 ('MetaSel ('Just "nodeIsNamed") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CBool) :*: S1 ('MetaSel ('Just "nodeIsExtra") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CBool))))))

nodeStartByte :: Node -> Word32 Source #

data TSPoint Source #

Constructors

TSPoint 

Fields

Instances

Instances details
Storable TSPoint Source # 
Instance details

Defined in TreeSitter.Node

Methods

sizeOf :: TSPoint -> Int

alignment :: TSPoint -> Int

peekElemOff :: Ptr TSPoint -> Int -> IO TSPoint

pokeElemOff :: Ptr TSPoint -> Int -> TSPoint -> IO ()

peekByteOff :: Ptr b -> Int -> IO TSPoint

pokeByteOff :: Ptr b -> Int -> TSPoint -> IO ()

peek :: Ptr TSPoint -> IO TSPoint

poke :: Ptr TSPoint -> TSPoint -> IO ()

Generic TSPoint Source # 
Instance details

Defined in TreeSitter.Node

Associated Types

type Rep TSPoint :: Type -> Type

Methods

from :: TSPoint -> Rep TSPoint x

to :: Rep TSPoint x -> TSPoint

Show TSPoint Source # 
Instance details

Defined in TreeSitter.Node

Methods

showsPrec :: Int -> TSPoint -> ShowS

show :: TSPoint -> String

showList :: [TSPoint] -> ShowS

Eq TSPoint Source # 
Instance details

Defined in TreeSitter.Node

Methods

(==) :: TSPoint -> TSPoint -> Bool

(/=) :: TSPoint -> TSPoint -> Bool

type Rep TSPoint Source # 
Instance details

Defined in TreeSitter.Node

type Rep TSPoint = D1 ('MetaData "TSPoint" "TreeSitter.Node" "tree-sitter-0.9.0.3-inplace" 'False) (C1 ('MetaCons "TSPoint" 'PrefixI 'True) (S1 ('MetaSel ('Just "pointRow") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "pointColumn") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32)))

data TSNode Source #

Constructors

TSNode !Word32 !TSPoint !Word32 !(Ptr ()) !(Ptr ()) 

Instances

Instances details
Storable TSNode Source # 
Instance details

Defined in TreeSitter.Node

Methods

sizeOf :: TSNode -> Int

alignment :: TSNode -> Int

peekElemOff :: Ptr TSNode -> Int -> IO TSNode

pokeElemOff :: Ptr TSNode -> Int -> TSNode -> IO ()

peekByteOff :: Ptr b -> Int -> IO TSNode

pokeByteOff :: Ptr b -> Int -> TSNode -> IO ()

peek :: Ptr TSNode -> IO TSNode

poke :: Ptr TSNode -> TSNode -> IO ()

Generic TSNode Source # 
Instance details

Defined in TreeSitter.Node

Associated Types

type Rep TSNode :: Type -> Type

Methods

from :: TSNode -> Rep TSNode x

to :: Rep TSNode x -> TSNode

Show TSNode Source # 
Instance details

Defined in TreeSitter.Node

Methods

showsPrec :: Int -> TSNode -> ShowS

show :: TSNode -> String

showList :: [TSNode] -> ShowS

Eq TSNode Source # 
Instance details

Defined in TreeSitter.Node

Methods

(==) :: TSNode -> TSNode -> Bool

(/=) :: TSNode -> TSNode -> Bool

type Rep TSNode Source # 
Instance details

Defined in TreeSitter.Node

type Rep TSNode = D1 ('MetaData "TSNode" "TreeSitter.Node" "tree-sitter-0.9.0.3-inplace" 'False) (C1 ('MetaCons "TSNode" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TSPoint)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Ptr ())) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Ptr ()))))))

newtype FieldId Source #

Constructors

FieldId 

Fields

Instances

Instances details
Storable FieldId Source # 
Instance details

Defined in TreeSitter.Node

Methods

sizeOf :: FieldId -> Int

alignment :: FieldId -> Int

peekElemOff :: Ptr FieldId -> Int -> IO FieldId

pokeElemOff :: Ptr FieldId -> Int -> FieldId -> IO ()

peekByteOff :: Ptr b -> Int -> IO FieldId

pokeByteOff :: Ptr b -> Int -> FieldId -> IO ()

peek :: Ptr FieldId -> IO FieldId

poke :: Ptr FieldId -> FieldId -> IO ()

Show FieldId Source # 
Instance details

Defined in TreeSitter.Node

Methods

showsPrec :: Int -> FieldId -> ShowS

show :: FieldId -> String

showList :: [FieldId] -> ShowS

Eq FieldId Source # 
Instance details

Defined in TreeSitter.Node

Methods

(==) :: FieldId -> FieldId -> Bool

(/=) :: FieldId -> FieldId -> Bool

Ord FieldId Source # 
Instance details

Defined in TreeSitter.Node

Methods

compare :: FieldId -> FieldId -> Ordering

(<) :: FieldId -> FieldId -> Bool

(<=) :: FieldId -> FieldId -> Bool

(>) :: FieldId -> FieldId -> Bool

(>=) :: FieldId -> FieldId -> Bool

max :: FieldId -> FieldId -> FieldId

min :: FieldId -> FieldId -> FieldId

ts_node_poke_p :: Ptr TSNode -> Ptr Node -> IO () Source #