================================================================================
generators/entryGenerators
================================================================================

import "pkl:test"

res1 = new Mapping {
  for (n in IntSeq(1, 5)) {
    when (n.isOdd) {
      [n * 2] = n * 2
    }
  }
}


res1b = new Dynamic {
  for (n in IntSeq(1, 5)) {
    when (n.isOdd) {
      [n * 2] = n * 2
    }
  }
}

res1c = new Mapping {
  for (i, n in IntSeq(1, 5)) {
    when (n.isOdd) {
      [i * n] = i * n
    }
  }
}

res1d = new Dynamic {
  for (i, n in IntSeq(1, 5)) {
    when (n.isOdd) {
      [i * n] = i * n
    }
  }
}

res2 = new Mapping {
  for (n in List(1, 2, 3, 4, 5)) {
    when (n.isOdd) {
      [n * 2] = n * 2
    }
  }
}

res2b = new Dynamic {
  for (n in List(1, 2, 3, 4, 5)) {
    when (n.isOdd) {
      [n * 2] = n * 2
    }
  }
}

res2c = new Mapping {
  for (i, n in List(1, 2, 3, 4, 5)) {
    when (n.isOdd) {
      [i * n] = i * n
    }
  }
}

res2d = new Dynamic {
  for (i, n in List(1, 2, 3, 4, 5)) {
    when (n.isOdd) {
      [i * n] = i * n
    }
  }
}

res3 = new Mapping {
  for (n in Set(1, 2, 3, 4, 5)) {
    when (n.isOdd) {
      [n * 2] = n * 2
    }
  }
}

res3b = new Dynamic {
  for (n in Set(1, 2, 3, 4, 5)) {
    when (n.isOdd) {
      [n * 2] = n * 2
    }
  }
}

res3c = new Mapping {
  for (i, n in Set(1, 2, 3, 4, 5)) {
    when (n.isOdd) {
      [i * n] = i * n
    }
  }
}

res3d = new Dynamic {
  for (i, n in Set(1, 2, 3, 4, 5)) {
    when (n.isOdd) {
      [i * n] = i * n
    }
  }
}

res4 = new Mapping {
  for (value in Map("one", 1, "two", 2)) {
    when (value.isOdd) {
      [value] = value * 2
    }
  }
}

res4b = new Dynamic {
  for (value in Map("one", 1, "two", 2)) {
    when (value.isOdd) {
      [value] = value * 2
    }
  }
}

res4c = new Mapping {
  for (key, value in Map("one", 1, "two", 2)) {
    when (value.isOdd) {
      [key.reverse()] = value * 2
    }
  }
}

res4d = new Dynamic {
  for (key, value in Map("one", 1, "two", 2)) {
    when (value.isOdd) {
      [key.reverse()] = value * 2
    }
  }
}

res5 = new Mapping {
  for (n in new Listing { 1; 2; 3; 4; 5 }) {
    when (n.isOdd) {
      [n * 2] = n * 2
    }
  }
}

res5b = new Dynamic {
  for (n in new Listing { 1; 2; 3; 4; 5 }) {
    when (n.isOdd) {
      [n * 2] = n * 2
    }
  }
}

res5c = new Mapping {
  for (i, n in new Listing { 1; 2; 3; 4; 5 }) {
    when (n.isOdd) {
      [i * n] = i * n
    }
  }
}

res5d = new Dynamic {
  for (i, n in new Listing { 1; 2; 3; 4; 5 }) {
    when (n.isOdd) {
      [i * n] = i * n
    }
  }
}

res6 = new Mapping {
  for (value in new Mapping { ["one"] = 1; ["two"] = 2 }) {
    when (value.isOdd) {
      [value] = value * 2
    }
  }
}

res6b = new Dynamic {
  for (value in new Mapping { ["one"] = 1; ["two"] = 2 }) {
    when (value.isOdd) {
      [value] = value * 2
    }
  }
}

res6c = new Mapping {
  for (key, value in new Mapping { ["one"] = 1; ["two"] = 2 }) {
    when (value.isOdd) {
      [key.reverse()] = value * 2
    }
  }
}

res6d = new Dynamic {
  for (key, value in new Mapping { ["one"] = 1; ["two"] = 2 }) {
    when (value.isOdd) {
      [key.reverse()] = value * 2
    }
  }
}

res7 = new Mapping {
  for (value in new Dynamic { ["one"] = 1; ["two"] = 2 }) {
    when (value.isOdd) {
      [value] = value * 2
    }
  }
}

res7b = new Dynamic {
  for (value in new Dynamic { ["one"] = 1; ["two"] = 2 }) {
    when (value.isOdd) {
      [value] = value * 2
    }
  }
}

res7c = new Mapping {
  for (key, value in new Dynamic { ["one"] = 1; ["two"] = 2 }) {
    when (value.isOdd) {
      [key.reverse()] = value * 2
    }
  }
}

res7d = new Dynamic {
  for (key, value in new Dynamic { ["one"] = 1; ["two"] = 2 }) {
    when (value.isOdd) {
      [key.reverse()] = value * 2
    }
  }
}

res8 = new Mapping {
  ["one"] = 1
  when (1 + 1 == 2) { ["two"] = 2 }
  when (1 + 1 == 3) { ["three"] = 3 }
}

res8b = new Dynamic {
  ["one"] = 1
  when (1 + 1 == 2) { ["two"] = 2 }
  when (1 + 1 == 3) { ["three"] = 3 }
}

res9 = new Mapping {
  for (x in List("a", "b", "c")) {
    for (y in List("e", "f")) {
      [x + y] = x + y
    }
  }
}

res9b = new Dynamic {
  for (x in List("a", "b", "c")) {
    for (y in List("e", "f")) {
      [x + y] = x + y
    }
  }
}

res9c = new Mapping {
  for (i1, x in List("a", "b", "c")) {
    for (i2, y in List("e", "f")) {
      [x + y] = Pair(i1 + i2, x + y)
    }
  }
}

res9d = new Dynamic {
  for (i1, x in List("a", "b", "c")) {
    for (i2, y in List("e", "f")) {
      [x + y] = Pair(i1 + i2, x + y)
    }
  }
}

res10 = new Mapping {
  ["one"] = 1
  for (n in IntSeq(1, 5)) {
    when (n.isOdd) {
      [n * 2] = n * 2
    }
  }
  ["two"] = 2
  for (x in List("a", "b", "c")) {
    for (y in List("e", "f")) {
      [x + y] = x + y
    }
  }
  ["three"] = 3
}

res10b = new Dynamic {
  ["one"] = 1
  for (n in IntSeq(1, 5)) {
    when (n.isOdd) {
      [n * 2] = n * 2
    }
  }
  ["two"] = 2
  for (x in List("a", "b", "c")) {
    for (y in List("e", "f")) {
      [x + y] = x + y
    }
  }
  ["three"] = 3
}

// reuse same loop variable
res11 = new Mapping {
  for (n in IntSeq(1, 3)) { [n] = n }
  for (n in List("a", "b", "c")) { [n] = n }
  for (n in IntSeq(4, 6)) { [n] = n }
}

// reuse same loop variable
res11b = new Dynamic {
  for (n in IntSeq(1, 3)) { [n] = n }
  for (n in List("a", "b", "c")) { [n] = n }
  for (n in IntSeq(4, 6)) { [n] = n }
}

// reuse same loop variable
res11c = new Mapping {
  for (i, n in IntSeq(1, 3)) { [n] = Pair(i, n) }
  for (i, n in List("a", "b", "c")) { [n] = Pair(i, n) }
  for (i, n in IntSeq(4, 6)) { [n] = Pair(i, n) }
}

// reuse same loop variable
res11d = new Dynamic {
  for (i, n in IntSeq(1, 3)) { [n] = Pair(i, n) }
  for (i, n in List("a", "b", "c")) { [n] = Pair(i, n) }
  for (i, n in IntSeq(4, 6)) { [n] = Pair(i, n) }
}

local dynamicWithOnlyProperties = new Dynamic {
  foo = "Foo!"
  bar = 42
  baz = Pair(1337, "zab")
}
valueForOverProperties = new Dynamic {
  for (v in dynamicWithOnlyProperties) {
    [v] = v
  }
}
keyValueForOverProperties = new Dynamic {
  for (k, v in dynamicWithOnlyProperties) {
    [k] = v
  }
}

local dynamicWithAllMemberTypes = new Dynamic {
  propFoo = "foo"
  "elementBar"
  propBaz = 1337
  ["entryKeyQux"] = 42
  "elementQuux"
  ["entryKeyCorge"] = "corge"
}

valueForOverAllMembers = new Dynamic {
  for (v in dynamicWithAllMemberTypes) {
    [v] = v
  }
}

keyValueForOverAllMembers = new Dynamic {
  for (k, v in dynamicWithAllMemberTypes) {
    [k] = v
  }
}

class Person {
  name: String
  age: Int
}

local pigeon: Person = new { name = "Pigeon" age = 42 }

valueForOverTyped = new Dynamic {
  for (v in pigeon.toDynamic()) {
    [v] = v
  }
}

keyValueForOverTyped = new Dynamic {
  for (k, v in pigeon.toDynamic()) {
    [k] = v
  }
}

local overlappingPropertyNamesAndEntryKeys: Dynamic = new {
  foo = "property"
  ["foo"] = "entry"

  ["bar"] = "can only discern by iteration order (properties before entries)"
  bar = "can only discern by iteration order (properties before entries)"
}

valueForOverConflictingPropertiesAndEntries = test.catch(() -> new Dynamic {
  for (v in overlappingPropertyNamesAndEntryKeys) {
    [v] = v
  }
})

keyValueForOverConflictingPropertiesAndEntries = test.catch(() -> new Dynamic {
  for (k, v in overlappingPropertyNamesAndEntryKeys) {
    [k] = v
  }
})

forWithMultipleMembers = new Dynamic {
  for (ch in List("a", "b", "c")) {
    [ch] = ch
    [ch + "x"] = ch + "x"
    [ch + "y"] = ch + "y"
  }
}

forWithMultipleMembersNested = new Mapping {
  for (ch in List("a", "b")) {
    for (k, v in Map("x", 1, "y", 2)) {
      [ch + k + v.toString()] = ch + k + v.toString()
      [v.toString() + k + ch] = v.toString() + k + ch
    }
    for (k, v in Map("xx", 11, "yy", 22)) {
      [ch + k + v.toString()] = ch + k + v.toString()
      [v.toString() + k + ch] = v.toString() + k + ch
    }
  }
}

whenWithMultipleMembers = new Dynamic {
  for (i, n in new Listing { 1; 2; 3; 4; 5 }) {
    when (n.isOdd) {
      [(i + 1) * n] = (i + 1) * n
      [(i + 1) * n * 2] = (i + 1) * n * 2
    }
  }
}

whenWithMultipleMembersNested = new Mapping {
  for (i, n in new Listing { 1; 2; 3; 4; 5 }) {
    when (n.isOdd) {
      when (n > 3) {
        [(i + 1) * n] = (i + 1) * n
        [(i + 1) * n * 2] = (i + 1) * n * 2
      }
    }
  }
}

whenWithElse = new Dynamic {
  for (i, n in new Listing { 1; 2; 3; 4; 5 }) {
    when (n.isOdd) {
      [(i + 1) * n] = (i + 1) * n
      [(i + 1) * n * 2] = (i + 1) * n * 2
    } else {
      [((i + 1) * n).toString()] = ((i + 1) * n).toString()
      [((i + 1) * n * 2).toString()] = ((i + 1) * n * 2).toString()
    }
  }
}

function generateEntries() = new Mapping {
  // noinspection ReplaceForGeneratorWithSpread
  for (k, v in Map("a", 1, "b", 2)) {
    [k] = v
  }
}

withinMethod = generateEntries()

withinLetExpr =
  let (m = Map("a", 1, "b", 2))
    new Mapping {
      // noinspection ReplaceForGeneratorWithSpread
      for (k, v in m) {
        [k] = v
      }
    }

--------------------------------------------------------------------------------

(module
  (importClause
    (stringConstant))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)
              (intLiteral)
              (intLiteral)
              (intLiteral)))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)
              (intLiteral)
              (intLiteral)
              (intLiteral)))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)
              (intLiteral)
              (intLiteral)
              (intLiteral)))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)
              (intLiteral)
              (intLiteral)
              (intLiteral)))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)
              (intLiteral)
              (intLiteral)
              (intLiteral)))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)
              (intLiteral)
              (intLiteral)
              (intLiteral)))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)
              (intLiteral)
              (intLiteral)
              (intLiteral)))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)
              (intLiteral)
              (intLiteral)
              (intLiteral)))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (slStringLiteral)
              (intLiteral)
              (slStringLiteral)
              (intLiteral)))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (variableExpr
                    (identifier))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (slStringLiteral)
              (intLiteral)
              (slStringLiteral)
              (intLiteral)))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (variableExpr
                    (identifier))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (slStringLiteral)
              (intLiteral)
              (slStringLiteral)
              (intLiteral)))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (methodCallExpr
                    (variableExpr
                      (identifier))
                    (identifier)
                    (argumentList))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (slStringLiteral)
              (intLiteral)
              (slStringLiteral)
              (intLiteral)))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (methodCallExpr
                    (variableExpr
                      (identifier))
                    (identifier)
                    (argumentList))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (objectEntry
                (slStringLiteral)
                (intLiteral))
              (objectEntry
                (slStringLiteral)
                (intLiteral))))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (variableExpr
                    (identifier))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (objectEntry
                (slStringLiteral)
                (intLiteral))
              (objectEntry
                (slStringLiteral)
                (intLiteral))))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (variableExpr
                    (identifier))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (objectEntry
                (slStringLiteral)
                (intLiteral))
              (objectEntry
                (slStringLiteral)
                (intLiteral))))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (methodCallExpr
                    (variableExpr
                      (identifier))
                    (identifier)
                    (argumentList))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (objectEntry
                (slStringLiteral)
                (intLiteral))
              (objectEntry
                (slStringLiteral)
                (intLiteral))))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (methodCallExpr
                    (variableExpr
                      (identifier))
                    (identifier)
                    (argumentList))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (objectEntry
                (slStringLiteral)
                (intLiteral))
              (objectEntry
                (slStringLiteral)
                (intLiteral))))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (variableExpr
                    (identifier))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (objectEntry
                (slStringLiteral)
                (intLiteral))
              (objectEntry
                (slStringLiteral)
                (intLiteral))))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (variableExpr
                    (identifier))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (objectEntry
                (slStringLiteral)
                (intLiteral))
              (objectEntry
                (slStringLiteral)
                (intLiteral))))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (methodCallExpr
                    (variableExpr
                      (identifier))
                    (identifier)
                    (argumentList))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (objectEntry
                (slStringLiteral)
                (intLiteral))
              (objectEntry
                (slStringLiteral)
                (intLiteral))))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (methodCallExpr
                    (variableExpr
                      (identifier))
                    (identifier)
                    (argumentList))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (objectEntry
          (slStringLiteral)
          (intLiteral))
        (whenGenerator
          (binaryExpr
            (binaryExpr
              (intLiteral)
              (intLiteral))
            (intLiteral))
          (objectBody
            (objectEntry
              (slStringLiteral)
              (intLiteral))))
        (whenGenerator
          (binaryExpr
            (binaryExpr
              (intLiteral)
              (intLiteral))
            (intLiteral))
          (objectBody
            (objectEntry
              (slStringLiteral)
              (intLiteral)))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (objectEntry
          (slStringLiteral)
          (intLiteral))
        (whenGenerator
          (binaryExpr
            (binaryExpr
              (intLiteral)
              (intLiteral))
            (intLiteral))
          (objectBody
            (objectEntry
              (slStringLiteral)
              (intLiteral))))
        (whenGenerator
          (binaryExpr
            (binaryExpr
              (intLiteral)
              (intLiteral))
            (intLiteral))
          (objectBody
            (objectEntry
              (slStringLiteral)
              (intLiteral)))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (slStringLiteral)
              (slStringLiteral)
              (slStringLiteral)))
          (objectBody
            (forGenerator
              (typedIdentifier
                (identifier))
              (methodCallExpr
                (identifier)
                (argumentList
                  (slStringLiteral)
                  (slStringLiteral)))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (slStringLiteral)
              (slStringLiteral)
              (slStringLiteral)))
          (objectBody
            (forGenerator
              (typedIdentifier
                (identifier))
              (methodCallExpr
                (identifier)
                (argumentList
                  (slStringLiteral)
                  (slStringLiteral)))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (slStringLiteral)
              (slStringLiteral)
              (slStringLiteral)))
          (objectBody
            (forGenerator
              (typedIdentifier
                (identifier))
              (typedIdentifier
                (identifier))
              (methodCallExpr
                (identifier)
                (argumentList
                  (slStringLiteral)
                  (slStringLiteral)))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))
                  (methodCallExpr
                    (identifier)
                    (argumentList
                      (binaryExpr
                        (variableExpr
                          (identifier))
                        (variableExpr
                          (identifier)))
                      (binaryExpr
                        (variableExpr
                          (identifier))
                        (variableExpr
                          (identifier)))))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (slStringLiteral)
              (slStringLiteral)
              (slStringLiteral)))
          (objectBody
            (forGenerator
              (typedIdentifier
                (identifier))
              (typedIdentifier
                (identifier))
              (methodCallExpr
                (identifier)
                (argumentList
                  (slStringLiteral)
                  (slStringLiteral)))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))
                  (methodCallExpr
                    (identifier)
                    (argumentList
                      (binaryExpr
                        (variableExpr
                          (identifier))
                        (variableExpr
                          (identifier)))
                      (binaryExpr
                        (variableExpr
                          (identifier))
                        (variableExpr
                          (identifier)))))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (objectEntry
          (slStringLiteral)
          (intLiteral))
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral)))))))
        (objectEntry
          (slStringLiteral)
          (intLiteral))
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (slStringLiteral)
              (slStringLiteral)
              (slStringLiteral)))
          (objectBody
            (forGenerator
              (typedIdentifier
                (identifier))
              (methodCallExpr
                (identifier)
                (argumentList
                  (slStringLiteral)
                  (slStringLiteral)))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier))))))))
        (objectEntry
          (slStringLiteral)
          (intLiteral)))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (objectEntry
          (slStringLiteral)
          (intLiteral))
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral)))))))
        (objectEntry
          (slStringLiteral)
          (intLiteral))
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (slStringLiteral)
              (slStringLiteral)
              (slStringLiteral)))
          (objectBody
            (forGenerator
              (typedIdentifier
                (identifier))
              (methodCallExpr
                (identifier)
                (argumentList
                  (slStringLiteral)
                  (slStringLiteral)))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier))))))))
        (objectEntry
          (slStringLiteral)
          (intLiteral)))))
  (lineComment)
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)))
          (objectBody
            (objectEntry
              (variableExpr
                (identifier))
              (variableExpr
                (identifier)))))
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (slStringLiteral)
              (slStringLiteral)
              (slStringLiteral)))
          (objectBody
            (objectEntry
              (variableExpr
                (identifier))
              (variableExpr
                (identifier)))))
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)))
          (objectBody
            (objectEntry
              (variableExpr
                (identifier))
              (variableExpr
                (identifier))))))))
  (lineComment)
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)))
          (objectBody
            (objectEntry
              (variableExpr
                (identifier))
              (variableExpr
                (identifier)))))
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (slStringLiteral)
              (slStringLiteral)
              (slStringLiteral)))
          (objectBody
            (objectEntry
              (variableExpr
                (identifier))
              (variableExpr
                (identifier)))))
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)))
          (objectBody
            (objectEntry
              (variableExpr
                (identifier))
              (variableExpr
                (identifier))))))))
  (lineComment)
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)))
          (objectBody
            (objectEntry
              (variableExpr
                (identifier))
              (methodCallExpr
                (identifier)
                (argumentList
                  (variableExpr
                    (identifier))
                  (variableExpr
                    (identifier)))))))
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (slStringLiteral)
              (slStringLiteral)
              (slStringLiteral)))
          (objectBody
            (objectEntry
              (variableExpr
                (identifier))
              (methodCallExpr
                (identifier)
                (argumentList
                  (variableExpr
                    (identifier))
                  (variableExpr
                    (identifier)))))))
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)))
          (objectBody
            (objectEntry
              (variableExpr
                (identifier))
              (methodCallExpr
                (identifier)
                (argumentList
                  (variableExpr
                    (identifier))
                  (variableExpr
                    (identifier))))))))))
  (lineComment)
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)))
          (objectBody
            (objectEntry
              (variableExpr
                (identifier))
              (methodCallExpr
                (identifier)
                (argumentList
                  (variableExpr
                    (identifier))
                  (variableExpr
                    (identifier)))))))
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (slStringLiteral)
              (slStringLiteral)
              (slStringLiteral)))
          (objectBody
            (objectEntry
              (variableExpr
                (identifier))
              (methodCallExpr
                (identifier)
                (argumentList
                  (variableExpr
                    (identifier))
                  (variableExpr
                    (identifier)))))))
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)))
          (objectBody
            (objectEntry
              (variableExpr
                (identifier))
              (methodCallExpr
                (identifier)
                (argumentList
                  (variableExpr
                    (identifier))
                  (variableExpr
                    (identifier))))))))))
  (classProperty
    (modifier)
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (objectProperty
          (identifier)
          (slStringLiteral))
        (objectProperty
          (identifier)
          (intLiteral))
        (objectProperty
          (identifier)
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (slStringLiteral)))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (variableExpr
            (identifier))
          (objectBody
            (objectEntry
              (variableExpr
                (identifier))
              (variableExpr
                (identifier))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (variableExpr
            (identifier))
          (objectBody
            (objectEntry
              (variableExpr
                (identifier))
              (variableExpr
                (identifier))))))))
  (classProperty
    (modifier)
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (objectProperty
          (identifier)
          (slStringLiteral))
        (objectElement
          (slStringLiteral))
        (objectProperty
          (identifier)
          (intLiteral))
        (objectEntry
          (slStringLiteral)
          (intLiteral))
        (objectElement
          (slStringLiteral))
        (objectEntry
          (slStringLiteral)
          (slStringLiteral)))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (variableExpr
            (identifier))
          (objectBody
            (objectEntry
              (variableExpr
                (identifier))
              (variableExpr
                (identifier))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (variableExpr
            (identifier))
          (objectBody
            (objectEntry
              (variableExpr
                (identifier))
              (variableExpr
                (identifier))))))))
  (clazz
    (identifier)
    (classBody
      (classProperty
        (identifier)
        (typeAnnotation
          (type
            (qualifiedIdentifier
              (identifier)))))
      (classProperty
        (identifier)
        (typeAnnotation
          (type
            (qualifiedIdentifier
              (identifier)))))))
  (classProperty
    (modifier)
    (identifier)
    (typeAnnotation
      (type
        (qualifiedIdentifier
          (identifier))))
    (newExpr
      (objectBody
        (objectProperty
          (identifier)
          (slStringLiteral))
        (objectProperty
          (identifier)
          (intLiteral)))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (variableExpr
              (identifier))
            (identifier)
            (argumentList))
          (objectBody
            (objectEntry
              (variableExpr
                (identifier))
              (variableExpr
                (identifier))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (variableExpr
              (identifier))
            (identifier)
            (argumentList))
          (objectBody
            (objectEntry
              (variableExpr
                (identifier))
              (variableExpr
                (identifier))))))))
  (classProperty
    (modifier)
    (identifier)
    (typeAnnotation
      (type
        (qualifiedIdentifier
          (identifier))))
    (newExpr
      (objectBody
        (objectProperty
          (identifier)
          (slStringLiteral))
        (objectEntry
          (slStringLiteral)
          (slStringLiteral))
        (objectEntry
          (slStringLiteral)
          (slStringLiteral))
        (objectProperty
          (identifier)
          (slStringLiteral)))))
  (classProperty
    (identifier)
    (methodCallExpr
      (variableExpr
        (identifier))
      (identifier)
      (argumentList
        (functionLiteral
          (parameterList)
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (forGenerator
                (typedIdentifier
                  (identifier))
                (variableExpr
                  (identifier))
                (objectBody
                  (objectEntry
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))))))))))
  (classProperty
    (identifier)
    (methodCallExpr
      (variableExpr
        (identifier))
      (identifier)
      (argumentList
        (functionLiteral
          (parameterList)
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (forGenerator
                (typedIdentifier
                  (identifier))
                (typedIdentifier
                  (identifier))
                (variableExpr
                  (identifier))
                (objectBody
                  (objectEntry
                    (variableExpr
                      (identifier))
                    (variableExpr
                      (identifier)))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (slStringLiteral)
              (slStringLiteral)
              (slStringLiteral)))
          (objectBody
            (objectEntry
              (variableExpr
                (identifier))
              (variableExpr
                (identifier)))
            (objectEntry
              (binaryExpr
                (variableExpr
                  (identifier))
                (slStringLiteral))
              (binaryExpr
                (variableExpr
                  (identifier))
                (slStringLiteral)))
            (objectEntry
              (binaryExpr
                (variableExpr
                  (identifier))
                (slStringLiteral))
              (binaryExpr
                (variableExpr
                  (identifier))
                (slStringLiteral))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (slStringLiteral)
              (slStringLiteral)))
          (objectBody
            (forGenerator
              (typedIdentifier
                (identifier))
              (typedIdentifier
                (identifier))
              (methodCallExpr
                (identifier)
                (argumentList
                  (slStringLiteral)
                  (intLiteral)
                  (slStringLiteral)
                  (intLiteral)))
              (objectBody
                (objectEntry
                  (methodCallExpr
                    (binaryExpr
                      (binaryExpr
                        (variableExpr
                          (identifier))
                        (variableExpr
                          (identifier)))
                      (variableExpr
                        (identifier)))
                    (identifier)
                    (argumentList))
                  (methodCallExpr
                    (binaryExpr
                      (binaryExpr
                        (variableExpr
                          (identifier))
                        (variableExpr
                          (identifier)))
                      (variableExpr
                        (identifier)))
                    (identifier)
                    (argumentList)))
                (objectEntry
                  (binaryExpr
                    (binaryExpr
                      (methodCallExpr
                        (variableExpr
                          (identifier))
                        (identifier)
                        (argumentList))
                      (variableExpr
                        (identifier)))
                    (variableExpr
                      (identifier)))
                  (binaryExpr
                    (binaryExpr
                      (methodCallExpr
                        (variableExpr
                          (identifier))
                        (identifier)
                        (argumentList))
                      (variableExpr
                        (identifier)))
                    (variableExpr
                      (identifier))))))
            (forGenerator
              (typedIdentifier
                (identifier))
              (typedIdentifier
                (identifier))
              (methodCallExpr
                (identifier)
                (argumentList
                  (slStringLiteral)
                  (intLiteral)
                  (slStringLiteral)
                  (intLiteral)))
              (objectBody
                (objectEntry
                  (methodCallExpr
                    (binaryExpr
                      (binaryExpr
                        (variableExpr
                          (identifier))
                        (variableExpr
                          (identifier)))
                      (variableExpr
                        (identifier)))
                    (identifier)
                    (argumentList))
                  (methodCallExpr
                    (binaryExpr
                      (binaryExpr
                        (variableExpr
                          (identifier))
                        (variableExpr
                          (identifier)))
                      (variableExpr
                        (identifier)))
                    (identifier)
                    (argumentList)))
                (objectEntry
                  (binaryExpr
                    (binaryExpr
                      (methodCallExpr
                        (variableExpr
                          (identifier))
                        (identifier)
                        (argumentList))
                      (variableExpr
                        (identifier)))
                    (variableExpr
                      (identifier)))
                  (binaryExpr
                    (binaryExpr
                      (methodCallExpr
                        (variableExpr
                          (identifier))
                        (identifier)
                        (argumentList))
                      (variableExpr
                        (identifier)))
                    (variableExpr
                      (identifier)))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (parenthesizedExpr
                      (binaryExpr
                        (variableExpr
                          (identifier))
                        (intLiteral)))
                    (variableExpr
                      (identifier)))
                  (binaryExpr
                    (parenthesizedExpr
                      (binaryExpr
                        (variableExpr
                          (identifier))
                        (intLiteral)))
                    (variableExpr
                      (identifier))))
                (objectEntry
                  (binaryExpr
                    (binaryExpr
                      (parenthesizedExpr
                        (binaryExpr
                          (variableExpr
                            (identifier))
                          (intLiteral)))
                      (variableExpr
                        (identifier)))
                    (intLiteral))
                  (binaryExpr
                    (binaryExpr
                      (parenthesizedExpr
                        (binaryExpr
                          (variableExpr
                            (identifier))
                          (intLiteral)))
                      (variableExpr
                        (identifier)))
                    (intLiteral))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (whenGenerator
                  (binaryExpr
                    (variableExpr
                      (identifier))
                    (intLiteral))
                  (objectBody
                    (objectEntry
                      (binaryExpr
                        (parenthesizedExpr
                          (binaryExpr
                            (variableExpr
                              (identifier))
                            (intLiteral)))
                        (variableExpr
                          (identifier)))
                      (binaryExpr
                        (parenthesizedExpr
                          (binaryExpr
                            (variableExpr
                              (identifier))
                            (intLiteral)))
                        (variableExpr
                          (identifier))))
                    (objectEntry
                      (binaryExpr
                        (binaryExpr
                          (parenthesizedExpr
                            (binaryExpr
                              (variableExpr
                                (identifier))
                              (intLiteral)))
                          (variableExpr
                            (identifier)))
                        (intLiteral))
                      (binaryExpr
                        (binaryExpr
                          (parenthesizedExpr
                            (binaryExpr
                              (variableExpr
                                (identifier))
                              (intLiteral)))
                          (variableExpr
                            (identifier)))
                        (intLiteral))))))))))))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))
              (objectElement
                (intLiteral))))
          (objectBody
            (whenGenerator
              (propertyCallExpr
                (variableExpr
                  (identifier))
                (identifier))
              (objectBody
                (objectEntry
                  (binaryExpr
                    (parenthesizedExpr
                      (binaryExpr
                        (variableExpr
                          (identifier))
                        (intLiteral)))
                    (variableExpr
                      (identifier)))
                  (binaryExpr
                    (parenthesizedExpr
                      (binaryExpr
                        (variableExpr
                          (identifier))
                        (intLiteral)))
                    (variableExpr
                      (identifier))))
                (objectEntry
                  (binaryExpr
                    (binaryExpr
                      (parenthesizedExpr
                        (binaryExpr
                          (variableExpr
                            (identifier))
                          (intLiteral)))
                      (variableExpr
                        (identifier)))
                    (intLiteral))
                  (binaryExpr
                    (binaryExpr
                      (parenthesizedExpr
                        (binaryExpr
                          (variableExpr
                            (identifier))
                          (intLiteral)))
                      (variableExpr
                        (identifier)))
                    (intLiteral)))))
            (objectProperty
              (identifier)
              (objectBody
                (objectEntry
                  (methodCallExpr
                    (parenthesizedExpr
                      (binaryExpr
                        (parenthesizedExpr
                          (binaryExpr
                            (variableExpr
                              (identifier))
                            (intLiteral)))
                        (variableExpr
                          (identifier))))
                    (identifier)
                    (argumentList))
                  (methodCallExpr
                    (parenthesizedExpr
                      (binaryExpr
                        (parenthesizedExpr
                          (binaryExpr
                            (variableExpr
                              (identifier))
                            (intLiteral)))
                        (variableExpr
                          (identifier))))
                    (identifier)
                    (argumentList)))
                (objectEntry
                  (methodCallExpr
                    (parenthesizedExpr
                      (binaryExpr
                        (binaryExpr
                          (parenthesizedExpr
                            (binaryExpr
                              (variableExpr
                                (identifier))
                              (intLiteral)))
                          (variableExpr
                            (identifier)))
                        (intLiteral)))
                    (identifier)
                    (argumentList))
                  (methodCallExpr
                    (parenthesizedExpr
                      (binaryExpr
                        (binaryExpr
                          (parenthesizedExpr
                            (binaryExpr
                              (variableExpr
                                (identifier))
                              (intLiteral)))
                          (variableExpr
                            (identifier)))
                        (intLiteral)))
                    (identifier)
                    (argumentList))))))))))
  (classMethod
    (methodHeader
      (identifier)
      (parameterList))
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (lineComment)
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (slStringLiteral)
              (intLiteral)
              (slStringLiteral)
              (intLiteral)))
          (objectBody
            (objectEntry
              (variableExpr
                (identifier))
              (variableExpr
                (identifier))))))))
  (classProperty
    (identifier)
    (methodCallExpr
      (identifier)
      (argumentList)))
  (classProperty
    (identifier)
    (letExpr
      (typedIdentifier
        (identifier))
      (methodCallExpr
        (identifier)
        (argumentList
          (slStringLiteral)
          (intLiteral)
          (slStringLiteral)
          (intLiteral)))
      (newExpr
        (type
          (qualifiedIdentifier
            (identifier)))
        (objectBody
          (lineComment)
          (forGenerator
            (typedIdentifier
              (identifier))
            (typedIdentifier
              (identifier))
            (variableExpr
              (identifier))
            (objectBody
              (objectEntry
                (variableExpr
                  (identifier))
                (variableExpr
                  (identifier))))))))))
