Revert "Using new parser code by using `SourceFileObject.createSourceFileObject`."

This reverts commit f7207181a40608eae90f123798258823cc6c128c.
Should not filter completions after trivia.
TypeScript update.
Fixes and adaptations to new API.