Scarab  2.8.1
Project 8 C++ Utility Library
Public Member Functions | Static Public Member Functions | Static Private Attributes | List of all members
SourceRange Class Reference
Inheritance diagram for SourceRange:
Inheritance graph

Public Member Functions

def start (self)
 
def end (self)
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 
def __contains__ (self, other)
 
def __repr__ (self)
 

Static Public Member Functions

def from_locations (start, end)
 

Static Private Attributes

list _fields_
 

Detailed Description

A SourceRange describes a range of source locations within the source
code.

Definition at line 231 of file cindex.py.

Member Function Documentation

◆ __contains__()

def __contains__ (   self,
  other 
)
Useful to detect the Token/Lexer bug

Definition at line 269 of file cindex.py.

◆ __eq__()

def __eq__ (   self,
  other 
)

Definition at line 263 of file cindex.py.

◆ __ne__()

def __ne__ (   self,
  other 
)

Definition at line 266 of file cindex.py.

◆ __repr__()

def __repr__ (   self)

Definition at line 292 of file cindex.py.

◆ end()

def end (   self)
Return a SourceLocation representing the last character within a
source range.

Definition at line 256 of file cindex.py.

◆ from_locations()

def from_locations (   start,
  end 
)
static

Definition at line 244 of file cindex.py.

◆ start()

def start (   self)
Return a SourceLocation representing the first character within a
source range.

Definition at line 248 of file cindex.py.

Member Data Documentation

◆ _fields_

list _fields_
staticprivate
Initial value:
= [
("ptr_data", c_void_p * 2),
("begin_int_data", c_uint),
("end_int_data", c_uint)]

Definition at line 236 of file cindex.py.


The documentation for this class was generated from the following file: