def stmt_of
import ezx@1.11.0.0/src/pkg/pkg.bend as Pkgimport Base
259# a trimmed line classified. A foreign import is tested first: it lives in a
260# def's body, long after the header has ended. bend's parser reads the word
261# `import`, skips spaces, tabs and carriage returns, and reads a quoted path.
262def stmt_of(+line: String) -> Stmt:
263 stmt_of.foreign(
264 Bool.and(String.starts_with(line, "import"),
265 foreign.quoted(foreign.gap(String.drop(line, 6n)))), line)