mirror of
https://github.com/fluencelabs/aqua.git
synced 2025-03-15 03:30:49 +00:00
extension for air target (#143)
This commit is contained in:
parent
582dab20b7
commit
6ba9c13c63
@ -160,9 +160,9 @@ object AquaCompiler extends LogSupport {
|
||||
preps
|
||||
.flatMap(p =>
|
||||
p.model.resolveFunctions
|
||||
.map(fc => FuncAirGen(fc).generateAir(bodyConfig).show)
|
||||
.map { generated =>
|
||||
val tpV = p.targetPath("ts")
|
||||
.map(fc => (fc.funcName -> FuncAirGen(fc).generateAir(bodyConfig).show))
|
||||
.map { case (fnName, generated) =>
|
||||
val tpV = p.targetPath(fnName + ".air")
|
||||
tpV match {
|
||||
case Invalid(t) =>
|
||||
EitherT.pure(t.getMessage)
|
||||
|
Loading…
x
Reference in New Issue
Block a user