Fixed #6230 (SymbolDatabase: Wrong function() is set for token)