Skip to content

Commit

Permalink
Update scalafmt-core to 3.5.8 (#2219)
Browse files Browse the repository at this point in the history
* Update scalafmt-core to 3.5.8

* Reformat with scalafmt 3.5.8
  • Loading branch information
xerial-bot committed Jun 2, 2022
1 parent 1a7ae2b commit 9c8ff6d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .scalafmt.conf
@@ -1,4 +1,4 @@
version = 3.5.2
version = 3.5.8
project.layout = StandardConvention
runner.dialect = scala213source3
maxColumn = 120
Expand Down
Expand Up @@ -13,8 +13,8 @@
*/
package wvlet.airframe.rx.html


trait HtmlCompat {

/**
* Extracting the source code of rxElement for demoing purpose
* @param rxElements
Expand Down
Expand Up @@ -739,11 +739,14 @@ class SQLInterpreter extends SqlBaseBaseVisitor[Any] with LogSupport {
val schemaName = visitQualifiedName(ctx.qualifiedName())
val ifNotExists = Option(ctx.EXISTS()).map(_ => true).getOrElse(false)
val props = Option(ctx.properties())
.map(_.property().asScala.map { p =>
val key = visitIdentifier(p.identifier())
val value = expression(p.expression())
SchemaProperty(key, value)
}.toSeq)
.map(
_.property().asScala
.map { p =>
val key = visitIdentifier(p.identifier())
val value = expression(p.expression())
SchemaProperty(key, value)
}.toSeq
)
CreateSchema(schemaName, ifNotExists, props)
}

Expand Down
Expand Up @@ -276,7 +276,8 @@ private[surface] class CompileTimeSurfaceFactory[Q <: Quotes](using quotes: Q) {
private def genericTypeWithConstructorFactory: Factory = {
case t
if !t.typeSymbol.flags.is(Flags.Abstract) && !t.typeSymbol.flags.is(Flags.Trait)
&& Option(t.typeSymbol.primaryConstructor).exists(p => p.exists && !p.flags.is(Flags.Private) && p.paramSymss.nonEmpty) =>
&& Option(t.typeSymbol.primaryConstructor)
.exists(p => p.exists && !p.flags.is(Flags.Private) && p.paramSymss.nonEmpty) =>
val typeArgs = typeArgsOf(t.simplified).map(surfaceOf(_))
val methodParams = constructorParametersOf(t)
val isStatic = !t.typeSymbol.flags.is(Flags.Local)
Expand Down

0 comments on commit 9c8ff6d

Please sign in to comment.