File tree 2 files changed +7
-4
lines changed
core/src/main/scala/gallia/oswo
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ import aptus._
5
5
6
6
// ===========================================================================
7
7
private object OswoAtomFieldFormatter { import source .SourceFluentBuilders ._
8
- private val DeserializeFunction = fullName(classOf [OswoSerDes .type ]) + " .deserializeFunction[Any => Any]"
8
+ private val DeserializeFunction =
9
+ // fullName(classOf[OswoSerDes.type]) // fails for scala 2.12...
10
+ " gallia.oswo.OswoSerDes" +
11
+ " .deserializeFunction[Any => Any]"
9
12
10
13
// ===========================================================================
11
14
private implicit class OswoKey_ (key : Key ) {
Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ object OswoRun
15
15
head.end().runToNdt()
16
16
17
17
// ---------------------------------------------------------------------------
18
- val code = formatCode (FinalObjectName )(gallia.finalCode)
18
+ val code = sourceCode (FinalObjectName )(gallia.finalCode)
19
19
.tap { _.format.writeFileContent(" /tmp/code.scala" ) }
20
20
21
21
// ---------------------------------------------------------------------------
22
22
runtimeCompilation
23
- .objectInstance[gallia.oswo. OptimRunner ](code.format, FinalObjectName )
23
+ .objectInstance[OptimRunner ](code.format, FinalObjectName )
24
24
.run()
25
25
.tap { _ =>
26
26
val parentDir = " /home/tony/scl/gallia/gallia-core/core/src/main/scala/gallia/oswo/"
@@ -45,7 +45,7 @@ object OswoRun
45
45
import source .SourceFluentBuilders ._
46
46
47
47
// ---------------------------------------------------------------------------
48
- private def formatCode (name : Name )(body : String ): SourceCode =
48
+ private def sourceCode (name : Name )(body : String ): SourceCode =
49
49
_Object(_Name(name), fullName(classOf [gallia.oswo.OptimRunner ]).in.list,
50
50
// TODO: use macro to extract method name rather: mymacro[gallia.oswo.MyApp](body: Source)
51
51
().methodDefinition(" run" ).returnAny.body(body))
You can’t perform that action at this time.
0 commit comments