-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* support scala 3 * add common Client trait * fix getting method return type * Update Macros.scala * refactoring and fix wrong overloaded method handling * refactor * fix warnings * println * update to scala 3.3.0 * Update build.yml
- Loading branch information
Showing
20 changed files
with
434 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package sloth.internal | ||
|
||
trait PlatformSpecificClientCo[PickleType, Result[_]] { | ||
def wire[T]: T = macro TraitMacro.impl[T, PickleType, Result] | ||
} | ||
|
||
trait PlatformSpecificClientContra[PickleType, Result[_]] { | ||
def wire[T]: T = macro TraitMacro.implContra[T, PickleType, Result] | ||
} |
11 changes: 11 additions & 0 deletions
11
sloth/src/main/scala-2/internal/PlatformSpecificRouter.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package sloth.internal | ||
|
||
import sloth.{RouterCo, RouterContra} | ||
|
||
trait PlatformSpecificRouterCo[PickleType, Result[_]] { | ||
def route[T](value: T): RouterCo[PickleType, Result] = macro RouterMacro.impl[T, PickleType, Result] | ||
} | ||
|
||
trait PlatformSpecificRouterContra[PickleType, Result[_]] { | ||
def route[T](value: T): RouterContra[PickleType, Result] = macro RouterMacro.implContra[T, PickleType, Result] | ||
} |
Oops, something went wrong.