Skip to content

Commit

Permalink
Naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Caparow committed Sep 25, 2024
1 parent 9c55cda commit 6a7e878
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions src/main/scala/io/septimalmind/baboon/Baboon.scala
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,11 @@ object Baboon {
}
}
}

object Test extends App {
Baboon.main(Array(
"--model-dir", "/Users/caparow/git/baboon/src/test/resources/baboon",
"--output", "/Users/caparow/git/baboon/test/cs-stub/ConversionsTest/Generated",
"--test-output", "/Users/caparow/git/baboon/test/cs-stub/ConversionsTest/Generated",
))
}
Original file line number Diff line number Diff line change
Expand Up @@ -480,12 +480,12 @@ class CSBaboonTranslator(defnTranslator: CSDefnTranslator,
| public $csTimeSpan TimeOfDay => Underlying.TimeOfDay;
| public $csDayOfWeek DayOfWeek => Underlying.DayOfWeek;
|
| public static RpDateTime operator -(RpDateTime left, TimeSpan delta)
| public static RpDateTime operator -(RpDateTime left, $csTimeSpan delta)
| {
| return new RpDateTime(left.Underlying - delta);
| }
|
| public static RpDateTime operator +(RpDateTime left, TimeSpan delta)
| public static RpDateTime operator +(RpDateTime left, $csTimeSpan delta)
| {
| return new RpDateTime(left.Underlying + delta);
| }
Expand Down Expand Up @@ -973,9 +973,9 @@ object CSBaboonTranslator {
val csDateTime: CSType =
CSType(csSystemPkg, "DateTime", fq = false)
val csTimeSpan: CSType =
CSType(csSystemPkg, "DateTime", fq = false)
CSType(csSystemPkg, "TimeSpan", fq = false)
val csDayOfWeek: CSType =
CSType(csSystemPkg, "DateTime", fq = false)
CSType(csSystemPkg, "DayOfWeek", fq = false)
val rpDateTime: CSType =
CSType(baboonTimePkg, "RpDateTime", fq = false)
val csArgumentException: CSType =
Expand Down

0 comments on commit 6a7e878

Please sign in to comment.