psyclone.psyir.nodes.commentable_mixin

This module contains the CommentableMixin implementation.

Classes

  • CommentableMixin: Mixin that adds the Commentable trait into a PSyIR node. It provides

class psyclone.psyir.nodes.commentable_mixin.CommentableMixin

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.

Inheritance

Inheritance diagram of CommentableMixin
property inline_comment
Returns:

inline comment associated with this statement.

Return type:

str

property preceding_comment
Returns:

comment preceding this statement.

Return type:

str