tree-sitter-0.3.0.0: Unstable bindings for the tree-sitter parsing library.

Safe HaskellSafe
LanguageHaskell2010

TreeSitter.Span

Synopsis

Documentation

data Span Source #

A Span of position information

Constructors

Span 

Fields

Instances
Eq Span Source # 
Instance details

Defined in TreeSitter.Span

Methods

(==) :: Span -> Span -> Bool #

(/=) :: Span -> Span -> Bool #

Ord Span Source # 
Instance details

Defined in TreeSitter.Span

Methods

compare :: Span -> Span -> Ordering #

(<) :: Span -> Span -> Bool #

(<=) :: Span -> Span -> Bool #

(>) :: Span -> Span -> Bool #

(>=) :: Span -> Span -> Bool #

max :: Span -> Span -> Span #

min :: Span -> Span -> Span #

Show Span Source # 
Instance details

Defined in TreeSitter.Span

Methods

showsPrec :: Int -> Span -> ShowS #

show :: Span -> String #

showList :: [Span] -> ShowS #

Unmarshal Span Source # 
Instance details

Defined in TreeSitter.Unmarshal

Methods

unmarshalNodes :: (MonadFail m, Carrier sig m, Member (Reader ByteString) sig, Member (Reader (Ptr Cursor)) sig, MonadIO m) => [Node] -> m Span Source #

data Pos Source #

Source position information

Constructors

Pos 

Fields

Instances
Eq Pos Source # 
Instance details

Defined in TreeSitter.Span

Methods

(==) :: Pos -> Pos -> Bool #

(/=) :: Pos -> Pos -> Bool #

Ord Pos Source # 
Instance details

Defined in TreeSitter.Span

Methods

compare :: Pos -> Pos -> Ordering #

(<) :: Pos -> Pos -> Bool #

(<=) :: Pos -> Pos -> Bool #

(>) :: Pos -> Pos -> Bool #

(>=) :: Pos -> Pos -> Bool #

max :: Pos -> Pos -> Pos #

min :: Pos -> Pos -> Pos #

Show Pos Source # 
Instance details

Defined in TreeSitter.Span

Methods

showsPrec :: Int -> Pos -> ShowS #

show :: Pos -> String #

showList :: [Pos] -> ShowS #