Helix and Scala
Eugene Yokota (@eed3si9n)
package sbt | |
package internal | |
package fix | |
import scalafix.v1._ | |
import scala.meta._ | |
class Sbt0_13BuildSyntax extends SyntacticRule("Sbt0_13BuildSyntax") { | |
override def fix(implicit doc: SyntacticDocument): Patch = { | |
doc.tree.collect { |
Eugene Yokota (@eed3si9n)
$ node_modules/.bin/tree-sitter generate --report-states-for-rule compilation_unit | |
class_definition 3728 | |
function_definition 2214 | |
ascription_expression 1442 | |
infix_expression 1412 | |
assignment_expression 1412 | |
postfix_expression 1412 | |
match_expression 1400 | |
field_expression 1400 | |
call_expression 1358 |
Length Date Time Name | |
--------- ---------- ----- ---- | |
11523 01-01-2010 00:00 lmcoursier/syntax/package.tasty | |
2594 01-01-2010 00:00 lmcoursier/syntax/package.class | |
1363 01-01-2010 00:00 lmcoursier/syntax/package$StrictOp.class | |
1396 01-01-2010 00:00 lmcoursier/syntax/package$PublicationOp.class | |
2640 01-01-2010 00:00 lmcoursier/syntax/package$ModuleMatchersModule.class | |
1016 01-01-2010 00:00 lmcoursier/syntax/package$DirectCredentialsOp.class | |
1470 01-01-2010 00:00 lmcoursier/syntax/package$DirectCredentialsModule.class | |
1659 01-01-2010 00:00 lmcoursier/syntax/package$DependencyOp.class |
// To the extent possible under law, the author(s) have dedicated all copyright and related | |
// and neighboring rights to this snippet to the public domain worldwide. | |
// This snippet is distributed without any warranty. | |
// See http://creativecommons.org/publicdomain/zero/1.0/. | |
import scala.quoted.* | |
import scala.collection.mutable | |
// import qctx.reflect.* |
object Main { | |
def head[A](list: List[A]): A = list.head | |
def x1: List[Int] | List[String] = List(3) | |
// this conversion is ok. the opposite doesn't work. | |
def x2: List[Int | String] = x1 | |
def x3 = head(x1) |
import java.awt.*; | |
import javax.swing.*; | |
import java.awt.geom.*; | |
public class Foo extends JFrame { | |
private static final long serialVersionUID = 1L; | |
private JPanel jContentPane = null; | |
private JPanel jPanel = null; |
$ git diff | |
diff --git a/.java-version b/.java-version | |
index 45a4fb7..6259340 100644 | |
--- a/.java-version | |
+++ b/.java-version | |
@@ -1 +1 @@ | |
-8 | |
+1.8 | |
diff --git a/build.sbt b/build.sbt | |
index 2d8cd08..2d0ceec 100644 |
name: CI | |
on: | |
pull_request: | |
push: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: |
aleeye galeeye phire bhatakato, aleeye galeeye phire bhatakato, Ram.
aachya ghara mein poyo jamaaro, maaya jaal mein khoyo. aachya ghara mein poyo jamaaro. maaya jaal mein khoyo.
oopar vaadee joyo jamaaro, maaya jaal mein khoyo.