beginCompilationUnit(class)
  beginMetadataStar(class)
  endMetadataStar(0)
  beginClassOrNamedMixinApplicationPrelude(class)
    handleIdentifier(A, classOrMixinDeclaration)
    handleNoTypeVariables({)
    beginClassDeclaration(class, null, A)
      handleNoType(A)
      handleClassExtends(null)
      handleClassNoWithClause()
      handleClassOrMixinImplements(null, 0)
      handleClassHeader(class, class, null)
      beginClassOrMixinBody(DeclarationKind.Class, {)
      endClassOrMixinBody(DeclarationKind.Class, 0, {, })
    endClassDeclaration(class, })
  endTopLevelDeclaration(class)
  beginMetadataStar(class)
  endMetadataStar(0)
  beginClassOrNamedMixinApplicationPrelude(class)
    handleIdentifier(C, classOrMixinDeclaration)
    handleNoTypeVariables(extends)
    beginClassDeclaration(class, null, C)
      handleIdentifier(A, typeReference)
      handleNoTypeArguments({)
      handleType(A, null)
      handleClassExtends(extends)
      handleClassNoWithClause()
      handleClassOrMixinImplements(null, 0)
      handleClassHeader(class, class, null)
      beginClassOrMixinBody(DeclarationKind.Class, {)
      endClassOrMixinBody(DeclarationKind.Class, 0, {, })
    endClassDeclaration(class, })
  endTopLevelDeclaration(extension)
  beginMetadataStar(extension)
  endMetadataStar(0)
  beginExtensionDeclarationPrelude(extension)
    handleNoTypeVariables(on)
    beginExtensionDeclaration(extension, null)
      handleIdentifier(C, typeReference)
      handleNoTypeArguments({)
      handleType(C, null)
      beginClassOrMixinBody(DeclarationKind.Extension, {)
        beginMetadataStar(static)
        endMetadataStar(0)
        beginMember()
          beginMethod(null, static, null, null, null, addChild)
            handleNoType(static)
            handleIdentifier(addChild, methodDeclaration)
            handleNoTypeVariables(()
            beginFormalParameters((, MemberKind.StaticMethod)
              beginMetadataStar(covariant)
              endMetadataStar(0)
              handleRecoverableError(Instance of 'Message', covariant, covariant)
              beginFormalParameter(covariant, MemberKind.StaticMethod, null, null, null)
                handleIdentifier(A, typeReference)
                handleNoTypeArguments(child)
                handleType(A, null)
                handleIdentifier(child, formalParameterDeclaration)
                handleFormalParameterWithoutValue())
              endFormalParameter(null, null, child, null, null, FormalParameterKind.mandatory, MemberKind.StaticMethod)
            endFormalParameters(1, (, ), MemberKind.StaticMethod)
            handleNoInitializers()
            handleAsyncModifier(null, null)
            beginBlockFunctionBody({)
            endBlockFunctionBody(0, {, })
          endExtensionMethod(null, static, (, null, })
        endMember()
      endClassOrMixinBody(DeclarationKind.Extension, 1, {, })
    endExtensionDeclaration(extension, on, })
  endTopLevelDeclaration()
endCompilationUnit(3, )
