hara.runtime.basic.impl.process-dart

+dart-shell-env+

+dart-twostep+

+dart-twostep-config+

+dart-verify+

+dart-verify-config+

+program-init+

dart-package-imports

added in 4.1

(dart-package-imports source)

Finds package imports referenced by the generated Dart source.

dart-package-root

added in 4.1

(dart-package-root root)

Returns the cached Dart package root used for twostep scripts.

dart-pubspec

added in 4.1

(dart-pubspec packages)

Creates a minimal pubspec for generated twostep scripts.

ensure-dart-imports

added in 4.1

(ensure-dart-imports source)

Hoists required imports to the top of the standalone Dart file.

ensure-dart-package-context

added in 4.1

(ensure-dart-package-context root source)

Creates a cached package root and resolves dependencies for package imports.

normalize-dart-source

added in 4.1

(normalize-dart-source source)

Adds statement terminators so emitted Dart source can compile as a standalone file. Tracks both paren/bracket depth (for multi-line expressions) and brace depth (for block vs. assignment contexts) to correctly place semicolons.

sh-exec-dart

added in 4.1

(sh-exec-dart input-args input-body {:keys [trim stderr raw root extension output-flag], :as opts, :or {trim str/trim-newline}})

Executes the dart compile and run process.

transform-form

added in 4.1

(transform-form forms opts)

Transforms forms into a standalone Dart main function.