compiler: tweaks for importing inline function bodies

Track whether we've seen an error when importing a function; we will
use error tracking to avoid knock-on errors.

Stop importing identifiers at a ')'.

Provide a way to adjust the indentation level while importing.

Change-Id: I9cb1bbd999a9d414609ffc14a7eaae6af93fd862
Reviewed-on: https://go-review.googlesource.com/c/150072
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
2 files changed