forked from qt-creator/qt-creator
		
	Renamed Document::findSymbolAt().
This commit is contained in:
		@@ -406,12 +406,12 @@ Scope *Document::scopeAt(unsigned line, unsigned column)
 | 
			
		||||
    return globalSymbols();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Symbol *Document::findSymbolAt(unsigned line, unsigned column) const
 | 
			
		||||
Symbol *Document::lastVisibleSymbolAt(unsigned line, unsigned column) const
 | 
			
		||||
{
 | 
			
		||||
    return findSymbolAt(line, column, globalSymbols());
 | 
			
		||||
    return lastVisibleSymbolAt(line, column, globalSymbols());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Symbol *Document::findSymbolAt(unsigned line, unsigned column, Scope *scope) const
 | 
			
		||||
Symbol *Document::lastVisibleSymbolAt(unsigned line, unsigned column, Scope *scope) const
 | 
			
		||||
{
 | 
			
		||||
    Symbol *previousSymbol = 0;
 | 
			
		||||
 | 
			
		||||
@@ -425,7 +425,7 @@ Symbol *Document::findSymbolAt(unsigned line, unsigned column, Scope *scope) con
 | 
			
		||||
 | 
			
		||||
    if (previousSymbol) {
 | 
			
		||||
        if (ScopedSymbol *scoped = previousSymbol->asScopedSymbol()) {
 | 
			
		||||
            if (Symbol *member = findSymbolAt(line, column, scoped->members()))
 | 
			
		||||
            if (Symbol *member = lastVisibleSymbolAt(line, column, scoped->members()))
 | 
			
		||||
                return member;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -92,7 +92,7 @@ public:
 | 
			
		||||
    QList<Macro> definedMacros() const
 | 
			
		||||
    { return _definedMacros; }
 | 
			
		||||
 | 
			
		||||
    Q_DECL_DEPRECATED Symbol *findSymbolAt(unsigned line, unsigned column) const;
 | 
			
		||||
    Symbol *lastVisibleSymbolAt(unsigned line, unsigned column) const;
 | 
			
		||||
    Scope *scopeAt(unsigned line, unsigned column);
 | 
			
		||||
 | 
			
		||||
    QByteArray source() const;
 | 
			
		||||
@@ -310,7 +310,7 @@ public:
 | 
			
		||||
    const UndefinedMacroUse *findUndefinedMacroUseAt(unsigned offset) const;
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    Symbol *findSymbolAt(unsigned line, unsigned column, Scope *scope) const;
 | 
			
		||||
    Symbol *lastVisibleSymbolAt(unsigned line, unsigned column, Scope *scope) const;
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    QString _fileName;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user