diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2011-07-04 09:46:10 +0200 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2011-07-05 11:52:57 +0200 |
commit | e2ea5a842161ab8ebed414bda85ad949a5312873 (patch) | |
tree | 4d5492916d6062103e1d6fbb0ef3343267e10f12 /src/plugins/qmljseditor/qmljsquickfixes.cpp | |
parent | eec591ff1c9394a7ffdc103f4d4337ccd708de11 (diff) | |
download | qt-creator-e2ea5a842161ab8ebed414bda85ad949a5312873.tar.gz |
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>
Diffstat (limited to 'src/plugins/qmljseditor/qmljsquickfixes.cpp')
-rw-r--r-- | src/plugins/qmljseditor/qmljsquickfixes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmljseditor/qmljsquickfixes.cpp b/src/plugins/qmljseditor/qmljsquickfixes.cpp index 54c6820c3c..84fd0de6fe 100644 --- a/src/plugins/qmljseditor/qmljsquickfixes.cpp +++ b/src/plugins/qmljseditor/qmljsquickfixes.cpp @@ -72,7 +72,7 @@ public: const int pos = interface->currentFile().cursor().position(); - if (QmlJS::AST::Node *member = interface->semanticInfo().declaringMember(pos)) { + if (QmlJS::AST::Node *member = interface->semanticInfo().rangeAt(pos)) { if (QmlJS::AST::UiObjectBinding *b = QmlJS::AST::cast<QmlJS::AST::UiObjectBinding *>(member)) { if (b->initializer->lbraceToken.startLine == b->initializer->rbraceToken.startLine) objectInitializer = b->initializer; |