Reference Guide
2.5.0
|
Public Member Functions | |
def | preceding_comment (self) |
def | preceding_comment (self, comment) |
def | inline_comment (self) |
def | inline_comment (self, comment) |
Mixin that adds the Commentable trait into a PSyIR node. It provides two attributes that store preceding and inline comments and their respective property getters and setters.
Definition at line 40 of file commentable_mixin.py.
def psyclone.psyir.nodes.commentable_mixin.CommentableMixin.inline_comment | ( | self | ) |
:returns: inline comment associated with this statement. :rtype: str
Definition at line 73 of file commentable_mixin.py.
References psyclone.psyir.nodes.commentable_mixin.CommentableMixin._inline_comment.
def psyclone.psyir.nodes.commentable_mixin.CommentableMixin.inline_comment | ( | self, | |
comment | |||
) |
:param str comment: inline comment associated with this statement.
Definition at line 81 of file commentable_mixin.py.
References psyclone.psyir.nodes.commentable_mixin.CommentableMixin._inline_comment, and psyclone.psyir.nodes.commentable_mixin.CommentableMixin.inline_comment().
def psyclone.psyir.nodes.commentable_mixin.CommentableMixin.preceding_comment | ( | self | ) |
:returns: comment preceding this statement. :rtype: str
Definition at line 55 of file commentable_mixin.py.
References psyclone.psyir.nodes.commentable_mixin.CommentableMixin._preceding_comment.
def psyclone.psyir.nodes.commentable_mixin.CommentableMixin.preceding_comment | ( | self, | |
comment | |||
) |
:param str comment: comment preceding this statement.
Definition at line 63 of file commentable_mixin.py.
References psyclone.psyir.nodes.commentable_mixin.CommentableMixin._preceding_comment, and psyclone.psyir.nodes.commentable_mixin.CommentableMixin.preceding_comment().