================================================================================
api/yamlRendererStream1
================================================================================

local renderer = new YamlRenderer { isStream = true }

local stream = new Listing {
  "pigeon"
  42
  new Listing {
    "barn owl"
    "parrot"
  }
  new Mapping {
    ["surfing"] {
      skill = "low"
    }
    ["firemaking"] {
      skill = "high"
    }
  }
  new Dynamic {
    street = "Norton St."
    zip = 12345
  }
}

a = renderer.renderDocument(stream)

b = renderer.renderDocument(stream.toList())

c = renderer.renderDocument(stream.toSet())

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

(module
  (classProperty
    (modifier)
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (objectProperty
          (identifier)
          (trueLiteral)))))
  (classProperty
    (modifier)
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody
        (objectElement
          (slStringLiteral))
        (objectElement
          (intLiteral))
        (objectElement
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (objectElement
                (slStringLiteral))
              (objectElement
                (slStringLiteral)))))
        (objectElement
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (objectEntry
                (slStringLiteral)
                (objectBody
                  (objectProperty
                    (identifier)
                    (slStringLiteral))))
              (objectEntry
                (slStringLiteral)
                (objectBody
                  (objectProperty
                    (identifier)
                    (slStringLiteral)))))))
        (objectElement
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (objectProperty
                (identifier)
                (slStringLiteral))
              (objectProperty
                (identifier)
                (intLiteral))))))))
  (classProperty
    (identifier)
    (methodCallExpr
      (variableExpr
        (identifier))
      (identifier)
      (argumentList
        (variableExpr
          (identifier)))))
  (classProperty
    (identifier)
    (methodCallExpr
      (variableExpr
        (identifier))
      (identifier)
      (argumentList
        (methodCallExpr
          (variableExpr
            (identifier))
          (identifier)
          (argumentList)))))
  (classProperty
    (identifier)
    (methodCallExpr
      (variableExpr
        (identifier))
      (identifier)
      (argumentList
        (methodCallExpr
          (variableExpr
            (identifier))
          (identifier)
          (argumentList))))))
