Back to index

enigmail  1.4.3
Public Member Functions | Static Public Member Functions | Public Attributes | Static Private Attributes
pymake.parser.Data Class Reference

List of all members.

Public Member Functions

def __init__
def getloc
def skipwhitespace

Static Public Member Functions

def fromstring

Public Attributes

 s
 lstart
 lend
 loc

Static Private Attributes

tuple __slots__ = ('s', 'lstart', 'lend', 'loc')

Detailed Description

A single virtual "line", which can be multiple source lines joined with
continuations.

Definition at line 45 of file parser.py.


Constructor & Destructor Documentation

def pymake.parser.Data.__init__ (   self,
  s,
  lstart,
  lend,
  loc 
)

Definition at line 53 of file parser.py.

00053 
00054     def __init__(self, s, lstart, lend, loc):
00055         self.s = s
00056         self.lstart = lstart
00057         self.lend = lend
00058         self.loc = loc


Member Function Documentation

def pymake.parser.Data.fromstring (   s,
  path 
) [static]

Definition at line 60 of file parser.py.

00060 
00061     def fromstring(s, path):
00062         return Data(s, 0, len(s), parserdata.Location(path, 1, 0))

Here is the caller graph for this function:

def pymake.parser.Data.getloc (   self,
  offset 
)

Definition at line 63 of file parser.py.

00063 
00064     def getloc(self, offset):
00065         assert offset >= self.lstart and offset <= self.lend
00066         return self.loc.offset(self.s, self.lstart, offset)

def pymake.parser.Data.skipwhitespace (   self,
  offset 
)
Return the offset of the first non-whitespace character in data starting at offset, or None if there are
only whitespace characters remaining.

Definition at line 67 of file parser.py.

00067 
00068     def skipwhitespace(self, offset):
00069         """
00070         Return the offset of the first non-whitespace character in data starting at offset, or None if there are
00071         only whitespace characters remaining.
00072         """
00073         m = _skipws.search(self.s, offset, self.lend)
00074         if m is None:
00075             return self.lend
00076 
00077         return m.start(0)


Member Data Documentation

tuple pymake.parser.Data.__slots__ = ('s', 'lstart', 'lend', 'loc') [static, private]

Definition at line 51 of file parser.py.

Definition at line 56 of file parser.py.

Definition at line 57 of file parser.py.

Definition at line 55 of file parser.py.

Definition at line 54 of file parser.py.


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