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:
		@@ -419,7 +419,7 @@ IAssistProposal *QmlJSCompletionAssistProcessor::perform(const IAssistInterface
 | 
			
		||||
    if (currentFileInfo.suffix() == QLatin1String("qml"))
 | 
			
		||||
        isQmlFile = true;
 | 
			
		||||
 | 
			
		||||
    const QList<AST::Node *> path = semanticInfo.astPath(m_interface->position());
 | 
			
		||||
    const QList<AST::Node *> path = semanticInfo.rangePath(m_interface->position());
 | 
			
		||||
    LookupContext::Ptr lookupContext = semanticInfo.lookupContext(path);
 | 
			
		||||
    const Interpreter::Context *context = lookupContext->context();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user