Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Private Attributes
Export::TextToNodeMap Class Reference

Public Member Functions

 TextToNodeMap ()
 
void add (Model::Node *node, SourceLocation location)
 
QStringList files () const
 
QList< SourceLocationlocations (Model::Node *node) const
 
Model::Nodenode (const QString &fileName, int line, int column) const
 

Private Attributes

QHash< QString, QList< QPair< Span, Model::Node * > > > filenameToSpans
 
QStringList mappedFiles_
 
QMultiHash< Model::Node *, SourceLocationnodeToLocation_
 

Constructor & Destructor Documentation

◆ TextToNodeMap()

Export::TextToNodeMap::TextToNodeMap ( )

Member Function Documentation

◆ add()

void Export::TextToNodeMap::add ( Model::Node node,
SourceLocation  location 
)

◆ files()

QStringList Export::TextToNodeMap::files ( ) const
inline

◆ locations()

QList< SourceLocation > Export::TextToNodeMap::locations ( Model::Node node) const

◆ node()

Model::Node * Export::TextToNodeMap::node ( const QString &  fileName,
int  line,
int  column 
) const

Member Data Documentation

◆ filenameToSpans

QHash<QString, QList<QPair<Span, Model::Node*> > > Export::TextToNodeMap::filenameToSpans
private

◆ mappedFiles_

QStringList Export::TextToNodeMap::mappedFiles_
private

◆ nodeToLocation_

QMultiHash<Model::Node*, SourceLocation> Export::TextToNodeMap::nodeToLocation_
private