Envision
A visual programming IDE for object-oriented languages
|
Public Member Functions | |
Comment (clang::RawComment *rawComment, const clang::SourceManager &sourceManager) | |
QString | fileName () |
the presumed file name where this comment is located. More... | |
void | insertIntoItemList (OOModel::StatementItemList *itemList, int index=-1) |
associates the comment with the provided item list and creates a comment statement as a child of the list at the provided index (by default at the end of the list). More... | |
unsigned | lineEnd () |
the presumed line this comment ends on. More... | |
unsigned | lineStart () |
the presumed line this comment starts on. More... | |
Model::Node * | node () |
the node this comment is associated with. More... | |
clang::RawComment * | rawComment () |
void | removeFromItemList () |
rolls back the association made by a previous call to 'insertIntoItemList'. More... | |
void | setNode (Model::Node *node) |
associates the comment with a node. More... | |
QString | text () |
the raw text of this comment. More... | |
Private Attributes | |
OOModel::CommentStatementItem * | commentStatementItem_ {} |
this field is used to roll back associations made using 'insertIntoItemList'. More... | |
QString | fileName_ |
unsigned | lineEnd_ {} |
unsigned | lineStart_ {} |
Model::Node * | node_ {} |
clang::RawComment * | rawComment_ {} |
QString | text_ |
CppImport::Comment::Comment | ( | clang::RawComment * | rawComment, |
const clang::SourceManager & | sourceManager | ||
) |
|
inline |
the presumed file name where this comment is located.
void CppImport::Comment::insertIntoItemList | ( | OOModel::StatementItemList * | itemList, |
int | index = -1 |
||
) |
associates the comment with the provided item list and creates a comment statement as a child of the list at the provided index (by default at the end of the list).
the association created by this method can later be rolled back by a call to 'removeFromItemList'.
|
inline |
the presumed line this comment ends on.
|
inline |
the presumed line this comment starts on.
|
inline |
the node this comment is associated with.
|
inline |
void CppImport::Comment::removeFromItemList | ( | ) |
rolls back the association made by a previous call to 'insertIntoItemList'.
void CppImport::Comment::setNode | ( | Model::Node * | node | ) |
associates the comment with a node.
QString CppImport::Comment::text | ( | ) |
the raw text of this comment.
|
private |
this field is used to roll back associations made using 'insertIntoItemList'.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |