diff --git a/localServer/src/test/resources/raw.txt b/localServer/src/test/resources/raw.txt index e4fcfeb..3db45ea 100644 --- a/localServer/src/test/resources/raw.txt +++ b/localServer/src/test/resources/raw.txt @@ -1,8 +1,7 @@ -Defn.Def( +Defn.Def.After_4_7_3( Nil, Term.Name("a"), Nil, - Nil, None, Term.Name("b") ) diff --git a/localServer/src/test/resources/semantic.txt b/localServer/src/test/resources/semantic.txt index 87b21f8..f0611a6 100644 --- a/localServer/src/test/resources/semantic.txt +++ b/localServer/src/test/resources/semantic.txt @@ -13,11 +13,10 @@ class Example extends SemanticRule("Example") { doc: SemanticDocument ): Patch = { doc.tree.collect { - case t @ Defn.Def( + case t @ Defn.Def.After_4_7_3( Nil, Term.Name("a"), Nil, - Nil, None, Term.Name("b") ) => diff --git a/localServer/src/test/resources/syntactic.txt b/localServer/src/test/resources/syntactic.txt index 1346c43..14cf664 100644 --- a/localServer/src/test/resources/syntactic.txt +++ b/localServer/src/test/resources/syntactic.txt @@ -13,11 +13,10 @@ class Example extends SyntacticRule("Example") { doc: SyntacticDocument ): Patch = { doc.tree.collect { - case t @ Defn.Def( + case t @ Defn.Def.After_4_7_3( Nil, Term.Name("a"), Nil, - Nil, None, Term.Name("b") ) => diff --git a/localServer/src/test/scala/scalameta_ast/IntegrationTest.scala b/localServer/src/test/scala/scalameta_ast/IntegrationTest.scala index 8f668e0..15a93a6 100644 --- a/localServer/src/test/scala/scalameta_ast/IntegrationTest.scala +++ b/localServer/src/test/scala/scalameta_ast/IntegrationTest.scala @@ -116,15 +116,16 @@ abstract class IntegrationTest(browserType: Playwright => BrowserType) extends A "change input" in withBrowser { page => setInput(page, "class A") val expect = Seq( - """Defn.Class(""", + """Defn.Class.After_4_6_0(""", """ Nil,""", """ Type.Name("A"),""", - """ Nil,""", - """ Ctor.Primary(Nil, Name(""), Nil),""", - """ Template(""", + """ Type.ParamClause(Nil),""", + """ Ctor.Primary""", + """ .After_4_6_0(Nil, Name.Anonymous(), Nil),""", + """ Template.After_4_4_0(""", """ Nil,""", """ Nil,""", - """ Self(Name(""), None),""", + """ Self(Name.Anonymous(), None),""", """ Nil,""", """ Nil""", """ )""", @@ -278,6 +279,7 @@ abstract class IntegrationTest(browserType: Playwright => BrowserType) extends A } "Initial extractor" in withBrowser { page => + page.selectOption("select#scalameta", "scalafix") changeOutputType(page, "raw") setScalafmtConfig( page, diff --git a/sources/main.js b/sources/main.js index f02e5e7..0b604c3 100644 --- a/sources/main.js +++ b/sources/main.js @@ -194,6 +194,8 @@ $(() => { "selected", true, ); + } else { + $(`[name="scalameta"] option[value="latest"]`).prop("selected", true); } if (savedPatch != null) {