Fixed autocompletion from not working correctly within functions
author Sven Brauch
()
committer Sven Brauch
()
commit 89d9a2447ea1d059768a7aa2036db14a5cf52c5a
tree 6f9986fb000de3f1ad42a28485904139a9e3898e
parent e2e1069363f22099bb802d4e315ceb1a5472f749
Fixed autocompletion from not working correctly within functions

Function body contexts MUST have a range which starts later than the functionArguments context.
Otherwise it will be overlooked by the ContextBuilder, not being marked as encountered and thus deleted. If that happens, declarations inside that context cannot be found any more.
duchain/contextbuilder.cpp
duchain/contextbuilder.h
duchain/tests/pyduchaintest.cpp