forked from qt-creator/qt-creator
		
	Implement function to get the QmlJS AST path to a given location.
Will be useful for improved scope chain building.
This commit is contained in:
		@@ -115,6 +115,9 @@ public:
 | 
			
		||||
    // Returns the AST node under cursor
 | 
			
		||||
    QmlJS::AST::Node *nodeUnderCursor(int cursorPosition) const;
 | 
			
		||||
 | 
			
		||||
    // Returns the list of nodes that enclose the given position.
 | 
			
		||||
    QList<QmlJS::AST::Node *> astPath(int cursorPosition) const;
 | 
			
		||||
 | 
			
		||||
public: // attributes
 | 
			
		||||
    QmlJS::Document::Ptr document;
 | 
			
		||||
    QmlJS::Snapshot snapshot;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user