Remove after_tab
Move get_resolved_scope to avoid unnecessary calls
Remove unnecessary clear of string (already cleared while parsing)
Remove unnecessary check
Remove reading of source from stdin