Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
docutils.utils.code_analyzer.NumberLines Class Reference

Public Member Functions

 __init__ (self, tokens, startline, endline)
 
 __iter__ (self)
 

Public Attributes

 tokens
 
 startline
 
 fmt_str
 

Detailed Description

Insert linenumber-tokens at the start of every code line.

Arguments

   tokens    -- iterable of ``(classes, value)`` tuples
   startline -- first line number
   endline   -- last line number

Iterating over an instance yields the tokens with a
``(['ln'], '<the line number>')`` token added for every code line.
Multi-line tokens are split.

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