Envision
A visual programming IDE for object-oriented languages
|
logically holds the mapping from Envision AST nodes to Clang AST nodes. More...
Public Member Functions | |
QMultiHash< Model::Node *, clang::SourceRange >::iterator | begin () |
void | clear () |
Model::Node * | closestParentWithAstMapping (Model::Node *node) const |
bool | contains (Model::Node *node) const |
QMultiHash< Model::Node *, clang::SourceRange >::iterator | end () |
QList< clang::SourceRange > | get (Model::Node *node) const |
void | mapAst (clang::SourceRange sourceRange, Model::Node *envisionAstNode) |
const QSet< Model::Node * > | nodes () const |
void | remove (Model::Node *node) |
Private Attributes | |
QMultiHash< Model::Node *, clang::SourceRange > | envisionToClangMap_ |
logically holds the mapping from Envision AST nodes to Clang AST nodes.
in practice finds and stores the relevant source range of the Clang AST nodes since that is all information we need.
|
inline |
|
inline |
Model::Node * CppImport::EnvisionToClangMap::closestParentWithAstMapping | ( | Model::Node * | node | ) | const |
|
inline |
|
inline |
QList< clang::SourceRange > CppImport::EnvisionToClangMap::get | ( | Model::Node * | node | ) | const |
void CppImport::EnvisionToClangMap::mapAst | ( | clang::SourceRange | sourceRange, |
Model::Node * | envisionAstNode | ||
) |
|
inline |
|
inline |
|
private |