mirror of
https://github.com/fluencelabs/aqua.git
synced 2025-03-15 11:40:50 +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
|
preps
|
||||||
.flatMap(p =>
|
.flatMap(p =>
|
||||||
p.model.resolveFunctions
|
p.model.resolveFunctions
|
||||||
.map(fc => FuncAirGen(fc).generateAir(bodyConfig).show)
|
.map(fc => (fc.funcName -> FuncAirGen(fc).generateAir(bodyConfig).show))
|
||||||
.map { generated =>
|
.map { case (fnName, generated) =>
|
||||||
val tpV = p.targetPath("ts")
|
val tpV = p.targetPath(fnName + ".air")
|
||||||
tpV match {
|
tpV match {
|
||||||
case Invalid(t) =>
|
case Invalid(t) =>
|
||||||
EitherT.pure(t.getMessage)
|
EitherT.pure(t.getMessage)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user