Skip to content

Latest commit

 

History

History
144 lines (121 loc) · 2.52 KB

images_source_code.md

File metadata and controls

144 lines (121 loc) · 2.52 KB

Original

fun
    f (
    a : Int
    , b: Double , c:String) {           var result = 0
  val aVeryLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongVar = 43
  foo.bar.zed.accept(

  )

  foo(

  )

  foo.bar.zed.accept(
    DoSomething.bar()
  )

  bar(
    ImmutableList.newBuilder().add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).build())

  ImmutableList.newBuilder().add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).build()
}

ktfmt

fun f(a: Int, b: Double, c: String) {
  var result = 0
  val aVeryLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongVar =
      43
  foo.bar.zed.accept()

  foo()

  foo.bar.zed.accept(DoSomething.bar())

  bar(
      ImmutableList.newBuilder()
          .add(1)
          .add(1)
          .add(1)
          .add(1)
          .add(1)
          .add(1)
          .add(1)
          .add(1)
          .add(1)
          .add(1)
          .build()
  )

  ImmutableList.newBuilder()
      .add(1)
      .add(1)
      .add(1)
      .add(1)
      .add(1)
      .add(1)
      .add(1)
      .add(1)
      .add(1)
      .add(1)
      .build()
}

ktlint

fun f(
    a: Int,
    b: Double,
    c: String,
) {
    var result = 0
    val aVeryLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongVar = 43
    foo.bar.zed.accept()

    foo()

    foo.bar.zed.accept(
        DoSomething.bar(),
    )

    bar(
        ImmutableList
            .newBuilder()
            .add(1)
            .add(1)
            .add(1)
            .add(1)
            .add(1)
            .add(1)
            .add(1)
            .add(1)
            .add(1)
            .add(1)
            .build(),
    )

    ImmutableList
        .newBuilder()
        .add(1)
        .add(1)
        .add(1)
        .add(1)
        .add(1)
        .add(1)
        .add(1)
        .add(1)
        .add(1)
        .add(1)
        .build()
}

IntelliJ

fun
        f(
    a: Int, b: Double, c: String
) {
    var result = 0
    val aVeryLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongVar = 43
    foo.bar.zed.accept(

    )

    foo(

    )

    foo.bar.zed.accept(
        DoSomething.bar()
    )

    bar(
        ImmutableList.newBuilder().add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).build()
    )

    ImmutableList.newBuilder().add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).build()
}