Refactored declaration completion

Refactored completion around accessors (public/private/inline/...) and declarations (var/function/class).
Note: only keep non-private types when resolving all the visible types from the current file.