webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
pddm.SourceFile.SectionBase Class Reference
Inheritance diagram for pddm.SourceFile.SectionBase:
pddm.SourceFile.DefinitionSection pddm.SourceFile.ExpansionSection pddm.SourceFile.ImportDefinesSection pddm.SourceFile.TextSection

Public Member Functions

def __init__ (self, first_line_num)
 
def TryAppend (self, line, line_num)
 
def HitEOF (self)
 
def BindMacroCollection (self, macro_collection)
 
def Append (self, line)
 
def lines (self)
 
def num_lines_captured (self)
 
def first_line_num (self)
 
def first_line (self)
 
def text (self)
 

Constructor & Destructor Documentation

◆ __init__()

def pddm.SourceFile.SectionBase.__init__ (   self,
  first_line_num 
)

Member Function Documentation

◆ Append()

def pddm.SourceFile.SectionBase.Append (   self,
  line 
)

◆ BindMacroCollection()

def pddm.SourceFile.SectionBase.BindMacroCollection (   self,
  macro_collection 
)
Binds the chunk to a macro collection.

Args:
  macro_collection: The collection to bind too.

◆ first_line()

def pddm.SourceFile.SectionBase.first_line (   self)

◆ first_line_num()

def pddm.SourceFile.SectionBase.first_line_num (   self)

◆ HitEOF()

def pddm.SourceFile.SectionBase.HitEOF (   self)
Called when the EOF was reached for for a given section.

◆ lines()

def pddm.SourceFile.SectionBase.lines (   self)

◆ num_lines_captured()

def pddm.SourceFile.SectionBase.num_lines_captured (   self)

◆ text()

def pddm.SourceFile.SectionBase.text (   self)

◆ TryAppend()

def pddm.SourceFile.SectionBase.TryAppend (   self,
  line,
  line_num 
)
Try appending a line.

Args:
  line: The line to append.
  line_num: The number of the line.

Returns:
  A tuple of (SUCCESS, CAN_ADD_MORE).  If SUCCESS if False, the line
  wasn't append.  If SUCCESS is True, then CAN_ADD_MORE is True/False to
  indicate if more lines can be added after this one.

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