Skip to content

Commit

Permalink
Add support for Scala 3.4.2 in advance
Browse files Browse the repository at this point in the history
Return to Scala 3.4.1
  • Loading branch information
davesmith00000 committed Apr 13, 2024
1 parent aede1b4 commit 95f1689
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import org.typelevel.scalacoptions.ScalacOptions
import indigoplugin.IndigoOptions

Global / onChangedBuildSource := ReloadOnSourceChanges
Global / semanticdbEnabled := true

val scala3Version = "3.4.1"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ExtractUBOUtils[Q <: Quotes](using val qq: Q):
),
_
)
) if isArray.matches(arrayInstanceName) =>
) if isArray.matches(arrayInstanceName) =>
// e.g. "given_ShaderTypeOf_Float"
val label = typeclassName.split("_").last match
case "Int" => "int"
Expand Down Expand Up @@ -95,6 +95,25 @@ class ExtractUBOUtils[Q <: Quotes](using val qq: Q):
)
) =>
List(label)

case Inlined(
_,
_,
Typed(
Block(
List(
ValDef(
_,
_,
Some(TypeApply(Select(Literal(StringConstant(label)), _), _))
)
),
_
),
_
)
) =>
List(label)

case _ =>
Nil
Expand Down

0 comments on commit 95f1689

Please sign in to comment.