OpenQuizz
Une application de gestion des contenus pédagogiques
_CommentFinder Class Reference
Inheritance diagram for _CommentFinder:
Collaboration diagram for _CommentFinder:

Public Member Functions

def __init__ (self, tokens, comment_tags)
 
def find_backwards (self, offset)
 
def find_comments (self, lineno)
 

Data Fields

 tokens
 
 comment_tags
 
 offset
 
 last_lineno
 

Detailed Description

Helper class to find comments in a token stream.  Can only
find comments for gettext calls forwards.  Once the comment
from line 4 is found, a comment for line 1 will not return a
usable value.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  tokens,
  comment_tags 
)

Member Function Documentation

◆ find_backwards()

def find_backwards (   self,
  offset 
)

◆ find_comments()

def find_comments (   self,
  lineno 
)

Field Documentation

◆ comment_tags

comment_tags

◆ last_lineno

last_lineno

◆ offset

offset

◆ tokens

tokens

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