forked from qt-creator/qt-creator
QmlJS: Rename range-related functions.
astPath -> rangePath To make it more explicit that it does not return the full ast path. declaringMember -> rangeAt Since things like function expressions and declarations and grouped property bindings are also ranges and returned by this function. Change-Id: I70cc99f21635b21dd6f3088a6e5782d84f6f108a Reviewed-on: http://codereview.qt.nokia.com/1045 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
@@ -108,14 +108,14 @@ public:
|
||||
int revision() const;
|
||||
|
||||
// Returns the declaring member
|
||||
QmlJS::AST::Node *declaringMember(int cursorPosition) const;
|
||||
QmlJS::AST::Node *rangeAt(int cursorPosition) const;
|
||||
QmlJS::AST::Node *declaringMemberNoProperties(int cursorPosition) const;
|
||||
|
||||
// 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;
|
||||
QList<QmlJS::AST::Node *> rangePath(int cursorPosition) const;
|
||||
|
||||
// Returns a context for the given path
|
||||
QSharedPointer<QmlJS::LookupContext> lookupContext(const QList<QmlJS::AST::Node *> &path = QList<QmlJS::AST::Node *>()) const;
|
||||
|
||||
Reference in New Issue
Block a user