class documentation
class AfterCommentParser(TokenProcessor): (source)
Constructor: AfterCommentParser(lines)
Python source code parser to pick up comment after assignment.
This parser takes a python code starts with assignment statement, and returns the comments for variable if exists.
| Method | __init__ |
Undocumented |
| Method | fetch |
Fetch right-hand value of assignment. |
| Method | parse |
Parse the code and obtain comment after assignment. |
| Instance Variable | comment |
Undocumented |
Inherited from TokenProcessor:
| Method | fetch |
Fetch a next token from source code. |
| Method | fetch |
Fetch tokens until specified token appeared. |
| Method | get |
Returns specified line. |
| Instance Variable | buffers |
Undocumented |
| Instance Variable | current |
Undocumented |
| Instance Variable | previous |
Undocumented |
| Instance Variable | tokens |
Undocumented |