Added support for Foo:: event methods

This only implements the suggestion in autocompletion.