-
Nikolai Kosjar authored
If the cursor is on the return type, Document::lastVisibleSymbol() returns the function defined before the current function definition, which is unfavorable for "Switch Method Decl/Def". Fixed by using ASTPath instead of Document::lastVisibleSymbol(). Task-Number: QTCREATORBUG-9206 Change-Id: I94aba2fdbb437c6007f328f31deee7ae363364e2 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
ed4b2027