{
  "type": "Program",
  "start": 0,
  "end": 3422,
  "loc": {
    "start": {
      "line": 1,
      "column": 0
    },
    "end": {
      "line": 88,
      "column": 0
    }
  },
  "sourceType": "module",
  "body": [
    {
      "type": "ImportDeclaration",
      "start": 149,
      "end": 187,
      "loc": {
        "start": {
          "line": 6,
          "column": 0
        },
        "end": {
          "line": 6,
          "column": 38
        }
      },
      "specifiers": [
        {
          "type": "ImportSpecifier",
          "start": 157,
          "end": 172,
          "loc": {
            "start": {
              "line": 6,
              "column": 8
            },
            "end": {
              "line": 6,
              "column": 23
            }
          },
          "imported": {
            "type": "Identifier",
            "start": 157,
            "end": 160,
            "loc": {
              "start": {
                "line": 6,
                "column": 8
              },
              "end": {
                "line": 6,
                "column": 11
              }
            },
            "name": "map",
            "leadingComments": null
          },
          "local": {
            "type": "Identifier",
            "start": 164,
            "end": 172,
            "loc": {
              "start": {
                "line": 6,
                "column": 15
              },
              "end": {
                "line": 6,
                "column": 23
              }
            },
            "name": "asyncMap"
          },
          "leadingComments": null
        }
      ],
      "importKind": "value",
      "source": {
        "type": "Literal",
        "start": 179,
        "end": 186,
        "loc": {
          "start": {
            "line": 6,
            "column": 30
          },
          "end": {
            "line": 6,
            "column": 37
          }
        },
        "value": "async",
        "rawValue": "async",
        "raw": "'async'"
      },
      "leadingComments": [
        {
          "type": "Block",
          "value": "*\n * This module cleans resources and metadata from a naive (resource concatenated) tree\n * @module converter/sectionConverter/cleanNaiveTree\n ",
          "start": 0,
          "end": 147,
          "loc": {
            "start": {
              "line": 1,
              "column": 0
            },
            "end": {
              "line": 4,
              "column": 3
            }
          },
          "range": [
            0,
            147
          ]
        }
      ],
      "trailingComments": [
        {
          "type": "Block",
          "value": "*\n * Resolves resource and metadata statements from a naive representation of a section\n * @param {Object} params - the cleaning params\n * @param {array} params.errors - the inherited parsing errors to pass along to the next step\n * @param {Object} params.validTree - the tree to clean\n * @param {Object} models - the models to parse the resources with\n * @param {function(error: error, results: {errors: array, validTree: Object})} callback - the possible error, a list of parsing minor errors, and the resulting tree\n ",
          "start": 189,
          "end": 713,
          "loc": {
            "start": {
              "line": 8,
              "column": 0
            },
            "end": {
              "line": 15,
              "column": 3
            }
          },
          "range": [
            189,
            713
          ]
        }
      ]
    },
    {
      "type": "ExportNamedDeclaration",
      "start": 714,
      "end": 3421,
      "loc": {
        "start": {
          "line": 16,
          "column": 0
        },
        "end": {
          "line": 87,
          "column": 2
        }
      },
      "declaration": {
        "type": "VariableDeclaration",
        "start": 721,
        "end": 3421,
        "loc": {
          "start": {
            "line": 16,
            "column": 7
          },
          "end": {
            "line": 87,
            "column": 2
          }
        },
        "declarations": [
          {
            "type": "VariableDeclarator",
            "start": 727,
            "end": 3420,
            "loc": {
              "start": {
                "line": 16,
                "column": 13
              },
              "end": {
                "line": 87,
                "column": 1
              }
            },
            "id": {
              "type": "Identifier",
              "start": 727,
              "end": 741,
              "loc": {
                "start": {
                  "line": 16,
                  "column": 13
                },
                "end": {
                  "line": 16,
                  "column": 27
                }
              },
              "name": "cleanNaiveTree",
              "leadingComments": null
            },
            "init": {
              "type": "ArrowFunctionExpression",
              "start": 744,
              "end": 3420,
              "loc": {
                "start": {
                  "line": 16,
                  "column": 30
                },
                "end": {
                  "line": 87,
                  "column": 1
                }
              },
              "id": null,
              "generator": false,
              "expression": false,
              "async": false,
              "params": [
                {
                  "type": "ObjectPattern",
                  "start": 745,
                  "end": 769,
                  "loc": {
                    "start": {
                      "line": 16,
                      "column": 31
                    },
                    "end": {
                      "line": 16,
                      "column": 55
                    }
                  },
                  "properties": [
                    {
                      "type": "Property",
                      "start": 746,
                      "end": 757,
                      "loc": {
                        "start": {
                          "line": 16,
                          "column": 32
                        },
                        "end": {
                          "line": 16,
                          "column": 43
                        }
                      },
                      "method": false,
                      "shorthand": true,
                      "computed": false,
                      "key": {
                        "type": "Identifier",
                        "start": 746,
                        "end": 752,
                        "loc": {
                          "start": {
                            "line": 16,
                            "column": 32
                          },
                          "end": {
                            "line": 16,
                            "column": 38
                          }
                        },
                        "name": "errors"
                      },
                      "kind": "init",
                      "value": {
                        "type": "AssignmentPattern",
                        "start": 746,
                        "end": 757,
                        "loc": {
                          "start": {
                            "line": 16,
                            "column": 32
                          },
                          "end": {
                            "line": 16,
                            "column": 43
                          }
                        },
                        "operator": "=",
                        "left": {
                          "type": "Identifier",
                          "start": 746,
                          "end": 752,
                          "loc": {
                            "start": {
                              "line": 16,
                              "column": 32
                            },
                            "end": {
                              "line": 16,
                              "column": 38
                            }
                          },
                          "name": "errors"
                        },
                        "right": {
                          "type": "ArrayExpression",
                          "start": 755,
                          "end": 757,
                          "loc": {
                            "start": {
                              "line": 16,
                              "column": 41
                            },
                            "end": {
                              "line": 16,
                              "column": 43
                            }
                          },
                          "elements": []
                        }
                      }
                    },
                    {
                      "type": "Property",
                      "start": 759,
                      "end": 768,
                      "loc": {
                        "start": {
                          "line": 16,
                          "column": 45
                        },
                        "end": {
                          "line": 16,
                          "column": 54
                        }
                      },
                      "method": false,
                      "shorthand": true,
                      "computed": false,
                      "key": {
                        "type": "Identifier",
                        "start": 759,
                        "end": 768,
                        "loc": {
                          "start": {
                            "line": 16,
                            "column": 45
                          },
                          "end": {
                            "line": 16,
                            "column": 54
                          }
                        },
                        "name": "validTree"
                      },
                      "kind": "init",
                      "value": {
                        "type": "Identifier",
                        "start": 759,
                        "end": 768,
                        "loc": {
                          "start": {
                            "line": 16,
                            "column": 45
                          },
                          "end": {
                            "line": 16,
                            "column": 54
                          }
                        },
                        "name": "validTree"
                      }
                    }
                  ]
                },
                {
                  "type": "Identifier",
                  "start": 771,
                  "end": 777,
                  "loc": {
                    "start": {
                      "line": 16,
                      "column": 57
                    },
                    "end": {
                      "line": 16,
                      "column": 63
                    }
                  },
                  "name": "models"
                },
                {
                  "type": "Identifier",
                  "start": 779,
                  "end": 787,
                  "loc": {
                    "start": {
                      "line": 16,
                      "column": 65
                    },
                    "end": {
                      "line": 16,
                      "column": 73
                    }
                  },
                  "name": "callback"
                }
              ],
              "body": {
                "type": "BlockStatement",
                "start": 791,
                "end": 3420,
                "loc": {
                  "start": {
                    "line": 16,
                    "column": 77
                  },
                  "end": {
                    "line": 87,
                    "column": 1
                  }
                },
                "body": [
                  {
                    "type": "VariableDeclaration",
                    "start": 795,
                    "end": 822,
                    "loc": {
                      "start": {
                        "line": 17,
                        "column": 2
                      },
                      "end": {
                        "line": 17,
                        "column": 29
                      }
                    },
                    "declarations": [
                      {
                        "type": "VariableDeclarator",
                        "start": 801,
                        "end": 821,
                        "loc": {
                          "start": {
                            "line": 17,
                            "column": 8
                          },
                          "end": {
                            "line": 17,
                            "column": 28
                          }
                        },
                        "id": {
                          "type": "Identifier",
                          "start": 801,
                          "end": 816,
                          "loc": {
                            "start": {
                              "line": 17,
                              "column": 8
                            },
                            "end": {
                              "line": 17,
                              "column": 23
                            }
                          },
                          "name": "contextualizers"
                        },
                        "init": {
                          "type": "ArrayExpression",
                          "start": 819,
                          "end": 821,
                          "loc": {
                            "start": {
                              "line": 17,
                              "column": 26
                            },
                            "end": {
                              "line": 17,
                              "column": 28
                            }
                          },
                          "elements": []
                        }
                      }
                    ],
                    "kind": "const"
                  },
                  {
                    "type": "VariableDeclaration",
                    "start": 825,
                    "end": 872,
                    "loc": {
                      "start": {
                        "line": 18,
                        "column": 2
                      },
                      "end": {
                        "line": 18,
                        "column": 49
                      }
                    },
                    "declarations": [
                      {
                        "type": "VariableDeclarator",
                        "start": 831,
                        "end": 871,
                        "loc": {
                          "start": {
                            "line": 18,
                            "column": 8
                          },
                          "end": {
                            "line": 18,
                            "column": 48
                          }
                        },
                        "id": {
                          "type": "Identifier",
                          "start": 831,
                          "end": 840,
                          "loc": {
                            "start": {
                              "line": 18,
                              "column": 8
                            },
                            "end": {
                              "line": 18,
                              "column": 17
                            }
                          },
                          "name": "naiveTree"
                        },
                        "init": {
                          "type": "CallExpression",
                          "start": 843,
                          "end": 871,
                          "loc": {
                            "start": {
                              "line": 18,
                              "column": 20
                            },
                            "end": {
                              "line": 18,
                              "column": 48
                            }
                          },
                          "callee": {
                            "type": "MemberExpression",
                            "start": 843,
                            "end": 856,
                            "loc": {
                              "start": {
                                "line": 18,
                                "column": 20
                              },
                              "end": {
                                "line": 18,
                                "column": 33
                              }
                            },
                            "object": {
                              "type": "Identifier",
                              "start": 843,
                              "end": 849,
                              "loc": {
                                "start": {
                                  "line": 18,
                                  "column": 20
                                },
                                "end": {
                                  "line": 18,
                                  "column": 26
                                }
                              },
                              "name": "Object"
                            },
                            "property": {
                              "type": "Identifier",
                              "start": 850,
                              "end": 856,
                              "loc": {
                                "start": {
                                  "line": 18,
                                  "column": 27
                                },
                                "end": {
                                  "line": 18,
                                  "column": 33
                                }
                              },
                              "name": "assign"
                            },
                            "computed": false
                          },
                          "arguments": [
                            {
                              "type": "ObjectExpression",
                              "start": 857,
                              "end": 859,
                              "loc": {
                                "start": {
                                  "line": 18,
                                  "column": 34
                                },
                                "end": {
                                  "line": 18,
                                  "column": 36
                                }
                              },
                              "properties": []
                            },
                            {
                              "type": "Identifier",
                              "start": 861,
                              "end": 870,
                              "loc": {
                                "start": {
                                  "line": 18,
                                  "column": 38
                                },
                                "end": {
                                  "line": 18,
                                  "column": 47
                                }
                              },
                              "name": "validTree"
                            }
                          ]
                        }
                      }
                    ],
                    "kind": "const"
                  },
                  {
                    "type": "VariableDeclaration",
                    "start": 875,
                    "end": 888,
                    "loc": {
                      "start": {
                        "line": 19,
                        "column": 2
                      },
                      "end": {
                        "line": 19,
                        "column": 15
                      }
                    },
                    "declarations": [
                      {
                        "type": "VariableDeclarator",
                        "start": 879,
                        "end": 887,
                        "loc": {
                          "start": {
                            "line": 19,
                            "column": 6
                          },
                          "end": {
                            "line": 19,
                            "column": 14
                          }
                        },
                        "id": {
                          "type": "Identifier",
                          "start": 879,
                          "end": 887,
                          "loc": {
                            "start": {
                              "line": 19,
                              "column": 6
                            },
                            "end": {
                              "line": 19,
                              "column": 14
                            }
                          },
                          "name": "metadata"
                        },
                        "init": null
                      }
                    ],
                    "kind": "let"
                  },
                  {
                    "type": "VariableDeclaration",
                    "start": 891,
                    "end": 945,
                    "loc": {
                      "start": {
                        "line": 20,
                        "column": 2
                      },
                      "end": {
                        "line": 20,
                        "column": 56
                      }
                    },
                    "declarations": [
                      {
                        "type": "VariableDeclarator",
                        "start": 897,
                        "end": 944,
                        "loc": {
                          "start": {
                            "line": 20,
                            "column": 8
                          },
                          "end": {
                            "line": 20,
                            "column": 55
                          }
                        },
                        "id": {
                          "type": "Identifier",
                          "start": 897,
                          "end": 909,
                          "loc": {
                            "start": {
                              "line": 20,
                              "column": 8
                            },
                            "end": {
                              "line": 20,
                              "column": 20
                            }
                          },
                          "name": "hasResources"
                        },
                        "init": {
                          "type": "LogicalExpression",
                          "start": 912,
                          "end": 944,
                          "loc": {
                            "start": {
                              "line": 20,
                              "column": 23
                            },
                            "end": {
                              "line": 20,
                              "column": 55
                            }
                          },
                          "left": {
                            "type": "Identifier",
                            "start": 912,
                            "end": 921,
                            "loc": {
                              "start": {
                                "line": 20,
                                "column": 23
                              },
                              "end": {
                                "line": 20,
                                "column": 32
                              }
                            },
                            "name": "naiveTree"
                          },
                          "operator": "&&",
                          "right": {
                            "type": "MemberExpression",
                            "start": 925,
                            "end": 944,
                            "loc": {
                              "start": {
                                "line": 20,
                                "column": 36
                              },
                              "end": {
                                "line": 20,
                                "column": 55
                              }
                            },
                            "object": {
                              "type": "Identifier",
                              "start": 925,
                              "end": 934,
                              "loc": {
                                "start": {
                                  "line": 20,
                                  "column": 36
                                },
                                "end": {
                                  "line": 20,
                                  "column": 45
                                }
                              },
                              "name": "naiveTree"
                            },
                            "property": {
                              "type": "Identifier",
                              "start": 935,
                              "end": 944,
                              "loc": {
                                "start": {
                                  "line": 20,
                                  "column": 46
                                },
                                "end": {
                                  "line": 20,
                                  "column": 55
                                }
                              },
                              "name": "resources"
                            },
                            "computed": false
                          }
                        }
                      }
                    ],
                    "kind": "const"
                  },
                  {
                    "type": "IfStatement",
                    "start": 948,
                    "end": 2054,
                    "loc": {
                      "start": {
                        "line": 21,
                        "column": 2
                      },
                      "end": {
                        "line": 57,
                        "column": 3
                      }
                    },
                    "test": {
                      "type": "Identifier",
                      "start": 952,
                      "end": 964,
                      "loc": {
                        "start": {
                          "line": 21,
                          "column": 6
                        },
                        "end": {
                          "line": 21,
                          "column": 18
                        }
                      },
                      "name": "hasResources"
                    },
                    "consequent": {
                      "type": "BlockStatement",
                      "start": 966,
                      "end": 2054,
                      "loc": {
                        "start": {
                          "line": 21,
                          "column": 20
                        },
                        "end": {
                          "line": 57,
                          "column": 3
                        }
                      },
                      "body": [
                        {
                          "type": "ExpressionStatement",
                          "start": 972,
                          "end": 2050,
                          "loc": {
                            "start": {
                              "line": 22,
                              "column": 4
                            },
                            "end": {
                              "line": 56,
                              "column": 7
                            }
                          },
                          "expression": {
                            "type": "AssignmentExpression",
                            "start": 972,
                            "end": 2049,
                            "loc": {
                              "start": {
                                "line": 22,
                                "column": 4
                              },
                              "end": {
                                "line": 56,
                                "column": 6
                              }
                            },
                            "operator": "=",
                            "left": {
                              "type": "MemberExpression",
                              "start": 972,
                              "end": 991,
                              "loc": {
                                "start": {
                                  "line": 22,
                                  "column": 4
                                },
                                "end": {
                                  "line": 22,
                                  "column": 23
                                }
                              },
                              "object": {
                                "type": "Identifier",
                                "start": 972,
                                "end": 981,
                                "loc": {
                                  "start": {
                                    "line": 22,
                                    "column": 4
                                  },
                                  "end": {
                                    "line": 22,
                                    "column": 13
                                  }
                                },
                                "name": "naiveTree"
                              },
                              "property": {
                                "type": "Identifier",
                                "start": 982,
                                "end": 991,
                                "loc": {
                                  "start": {
                                    "line": 22,
                                    "column": 14
                                  },
                                  "end": {
                                    "line": 22,
                                    "column": 23
                                  }
                                },
                                "name": "resources"
                              },
                              "computed": false
                            },
                            "right": {
                              "type": "CallExpression",
                              "start": 994,
                              "end": 2049,
                              "loc": {
                                "start": {
                                  "line": 22,
                                  "column": 26
                                },
                                "end": {
                                  "line": 56,
                                  "column": 6
                                }
                              },
                              "callee": {
                                "type": "MemberExpression",
                                "start": 994,
                                "end": 1020,
                                "loc": {
                                  "start": {
                                    "line": 22,
                                    "column": 26
                                  },
                                  "end": {
                                    "line": 22,
                                    "column": 52
                                  }
                                },
                                "object": {
                                  "type": "MemberExpression",
                                  "start": 994,
                                  "end": 1013,
                                  "loc": {
                                    "start": {
                                      "line": 22,
                                      "column": 26
                                    },
                                    "end": {
                                      "line": 22,
                                      "column": 45
                                    }
                                  },
                                  "object": {
                                    "type": "Identifier",
                                    "start": 994,
                                    "end": 1003,
                                    "loc": {
                                      "start": {
                                        "line": 22,
                                        "column": 26
                                      },
                                      "end": {
                                        "line": 22,
                                        "column": 35
                                      }
                                    },
                                    "name": "naiveTree"
                                  },
                                  "property": {
                                    "type": "Identifier",
                                    "start": 1004,
                                    "end": 1013,
                                    "loc": {
                                      "start": {
                                        "line": 22,
                                        "column": 36
                                      },
                                      "end": {
                                        "line": 22,
                                        "column": 45
                                      }
                                    },
                                    "name": "resources"
                                  },
                                  "computed": false
                                },
                                "property": {
                                  "type": "Identifier",
                                  "start": 1014,
                                  "end": 1020,
                                  "loc": {
                                    "start": {
                                      "line": 22,
                                      "column": 46
                                    },
                                    "end": {
                                      "line": 22,
                                      "column": 52
                                    }
                                  },
                                  "name": "filter"
                                },
                                "computed": false
                              },
                              "arguments": [
                                {
                                  "type": "FunctionExpression",
                                  "start": 1021,
                                  "end": 2048,
                                  "loc": {
                                    "start": {
                                      "line": 22,
                                      "column": 53
                                    },
                                    "end": {
                                      "line": 56,
                                      "column": 5
                                    }
                                  },
                                  "id": null,
                                  "generator": false,
                                  "expression": false,
                                  "async": false,
                                  "params": [
                                    {
                                      "type": "Identifier",
                                      "start": 1030,
                                      "end": 1033,
                                      "loc": {
                                        "start": {
                                          "line": 22,
                                          "column": 62
                                        },
                                        "end": {
                                          "line": 22,
                                          "column": 65
                                        }
                                      },
                                      "name": "res"
                                    }
                                  ],
                                  "body": {
                                    "type": "BlockStatement",
                                    "start": 1035,
                                    "end": 2048,
                                    "loc": {
                                      "start": {
                                        "line": 22,
                                        "column": 67
                                      },
                                      "end": {
                                        "line": 56,
                                        "column": 5
                                      }
                                    },
                                    "body": [
                                      {
                                        "type": "VariableDeclaration",
                                        "start": 1067,
                                        "end": 1081,
                                        "loc": {
                                          "start": {
                                            "line": 24,
                                            "column": 6
                                          },
                                          "end": {
                                            "line": 24,
                                            "column": 20
                                          }
                                        },
                                        "declarations": [
                                          {
                                            "type": "VariableDeclarator",
                                            "start": 1071,
                                            "end": 1080,
                                            "loc": {
                                              "start": {
                                                "line": 24,
                                                "column": 10
                                              },
                                              "end": {
                                                "line": 24,
                                                "column": 19
                                              }
                                            },
                                            "id": {
                                              "type": "Identifier",
                                              "start": 1071,
                                              "end": 1080,
                                              "loc": {
                                                "start": {
                                                  "line": 24,
                                                  "column": 10
                                                },
                                                "end": {
                                                  "line": 24,
                                                  "column": 19
                                                }
                                              },
                                              "name": "validated",
                                              "leadingComments": null
                                            },
                                            "init": null,
                                            "leadingComments": null
                                          }
                                        ],
                                        "kind": "let",
                                        "leadingComments": [
                                          {
                                            "type": "CommentLine",
                                            "value": " catch metadata",
                                            "start": 1043,
                                            "end": 1060,
                                            "loc": {
                                              "start": {
                                                "line": 23,
                                                "column": 6
                                              },
                                              "end": {
                                                "line": 23,
                                                "column": 23
                                              }
                                            },
                                            "range": [
                                              1043,
                                              1060
                                            ]
                                          }
                                        ],
                                        "trailingComments": [
                                          {
                                            "type": "CommentLine",
                                            "value": " extract contextualizer descriptions",
                                            "start": 1088,
                                            "end": 1126,
                                            "loc": {
                                              "start": {
                                                "line": 25,
                                                "column": 6
                                              },
                                              "end": {
                                                "line": 25,
                                                "column": 44
                                              }
                                            },
                                            "range": [
                                              1088,
                                              1126
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "IfStatement",
                                        "start": 1133,
                                        "end": 1237,
                                        "loc": {
                                          "start": {
                                            "line": 26,
                                            "column": 6
                                          },
                                          "end": {
                                            "line": 29,
                                            "column": 7
                                          }
                                        },
                                        "test": {
                                          "type": "BinaryExpression",
                                          "start": 1137,
                                          "end": 1169,
                                          "loc": {
                                            "start": {
                                              "line": 26,
                                              "column": 10
                                            },
                                            "end": {
                                              "line": 26,
                                              "column": 42
                                            }
                                          },
                                          "left": {
                                            "type": "MemberExpression",
                                            "start": 1137,
                                            "end": 1148,
                                            "loc": {
                                              "start": {
                                                "line": 26,
                                                "column": 10
                                              },
                                              "end": {
                                                "line": 26,
                                                "column": 21
                                              }
                                            },
                                            "object": {
                                              "type": "Identifier",
                                              "start": 1137,
                                              "end": 1140,
                                              "loc": {
                                                "start": {
                                                  "line": 26,
                                                  "column": 10
                                                },
                                                "end": {
                                                  "line": 26,
                                                  "column": 13
                                                }
                                              },
                                              "name": "res",
                                              "leadingComments": null
                                            },
                                            "property": {
                                              "type": "Identifier",
                                              "start": 1141,
                                              "end": 1148,
                                              "loc": {
                                                "start": {
                                                  "line": 26,
                                                  "column": 14
                                                },
                                                "end": {
                                                  "line": 26,
                                                  "column": 21
                                                }
                                              },
                                              "name": "bibType"
                                            },
                                            "computed": false,
                                            "leadingComments": null
                                          },
                                          "operator": "===",
                                          "right": {
                                            "type": "Literal",
                                            "start": 1153,
                                            "end": 1169,
                                            "loc": {
                                              "start": {
                                                "line": 26,
                                                "column": 26
                                              },
                                              "end": {
                                                "line": 26,
                                                "column": 42
                                              }
                                            },
                                            "value": "contextualizer",
                                            "rawValue": "contextualizer",
                                            "raw": "'contextualizer'"
                                          },
                                          "leadingComments": null
                                        },
                                        "consequent": {
                                          "type": "BlockStatement",
                                          "start": 1171,
                                          "end": 1237,
                                          "loc": {
                                            "start": {
                                              "line": 26,
                                              "column": 44
                                            },
                                            "end": {
                                              "line": 29,
                                              "column": 7
                                            }
                                          },
                                          "body": [
                                            {
                                              "type": "ExpressionStatement",
                                              "start": 1181,
                                              "end": 1207,
                                              "loc": {
                                                "start": {
                                                  "line": 27,
                                                  "column": 8
                                                },
                                                "end": {
                                                  "line": 27,
                                                  "column": 34
                                                }
                                              },
                                              "expression": {
                                                "type": "CallExpression",
                                                "start": 1181,
                                                "end": 1206,
                                                "loc": {
                                                  "start": {
                                                    "line": 27,
                                                    "column": 8
                                                  },
                                                  "end": {
                                                    "line": 27,
                                                    "column": 33
                                                  }
                                                },
                                                "callee": {
                                                  "type": "MemberExpression",
                                                  "start": 1181,
                                                  "end": 1201,
                                                  "loc": {
                                                    "start": {
                                                      "line": 27,
                                                      "column": 8
                                                    },
                                                    "end": {
                                                      "line": 27,
                                                      "column": 28
                                                    }
                                                  },
                                                  "object": {
                                                    "type": "Identifier",
                                                    "start": 1181,
                                                    "end": 1196,
                                                    "loc": {
                                                      "start": {
                                                        "line": 27,
                                                        "column": 8
                                                      },
                                                      "end": {
                                                        "line": 27,
                                                        "column": 23
                                                      }
                                                    },
                                                    "name": "contextualizers"
                                                  },
                                                  "property": {
                                                    "type": "Identifier",
                                                    "start": 1197,
                                                    "end": 1201,
                                                    "loc": {
                                                      "start": {
                                                        "line": 27,
                                                        "column": 24
                                                      },
                                                      "end": {
                                                        "line": 27,
                                                        "column": 28
                                                      }
                                                    },
                                                    "name": "push"
                                                  },
                                                  "computed": false
                                                },
                                                "arguments": [
                                                  {
                                                    "type": "Identifier",
                                                    "start": 1202,
                                                    "end": 1205,
                                                    "loc": {
                                                      "start": {
                                                        "line": 27,
                                                        "column": 29
                                                      },
                                                      "end": {
                                                        "line": 27,
                                                        "column": 32
                                                      }
                                                    },
                                                    "name": "res"
                                                  }
                                                ]
                                              }
                                            },
                                            {
                                              "type": "ReturnStatement",
                                              "start": 1216,
                                              "end": 1229,
                                              "loc": {
                                                "start": {
                                                  "line": 28,
                                                  "column": 8
                                                },
                                                "end": {
                                                  "line": 28,
                                                  "column": 21
                                                }
                                              },
                                              "argument": {
                                                "type": "Literal",
                                                "start": 1223,
                                                "end": 1228,
                                                "loc": {
                                                  "start": {
                                                    "line": 28,
                                                    "column": 15
                                                  },
                                                  "end": {
                                                    "line": 28,
                                                    "column": 20
                                                  }
                                                },
                                                "value": false,
                                                "rawValue": false,
                                                "raw": "false"
                                              }
                                            }
                                          ]
                                        },
                                        "alternate": null,
                                        "leadingComments": [
                                          {
                                            "type": "CommentLine",
                                            "value": " extract contextualizer descriptions",
                                            "start": 1088,
                                            "end": 1126,
                                            "loc": {
                                              "start": {
                                                "line": 25,
                                                "column": 6
                                              },
                                              "end": {
                                                "line": 25,
                                                "column": 44
                                              }
                                            },
                                            "range": [
                                              1088,
                                              1126
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "ForInStatement",
                                        "start": 1244,
                                        "end": 1421,
                                        "loc": {
                                          "start": {
                                            "line": 30,
                                            "column": 6
                                          },
                                          "end": {
                                            "line": 35,
                                            "column": 7
                                          }
                                        },
                                        "left": {
                                          "type": "VariableDeclaration",
                                          "start": 1249,
                                          "end": 1259,
                                          "loc": {
                                            "start": {
                                              "line": 30,
                                              "column": 11
                                            },
                                            "end": {
                                              "line": 30,
                                              "column": 21
                                            }
                                          },
                                          "declarations": [
                                            {
                                              "type": "VariableDeclarator",
                                              "start": 1255,
                                              "end": 1259,
                                              "loc": {
                                                "start": {
                                                  "line": 30,
                                                  "column": 17
                                                },
                                                "end": {
                                                  "line": 30,
                                                  "column": 21
                                                }
                                              },
                                              "id": {
                                                "type": "Identifier",
                                                "start": 1255,
                                                "end": 1259,
                                                "loc": {
                                                  "start": {
                                                    "line": 30,
                                                    "column": 17
                                                  },
                                                  "end": {
                                                    "line": 30,
                                                    "column": 21
                                                  }
                                                },
                                                "name": "type"
                                              },
                                              "init": null
                                            }
                                          ],
                                          "kind": "const"
                                        },
                                        "right": {
                                          "type": "MemberExpression",
                                          "start": 1263,
                                          "end": 1301,
                                          "loc": {
                                            "start": {
                                              "line": 30,
                                              "column": 25
                                            },
                                            "end": {
                                              "line": 30,
                                              "column": 63
                                            }
                                          },
                                          "object": {
                                            "type": "MemberExpression",
                                            "start": 1263,
                                            "end": 1287,
                                            "loc": {
                                              "start": {
                                                "line": 30,
                                                "column": 25
                                              },
                                              "end": {
                                                "line": 30,
                                                "column": 49
                                              }
                                            },
                                            "object": {
                                              "type": "Identifier",
                                              "start": 1263,
                                              "end": 1269,
                                              "loc": {
                                                "start": {
                                                  "line": 30,
                                                  "column": 25
                                                },
                                                "end": {
                                                  "line": 30,
                                                  "column": 31
                                                }
                                              },
                                              "name": "models"
                                            },
                                            "property": {
                                              "type": "Identifier",
                                              "start": 1270,
                                              "end": 1287,
                                              "loc": {
                                                "start": {
                                                  "line": 30,
                                                  "column": 32
                                                },
                                                "end": {
                                                  "line": 30,
                                                  "column": 49
                                                }
                                              },
                                              "name": "sectionTypeModels"
                                            },
                                            "computed": false
                                          },
                                          "property": {
                                            "type": "Identifier",
                                            "start": 1288,
                                            "end": 1301,
                                            "loc": {
                                              "start": {
                                                "line": 30,
                                                "column": 50
                                              },
                                              "end": {
                                                "line": 30,
                                                "column": 63
                                              }
                                            },
                                            "name": "acceptedTypes"
                                          },
                                          "computed": false
                                        },
                                        "body": {
                                          "type": "BlockStatement",
                                          "start": 1303,
                                          "end": 1421,
                                          "loc": {
                                            "start": {
                                              "line": 30,
                                              "column": 65
                                            },
                                            "end": {
                                              "line": 35,
                                              "column": 7
                                            }
                                          },
                                          "body": [
                                            {
                                              "type": "IfStatement",
                                              "start": 1313,
                                              "end": 1413,
                                              "loc": {
                                                "start": {
                                                  "line": 31,
                                                  "column": 8
                                                },
                                                "end": {
                                                  "line": 34,
                                                  "column": 9
                                                }
                                              },
                                              "test": {
                                                "type": "BinaryExpression",
                                                "start": 1317,
                                                "end": 1350,
                                                "loc": {
                                                  "start": {
                                                    "line": 31,
                                                    "column": 12
                                                  },
                                                  "end": {
                                                    "line": 31,
                                                    "column": 45
                                                  }
                                                },
                                                "left": {
                                                  "type": "MemberExpression",
                                                  "start": 1317,
                                                  "end": 1328,
                                                  "loc": {
                                                    "start": {
                                                      "line": 31,
                                                      "column": 12
                                                    },
                                                    "end": {
                                                      "line": 31,
                                                      "column": 23
                                                    }
                                                  },
                                                  "object": {
                                                    "type": "Identifier",
                                                    "start": 1317,
                                                    "end": 1320,
                                                    "loc": {
                                                      "start": {
                                                        "line": 31,
                                                        "column": 12
                                                      },
                                                      "end": {
                                                        "line": 31,
                                                        "column": 15
                                                      }
                                                    },
                                                    "name": "res"
                                                  },
                                                  "property": {
                                                    "type": "Identifier",
                                                    "start": 1321,
                                                    "end": 1328,
                                                    "loc": {
                                                      "start": {
                                                        "line": 31,
                                                        "column": 16
                                                      },
                                                      "end": {
                                                        "line": 31,
                                                        "column": 23
                                                      }
                                                    },
                                                    "name": "bibType"
                                                  },
                                                  "computed": false
                                                },
                                                "operator": "===",
                                                "right": {
                                                  "type": "BinaryExpression",
                                                  "start": 1333,
                                                  "end": 1350,
                                                  "loc": {
                                                    "start": {
                                                      "line": 31,
                                                      "column": 28
                                                    },
                                                    "end": {
                                                      "line": 31,
                                                      "column": 45
                                                    }
                                                  },
                                                  "left": {
                                                    "type": "Literal",
                                                    "start": 1333,
                                                    "end": 1343,
                                                    "loc": {
                                                      "start": {
                                                        "line": 31,
                                                        "column": 28
                                                      },
                                                      "end": {
                                                        "line": 31,
                                                        "column": 38
                                                      }
                                                    },
                                                    "value": "peritext",
                                                    "rawValue": "peritext",
                                                    "raw": "'peritext'"
                                                  },
                                                  "operator": "+",
                                                  "right": {
                                                    "type": "Identifier",
                                                    "start": 1346,
                                                    "end": 1350,
                                                    "loc": {
                                                      "start": {
                                                        "line": 31,
                                                        "column": 41
                                                      },
                                                      "end": {
                                                        "line": 31,
                                                        "column": 45
                                                      }
                                                    },
                                                    "name": "type"
                                                  }
                                                }
                                              },
                                              "consequent": {
                                                "type": "BlockStatement",
                                                "start": 1352,
                                                "end": 1413,
                                                "loc": {
                                                  "start": {
                                                    "line": 31,
                                                    "column": 47
                                                  },
                                                  "end": {
                                                    "line": 34,
                                                    "column": 9
                                                  }
                                                },
                                                "body": [
                                                  {
                                                    "type": "ExpressionStatement",
                                                    "start": 1364,
                                                    "end": 1379,
                                                    "loc": {
                                                      "start": {
                                                        "line": 32,
                                                        "column": 10
                                                      },
                                                      "end": {
                                                        "line": 32,
                                                        "column": 25
                                                      }
                                                    },
                                                    "expression": {
                                                      "type": "AssignmentExpression",
                                                      "start": 1364,
                                                      "end": 1378,
                                                      "loc": {
                                                        "start": {
                                                          "line": 32,
                                                          "column": 10
                                                        },
                                                        "end": {
                                                          "line": 32,
                                                          "column": 24
                                                        }
                                                      },
                                                      "operator": "=",
                                                      "left": {
                                                        "type": "Identifier",
                                                        "start": 1364,
                                                        "end": 1372,
                                                        "loc": {
                                                          "start": {
                                                            "line": 32,
                                                            "column": 10
                                                          },
                                                          "end": {
                                                            "line": 32,
                                                            "column": 18
                                                          }
                                                        },
                                                        "name": "metadata"
                                                      },
                                                      "right": {
                                                        "type": "Identifier",
                                                        "start": 1375,
                                                        "end": 1378,
                                                        "loc": {
                                                          "start": {
                                                            "line": 32,
                                                            "column": 21
                                                          },
                                                          "end": {
                                                            "line": 32,
                                                            "column": 24
                                                          }
                                                        },
                                                        "name": "res"
                                                      }
                                                    }
                                                  },
                                                  {
                                                    "type": "ReturnStatement",
                                                    "start": 1390,
                                                    "end": 1403,
                                                    "loc": {
                                                      "start": {
                                                        "line": 33,
                                                        "column": 10
                                                      },
                                                      "end": {
                                                        "line": 33,
                                                        "column": 23
                                                      }
                                                    },
                                                    "argument": {
                                                      "type": "Literal",
                                                      "start": 1397,
                                                      "end": 1402,
                                                      "loc": {
                                                        "start": {
                                                          "line": 33,
                                                          "column": 17
                                                        },
                                                        "end": {
                                                          "line": 33,
                                                          "column": 22
                                                        }
                                                      },
                                                      "value": false,
                                                      "rawValue": false,
                                                      "raw": "false"
                                                    }
                                                  }
                                                ]
                                              },
                                              "alternate": null
                                            }
                                          ]
                                        }
                                      },
                                      {
                                        "type": "IfStatement",
                                        "start": 1429,
                                        "end": 1663,
                                        "loc": {
                                          "start": {
                                            "line": 37,
                                            "column": 6
                                          },
                                          "end": {
                                            "line": 44,
                                            "column": 7
                                          }
                                        },
                                        "test": {
                                          "type": "UnaryExpression",
                                          "start": 1433,
                                          "end": 1443,
                                          "loc": {
                                            "start": {
                                              "line": 37,
                                              "column": 10
                                            },
                                            "end": {
                                              "line": 37,
                                              "column": 20
                                            }
                                          },
                                          "operator": "!",
                                          "prefix": true,
                                          "argument": {
                                            "type": "Identifier",
                                            "start": 1434,
                                            "end": 1443,
                                            "loc": {
                                              "start": {
                                                "line": 37,
                                                "column": 11
                                              },
                                              "end": {
                                                "line": 37,
                                                "column": 20
                                              }
                                            },
                                            "name": "validated"
                                          }
                                        },
                                        "consequent": {
                                          "type": "BlockStatement",
                                          "start": 1445,
                                          "end": 1663,
                                          "loc": {
                                            "start": {
                                              "line": 37,
                                              "column": 22
                                            },
                                            "end": {
                                              "line": 44,
                                              "column": 7
                                            }
                                          },
                                          "body": [
                                            {
                                              "type": "ForInStatement",
                                              "start": 1506,
                                              "end": 1655,
                                              "loc": {
                                                "start": {
                                                  "line": 39,
                                                  "column": 8
                                                },
                                                "end": {
                                                  "line": 43,
                                                  "column": 9
                                                }
                                              },
                                              "left": {
                                                "type": "VariableDeclaration",
                                                "start": 1511,
                                                "end": 1526,
                                                "loc": {
                                                  "start": {
                                                    "line": 39,
                                                    "column": 13
                                                  },
                                                  "end": {
                                                    "line": 39,
                                                    "column": 28
                                                  }
                                                },
                                                "declarations": [
                                                  {
                                                    "type": "VariableDeclarator",
                                                    "start": 1517,
                                                    "end": 1526,
                                                    "loc": {
                                                      "start": {
                                                        "line": 39,
                                                        "column": 19
                                                      },
                                                      "end": {
                                                        "line": 39,
                                                        "column": 28
                                                      }
                                                    },
                                                    "id": {
                                                      "type": "Identifier",
                                                      "start": 1517,
                                                      "end": 1526,
                                                      "loc": {
                                                        "start": {
                                                          "line": 39,
                                                          "column": 19
                                                        },
                                                        "end": {
                                                          "line": 39,
                                                          "column": 28
                                                        }
                                                      },
                                                      "name": "otherType",
                                                      "leadingComments": null
                                                    },
                                                    "init": null,
                                                    "leadingComments": null
                                                  }
                                                ],
                                                "kind": "const",
                                                "leadingComments": null
                                              },
                                              "right": {
                                                "type": "MemberExpression",
                                                "start": 1530,
                                                "end": 1562,
                                                "loc": {
                                                  "start": {
                                                    "line": 39,
                                                    "column": 32
                                                  },
                                                  "end": {
                                                    "line": 39,
                                                    "column": 64
                                                  }
                                                },
                                                "object": {
                                                  "type": "MemberExpression",
                                                  "start": 1530,
                                                  "end": 1551,
                                                  "loc": {
                                                    "start": {
                                                      "line": 39,
                                                      "column": 32
                                                    },
                                                    "end": {
                                                      "line": 39,
                                                      "column": 53
                                                    }
                                                  },
                                                  "object": {
                                                    "type": "Identifier",
                                                    "start": 1530,
                                                    "end": 1536,
                                                    "loc": {
                                                      "start": {
                                                        "line": 39,
                                                        "column": 32
                                                      },
                                                      "end": {
                                                        "line": 39,
                                                        "column": 38
                                                      }
                                                    },
                                                    "name": "models"
                                                  },
                                                  "property": {
                                                    "type": "Identifier",
                                                    "start": 1537,
                                                    "end": 1551,
                                                    "loc": {
                                                      "start": {
                                                        "line": 39,
                                                        "column": 39
                                                      },
                                                      "end": {
                                                        "line": 39,
                                                        "column": 53
                                                      }
                                                    },
                                                    "name": "resourceModels"
                                                  },
                                                  "computed": false
                                                },
                                                "property": {
                                                  "type": "Identifier",
                                                  "start": 1552,
                                                  "end": 1562,
                                                  "loc": {
                                                    "start": {
                                                      "line": 39,
                                                      "column": 54
                                                    },
                                                    "end": {
                                                      "line": 39,
                                                      "column": 64
                                                    }
                                                  },
                                                  "name": "individual"
                                                },
                                                "computed": false
                                              },
                                              "body": {
                                                "type": "BlockStatement",
                                                "start": 1564,
                                                "end": 1655,
                                                "loc": {
                                                  "start": {
                                                    "line": 39,
                                                    "column": 66
                                                  },
                                                  "end": {
                                                    "line": 43,
                                                    "column": 9
                                                  }
                                                },
                                                "body": [
                                                  {
                                                    "type": "IfStatement",
                                                    "start": 1576,
                                                    "end": 1645,
                                                    "loc": {
                                                      "start": {
                                                        "line": 40,
                                                        "column": 10
                                                      },
                                                      "end": {
                                                        "line": 42,
                                                        "column": 11
                                                      }
                                                    },
                                                    "test": {
                                                      "type": "BinaryExpression",
                                                      "start": 1580,
                                                      "end": 1605,
                                                      "loc": {
                                                        "start": {
                                                          "line": 40,
                                                          "column": 14
                                                        },
                                                        "end": {
                                                          "line": 40,
                                                          "column": 39
                                                        }
                                                      },
                                                      "left": {
                                                        "type": "MemberExpression",
                                                        "start": 1580,
                                                        "end": 1591,
                                                        "loc": {
                                                          "start": {
                                                            "line": 40,
                                                            "column": 14
                                                          },
                                                          "end": {
                                                            "line": 40,
                                                            "column": 25
                                                          }
                                                        },
                                                        "object": {
                                                          "type": "Identifier",
                                                          "start": 1580,
                                                          "end": 1583,
                                                          "loc": {
                                                            "start": {
                                                              "line": 40,
                                                              "column": 14
                                                            },
                                                            "end": {
                                                              "line": 40,
                                                              "column": 17
                                                            }
                                                          },
                                                          "name": "res"
                                                        },
                                                        "property": {
                                                          "type": "Identifier",
                                                          "start": 1584,
                                                          "end": 1591,
                                                          "loc": {
                                                            "start": {
                                                              "line": 40,
                                                              "column": 18
                                                            },
                                                            "end": {
                                                              "line": 40,
                                                              "column": 25
                                                            }
                                                          },
                                                          "name": "bibType"
                                                        },
                                                        "computed": false
                                                      },
                                                      "operator": "===",
                                                      "right": {
                                                        "type": "Identifier",
                                                        "start": 1596,
                                                        "end": 1605,
                                                        "loc": {
                                                          "start": {
                                                            "line": 40,
                                                            "column": 30
                                                          },
                                                          "end": {
                                                            "line": 40,
                                                            "column": 39
                                                          }
                                                        },
                                                        "name": "otherType"
                                                      }
                                                    },
                                                    "consequent": {
                                                      "type": "BlockStatement",
                                                      "start": 1607,
                                                      "end": 1645,
                                                      "loc": {
                                                        "start": {
                                                          "line": 40,
                                                          "column": 41
                                                        },
                                                        "end": {
                                                          "line": 42,
                                                          "column": 11
                                                        }
                                                      },
                                                      "body": [
                                                        {
                                                          "type": "ReturnStatement",
                                                          "start": 1621,
                                                          "end": 1633,
                                                          "loc": {
                                                            "start": {
                                                              "line": 41,
                                                              "column": 12
                                                            },
                                                            "end": {
                                                              "line": 41,
                                                              "column": 24
                                                            }
                                                          },
                                                          "argument": {
                                                            "type": "Literal",
                                                            "start": 1628,
                                                            "end": 1632,
                                                            "loc": {
                                                              "start": {
                                                                "line": 41,
                                                                "column": 19
                                                              },
                                                              "end": {
                                                                "line": 41,
                                                                "column": 23
                                                              }
                                                            },
                                                            "value": true,
                                                            "rawValue": true,
                                                            "raw": "true"
                                                          }
                                                        }
                                                      ]
                                                    },
                                                    "alternate": null
                                                  }
                                                ]
                                              },
                                              "leadingComments": [
                                                {
                                                  "type": "CommentLine",
                                                  "value": " verify that the resource type are known",
                                                  "start": 1455,
                                                  "end": 1497,
                                                  "loc": {
                                                    "start": {
                                                      "line": 38,
                                                      "column": 8
                                                    },
                                                    "end": {
                                                      "line": 38,
                                                      "column": 50
                                                    }
                                                  },
                                                  "range": [
                                                    1455,
                                                    1497
                                                  ]
                                                }
                                              ]
                                            }
                                          ],
                                          "trailingComments": null
                                        },
                                        "alternate": null,
                                        "trailingComments": [
                                          {
                                            "type": "CommentLine",
                                            "value": " if not validated, record error and don't take resource",
                                            "start": 1670,
                                            "end": 1727,
                                            "loc": {
                                              "start": {
                                                "line": 45,
                                                "column": 6
                                              },
                                              "end": {
                                                "line": 45,
                                                "column": 63
                                              }
                                            },
                                            "range": [
                                              1670,
                                              1727
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "IfStatement",
                                        "start": 1734,
                                        "end": 2023,
                                        "loc": {
                                          "start": {
                                            "line": 46,
                                            "column": 6
                                          },
                                          "end": {
                                            "line": 54,
                                            "column": 7
                                          }
                                        },
                                        "test": {
                                          "type": "UnaryExpression",
                                          "start": 1738,
                                          "end": 1748,
                                          "loc": {
                                            "start": {
                                              "line": 46,
                                              "column": 10
                                            },
                                            "end": {
                                              "line": 46,
                                              "column": 20
                                            }
                                          },
                                          "operator": "!",
                                          "prefix": true,
                                          "argument": {
                                            "type": "Identifier",
                                            "start": 1739,
                                            "end": 1748,
                                            "loc": {
                                              "start": {
                                                "line": 46,
                                                "column": 11
                                              },
                                              "end": {
                                                "line": 46,
                                                "column": 20
                                              }
                                            },
                                            "name": "validated",
                                            "leadingComments": null
                                          },
                                          "leadingComments": null
                                        },
                                        "consequent": {
                                          "type": "BlockStatement",
                                          "start": 1750,
                                          "end": 2023,
                                          "loc": {
                                            "start": {
                                              "line": 46,
                                              "column": 22
                                            },
                                            "end": {
                                              "line": 54,
                                              "column": 7
                                            }
                                          },
                                          "body": [
                                            {
                                              "type": "ExpressionStatement",
                                              "start": 1760,
                                              "end": 1993,
                                              "loc": {
                                                "start": {
                                                  "line": 47,
                                                  "column": 8
                                                },
                                                "end": {
                                                  "line": 52,
                                                  "column": 11
                                                }
                                              },
                                              "expression": {
                                                "type": "CallExpression",
                                                "start": 1760,
                                                "end": 1992,
                                                "loc": {
                                                  "start": {
                                                    "line": 47,
                                                    "column": 8
                                                  },
                                                  "end": {
                                                    "line": 52,
                                                    "column": 10
                                                  }
                                                },
                                                "callee": {
                                                  "type": "MemberExpression",
                                                  "start": 1760,
                                                  "end": 1771,
                                                  "loc": {
                                                    "start": {
                                                      "line": 47,
                                                      "column": 8
                                                    },
                                                    "end": {
                                                      "line": 47,
                                                      "column": 19
                                                    }
                                                  },
                                                  "object": {
                                                    "type": "Identifier",
                                                    "start": 1760,
                                                    "end": 1766,
                                                    "loc": {
                                                      "start": {
                                                        "line": 47,
                                                        "column": 8
                                                      },
                                                      "end": {
                                                        "line": 47,
                                                        "column": 14
                                                      }
                                                    },
                                                    "name": "errors"
                                                  },
                                                  "property": {
                                                    "type": "Identifier",
                                                    "start": 1767,
                                                    "end": 1771,
                                                    "loc": {
                                                      "start": {
                                                        "line": 47,
                                                        "column": 15
                                                      },
                                                      "end": {
                                                        "line": 47,
                                                        "column": 19
                                                      }
                                                    },
                                                    "name": "push"
                                                  },
                                                  "computed": false
                                                },
                                                "arguments": [
                                                  {
                                                    "type": "ObjectExpression",
                                                    "start": 1772,
                                                    "end": 1991,
                                                    "loc": {
                                                      "start": {
                                                        "line": 47,
                                                        "column": 20
                                                      },
                                                      "end": {
                                                        "line": 52,
                                                        "column": 9
                                                      }
                                                    },
                                                    "properties": [
                                                      {
                                                        "type": "Property",
                                                        "start": 1784,
                                                        "end": 1797,
                                                        "loc": {
                                                          "start": {
                                                            "line": 48,
                                                            "column": 10
                                                          },
                                                          "end": {
                                                            "line": 48,
                                                            "column": 23
                                                          }
                                                        },
                                                        "method": false,
                                                        "shorthand": false,
                                                        "computed": false,
                                                        "key": {
                                                          "type": "Identifier",
                                                          "start": 1784,
                                                          "end": 1788,
                                                          "loc": {
                                                            "start": {
                                                              "line": 48,
                                                              "column": 10
                                                            },
                                                            "end": {
                                                              "line": 48,
                                                              "column": 14
                                                            }
                                                          },
                                                          "name": "type"
                                                        },
                                                        "value": {
                                                          "type": "Literal",
                                                          "start": 1790,
                                                          "end": 1797,
                                                          "loc": {
                                                            "start": {
                                                              "line": 48,
                                                              "column": 16
                                                            },
                                                            "end": {
                                                              "line": 48,
                                                              "column": 23
                                                            }
                                                          },
                                                          "value": "error",
                                                          "rawValue": "error",
                                                          "raw": "'error'"
                                                        },
                                                        "kind": "init"
                                                      },
                                                      {
                                                        "type": "Property",
                                                        "start": 1809,
                                                        "end": 1839,
                                                        "loc": {
                                                          "start": {
                                                            "line": 49,
                                                            "column": 10
                                                          },
                                                          "end": {
                                                            "line": 49,
                                                            "column": 40
                                                          }
                                                        },
                                                        "method": false,
                                                        "shorthand": false,
                                                        "computed": false,
                                                        "key": {
                                                          "type": "Identifier",
                                                          "start": 1809,
                                                          "end": 1820,
                                                          "loc": {
                                                            "start": {
                                                              "line": 49,
                                                              "column": 10
                                                            },
                                                            "end": {
                                                              "line": 49,
                                                              "column": 21
                                                            }
                                                          },
                                                          "name": "preciseType"
                                                        },
                                                        "value": {
                                                          "type": "Literal",
                                                          "start": 1822,
                                                          "end": 1839,
                                                          "loc": {
                                                            "start": {
                                                              "line": 49,
                                                              "column": 23
                                                            },
                                                            "end": {
                                                              "line": 49,
                                                              "column": 40
                                                            }
                                                          },
                                                          "value": "invalidResource",
                                                          "rawValue": "invalidResource",
                                                          "raw": "'invalidResource'"
                                                        },
                                                        "kind": "init"
                                                      },
                                                      {
                                                        "type": "Property",
                                                        "start": 1851,
                                                        "end": 1879,
                                                        "loc": {
                                                          "start": {
                                                            "line": 50,
                                                            "column": 10
                                                          },
                                                          "end": {
                                                            "line": 50,
                                                            "column": 38
                                                          }
                                                        },
                                                        "method": false,
                                                        "shorthand": false,
                                                        "computed": false,
                                                        "key": {
                                                          "type": "Identifier",
                                                          "start": 1851,
                                                          "end": 1866,
                                                          "loc": {
                                                            "start": {
                                                              "line": 50,
                                                              "column": 10
                                                            },
                                                            "end": {
                                                              "line": 50,
                                                              "column": 25
                                                            }
                                                          },
                                                          "name": "resourceCiteKey"
                                                        },
                                                        "value": {
                                                          "type": "MemberExpression",
                                                          "start": 1868,
                                                          "end": 1879,
                                                          "loc": {
                                                            "start": {
                                                              "line": 50,
                                                              "column": 27
                                                            },
                                                            "end": {
                                                              "line": 50,
                                                              "column": 38
                                                            }
                                                          },
                                                          "object": {
                                                            "type": "Identifier",
                                                            "start": 1868,
                                                            "end": 1871,
                                                            "loc": {
                                                              "start": {
                                                                "line": 50,
                                                                "column": 27
                                                              },
                                                              "end": {
                                                                "line": 50,
                                                                "column": 30
                                                              }
                                                            },
                                                            "name": "res"
                                                          },
                                                          "property": {
                                                            "type": "Identifier",
                                                            "start": 1872,
                                                            "end": 1879,
                                                            "loc": {
                                                              "start": {
                                                                "line": 50,
                                                                "column": 31
                                                              },
                                                              "end": {
                                                                "line": 50,
                                                                "column": 38
                                                              }
                                                            },
                                                            "name": "citeKey"
                                                          },
                                                          "computed": false
                                                        },
                                                        "kind": "init"
                                                      },
                                                      {
                                                        "type": "Property",
                                                        "start": 1891,
                                                        "end": 1981,
                                                        "loc": {
                                                          "start": {
                                                            "line": 51,
                                                            "column": 10
                                                          },
                                                          "end": {
                                                            "line": 51,
                                                            "column": 100
                                                          }
                                                        },
                                                        "method": false,
                                                        "shorthand": false,
                                                        "computed": false,
                                                        "key": {
                                                          "type": "Identifier",
                                                          "start": 1891,
                                                          "end": 1898,
                                                          "loc": {
                                                            "start": {
                                                              "line": 51,
                                                              "column": 10
                                                            },
                                                            "end": {
                                                              "line": 51,
                                                              "column": 17
                                                            }
                                                          },
                                                          "name": "message"
                                                        },
                                                        "value": {
                                                          "type": "BinaryExpression",
                                                          "start": 1900,
                                                          "end": 1981,
                                                          "loc": {
                                                            "start": {
                                                              "line": 51,
                                                              "column": 19
                                                            },
                                                            "end": {
                                                              "line": 51,
                                                              "column": 100
                                                            }
                                                          },
                                                          "left": {
                                                            "type": "BinaryExpression",
                                                            "start": 1900,
                                                            "end": 1967,
                                                            "loc": {
                                                              "start": {
                                                                "line": 51,
                                                                "column": 19
                                                              },
                                                              "end": {
                                                                "line": 51,
                                                                "column": 86
                                                              }
                                                            },
                                                            "left": {
                                                              "type": "BinaryExpression",
                                                              "start": 1900,
                                                              "end": 1945,
                                                              "loc": {
                                                                "start": {
                                                                  "line": 51,
                                                                  "column": 19
                                                                },
                                                                "end": {
                                                                  "line": 51,
                                                                  "column": 64
                                                                }
                                                              },
                                                              "left": {
                                                                "type": "Literal",
                                                                "start": 1900,
                                                                "end": 1931,
                                                                "loc": {
                                                                  "start": {
                                                                    "line": 51,
                                                                    "column": 19
                                                                  },
                                                                  "end": {
                                                                    "line": 51,
                                                                    "column": 50
                                                                  }
                                                                },
                                                                "value": "could not find resource type ",
                                                                "rawValue": "could not find resource type ",
                                                                "raw": "'could not find resource type '"
                                                              },
                                                              "operator": "+",
                                                              "right": {
                                                                "type": "MemberExpression",
                                                                "start": 1934,
                                                                "end": 1945,
                                                                "loc": {
                                                                  "start": {
                                                                    "line": 51,
                                                                    "column": 53
                                                                  },
                                                                  "end": {
                                                                    "line": 51,
                                                                    "column": 64
                                                                  }
                                                                },
                                                                "object": {
                                                                  "type": "Identifier",
                                                                  "start": 1934,
                                                                  "end": 1937,
                                                                  "loc": {
                                                                    "start": {
                                                                      "line": 51,
                                                                      "column": 53
                                                                    },
                                                                    "end": {
                                                                      "line": 51,
                                                                      "column": 56
                                                                    }
                                                                  },
                                                                  "name": "res"
                                                                },
                                                                "property": {
                                                                  "type": "Identifier",
                                                                  "start": 1938,
                                                                  "end": 1945,
                                                                  "loc": {
                                                                    "start": {
                                                                      "line": 51,
                                                                      "column": 57
                                                                    },
                                                                    "end": {
                                                                      "line": 51,
                                                                      "column": 64
                                                                    }
                                                                  },
                                                                  "name": "bibType"
                                                                },
                                                                "computed": false
                                                              }
                                                            },
                                                            "operator": "+",
                                                            "right": {
                                                              "type": "Literal",
                                                              "start": 1948,
                                                              "end": 1967,
                                                              "loc": {
                                                                "start": {
                                                                  "line": 51,
                                                                  "column": 67
                                                                },
                                                                "end": {
                                                                  "line": 51,
                                                                  "column": 86
                                                                }
                                                              },
                                                              "value": " for Resource ID ",
                                                              "rawValue": " for Resource ID ",
                                                              "raw": "' for Resource ID '"
                                                            }
                                                          },
                                                          "operator": "+",
                                                          "right": {
                                                            "type": "MemberExpression",
                                                            "start": 1970,
                                                            "end": 1981,
                                                            "loc": {
                                                              "start": {
                                                                "line": 51,
                                                                "column": 89
                                                              },
                                                              "end": {
                                                                "line": 51,
                                                                "column": 100
                                                              }
                                                            },
                                                            "object": {
                                                              "type": "Identifier",
                                                              "start": 1970,
                                                              "end": 1973,
                                                              "loc": {
                                                                "start": {
                                                                  "line": 51,
                                                                  "column": 89
                                                                },
                                                                "end": {
                                                                  "line": 51,
                                                                  "column": 92
                                                                }
                                                              },
                                                              "name": "res"
                                                            },
                                                            "property": {
                                                              "type": "Identifier",
                                                              "start": 1974,
                                                              "end": 1981,
                                                              "loc": {
                                                                "start": {
                                                                  "line": 51,
                                                                  "column": 93
                                                                },
                                                                "end": {
                                                                  "line": 51,
                                                                  "column": 100
                                                                }
                                                              },
                                                              "name": "citeKey"
                                                            },
                                                            "computed": false
                                                          }
                                                        },
                                                        "kind": "init"
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            },
                                            {
                                              "type": "ReturnStatement",
                                              "start": 2002,
                                              "end": 2015,
                                              "loc": {
                                                "start": {
                                                  "line": 53,
                                                  "column": 8
                                                },
                                                "end": {
                                                  "line": 53,
                                                  "column": 21
                                                }
                                              },
                                              "argument": {
                                                "type": "Literal",
                                                "start": 2009,
                                                "end": 2014,
                                                "loc": {
                                                  "start": {
                                                    "line": 53,
                                                    "column": 15
                                                  },
                                                  "end": {
                                                    "line": 53,
                                                    "column": 20
                                                  }
                                                },
                                                "value": false,
                                                "rawValue": false,
                                                "raw": "false"
                                              }
                                            }
                                          ]
                                        },
                                        "alternate": null,
                                        "leadingComments": [
                                          {
                                            "type": "CommentLine",
                                            "value": " if not validated, record error and don't take resource",
                                            "start": 1670,
                                            "end": 1727,
                                            "loc": {
                                              "start": {
                                                "line": 45,
                                                "column": 6
                                              },
                                              "end": {
                                                "line": 45,
                                                "column": 63
                                              }
                                            },
                                            "range": [
                                              1670,
                                              1727
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "ReturnStatement",
                                        "start": 2030,
                                        "end": 2042,
                                        "loc": {
                                          "start": {
                                            "line": 55,
                                            "column": 6
                                          },
                                          "end": {
                                            "line": 55,
                                            "column": 18
                                          }
                                        },
                                        "argument": {
                                          "type": "Literal",
                                          "start": 2037,
                                          "end": 2041,
                                          "loc": {
                                            "start": {
                                              "line": 55,
                                              "column": 13
                                            },
                                            "end": {
                                              "line": 55,
                                              "column": 17
                                            }
                                          },
                                          "value": true,
                                          "rawValue": true,
                                          "raw": "true"
                                        }
                                      }
                                    ]
                                  }
                                }
                              ]
                            }
                          }
                        }
                      ]
                    },
                    "alternate": null
                  },
                  {
                    "type": "IfStatement",
                    "start": 2057,
                    "end": 3233,
                    "loc": {
                      "start": {
                        "line": 58,
                        "column": 2
                      },
                      "end": {
                        "line": 84,
                        "column": 3
                      }
                    },
                    "test": {
                      "type": "LogicalExpression",
                      "start": 2061,
                      "end": 2119,
                      "loc": {
                        "start": {
                          "line": 58,
                          "column": 6
                        },
                        "end": {
                          "line": 58,
                          "column": 64
                        }
                      },
                      "left": {
                        "type": "BinaryExpression",
                        "start": 2061,
                        "end": 2083,
                        "loc": {
                          "start": {
                            "line": 58,
                            "column": 6
                          },
                          "end": {
                            "line": 58,
                            "column": 28
                          }
                        },
                        "left": {
                          "type": "Identifier",
                          "start": 2061,
                          "end": 2069,
                          "loc": {
                            "start": {
                              "line": 58,
                              "column": 6
                            },
                            "end": {
                              "line": 58,
                              "column": 14
                            }
                          },
                          "name": "metadata"
                        },
                        "operator": "===",
                        "right": {
                          "type": "Identifier",
                          "start": 2074,
                          "end": 2083,
                          "loc": {
                            "start": {
                              "line": 58,
                              "column": 19
                            },
                            "end": {
                              "line": 58,
                              "column": 28
                            }
                          },
                          "name": "undefined"
                        }
                      },
                      "operator": "&&",
                      "right": {
                        "type": "BinaryExpression",
                        "start": 2087,
                        "end": 2119,
                        "loc": {
                          "start": {
                            "line": 58,
                            "column": 32
                          },
                          "end": {
                            "line": 58,
                            "column": 64
                          }
                        },
                        "left": {
                          "type": "CallExpression",
                          "start": 2087,
                          "end": 2111,
                          "loc": {
                            "start": {
                              "line": 58,
                              "column": 32
                            },
                            "end": {
                              "line": 58,
                              "column": 56
                            }
                          },
                          "callee": {
                            "type": "MemberExpression",
                            "start": 2087,
                            "end": 2108,
                            "loc": {
                              "start": {
                                "line": 58,
                                "column": 32
                              },
                              "end": {
                                "line": 58,
                                "column": 53
                              }
                            },
                            "object": {
                              "type": "MemberExpression",
                              "start": 2087,
                              "end": 2101,
                              "loc": {
                                "start": {
                                  "line": 58,
                                  "column": 32
                                },
                                "end": {
                                  "line": 58,
                                  "column": 46
                                }
                              },
                              "object": {
                                "type": "Identifier",
                                "start": 2087,
                                "end": 2096,
                                "loc": {
                                  "start": {
                                    "line": 58,
                                    "column": 32
                                  },
                                  "end": {
                                    "line": 58,
                                    "column": 41
                                  }
                                },
                                "name": "naiveTree"
                              },
                              "property": {
                                "type": "Identifier",
                                "start": 2097,
                                "end": 2101,
                                "loc": {
                                  "start": {
                                    "line": 58,
                                    "column": 42
                                  },
                                  "end": {
                                    "line": 58,
                                    "column": 46
                                  }
                                },
                                "name": "name"
                              },
                              "computed": false
                            },
                            "property": {
                              "type": "Identifier",
                              "start": 2102,
                              "end": 2108,
                              "loc": {
                                "start": {
                                  "line": 58,
                                  "column": 47
                                },
                                "end": {
                                  "line": 58,
                                  "column": 53
                                }
                              },
                              "name": "charAt"
                            },
                            "computed": false
                          },
                          "arguments": [
                            {
                              "type": "Literal",
                              "start": 2109,
                              "end": 2110,
                              "loc": {
                                "start": {
                                  "line": 58,
                                  "column": 54
                                },
                                "end": {
                                  "line": 58,
                                  "column": 55
                                }
                              },
                              "value": 0,
                              "rawValue": 0,
                              "raw": "0"
                            }
                          ]
                        },
                        "operator": "!==",
                        "right": {
                          "type": "Literal",
                          "start": 2116,
                          "end": 2119,
                          "loc": {
                            "start": {
                              "line": 58,
                              "column": 61
                            },
                            "end": {
                              "line": 58,
                              "column": 64
                            }
                          },
                          "value": "_",
                          "rawValue": "_",
                          "raw": "'_'"
                        }
                      }
                    },
                    "consequent": {
                      "type": "BlockStatement",
                      "start": 2121,
                      "end": 2463,
                      "loc": {
                        "start": {
                          "line": 58,
                          "column": 66
                        },
                        "end": {
                          "line": 66,
                          "column": 3
                        }
                      },
                      "body": [
                        {
                          "type": "ExpressionStatement",
                          "start": 2127,
                          "end": 2320,
                          "loc": {
                            "start": {
                              "line": 59,
                              "column": 4
                            },
                            "end": {
                              "line": 63,
                              "column": 7
                            }
                          },
                          "expression": {
                            "type": "CallExpression",
                            "start": 2127,
                            "end": 2319,
                            "loc": {
                              "start": {
                                "line": 59,
                                "column": 4
                              },
                              "end": {
                                "line": 63,
                                "column": 6
                              }
                            },
                            "callee": {
                              "type": "MemberExpression",
                              "start": 2127,
                              "end": 2138,
                              "loc": {
                                "start": {
                                  "line": 59,
                                  "column": 4
                                },
                                "end": {
                                  "line": 59,
                                  "column": 15
                                }
                              },
                              "object": {
                                "type": "Identifier",
                                "start": 2127,
                                "end": 2133,
                                "loc": {
                                  "start": {
                                    "line": 59,
                                    "column": 4
                                  },
                                  "end": {
                                    "line": 59,
                                    "column": 10
                                  }
                                },
                                "name": "errors"
                              },
                              "property": {
                                "type": "Identifier",
                                "start": 2134,
                                "end": 2138,
                                "loc": {
                                  "start": {
                                    "line": 59,
                                    "column": 11
                                  },
                                  "end": {
                                    "line": 59,
                                    "column": 15
                                  }
                                },
                                "name": "push"
                              },
                              "computed": false
                            },
                            "arguments": [
                              {
                                "type": "ObjectExpression",
                                "start": 2139,
                                "end": 2318,
                                "loc": {
                                  "start": {
                                    "line": 59,
                                    "column": 16
                                  },
                                  "end": {
                                    "line": 63,
                                    "column": 5
                                  }
                                },
                                "properties": [
                                  {
                                    "type": "Property",
                                    "start": 2147,
                                    "end": 2162,
                                    "loc": {
                                      "start": {
                                        "line": 60,
                                        "column": 6
                                      },
                                      "end": {
                                        "line": 60,
                                        "column": 21
                                      }
                                    },
                                    "method": false,
                                    "shorthand": false,
                                    "computed": false,
                                    "key": {
                                      "type": "Identifier",
                                      "start": 2147,
                                      "end": 2151,
                                      "loc": {
                                        "start": {
                                          "line": 60,
                                          "column": 6
                                        },
                                        "end": {
                                          "line": 60,
                                          "column": 10
                                        }
                                      },
                                      "name": "type"
                                    },
                                    "value": {
                                      "type": "Literal",
                                      "start": 2153,
                                      "end": 2162,
                                      "loc": {
                                        "start": {
                                          "line": 60,
                                          "column": 12
                                        },
                                        "end": {
                                          "line": 60,
                                          "column": 21
                                        }
                                      },
                                      "value": "warning",
                                      "rawValue": "warning",
                                      "raw": "'warning'"
                                    },
                                    "kind": "init"
                                  },
                                  {
                                    "type": "Property",
                                    "start": 2170,
                                    "end": 2201,
                                    "loc": {
                                      "start": {
                                        "line": 61,
                                        "column": 6
                                      },
                                      "end": {
                                        "line": 61,
                                        "column": 37
                                      }
                                    },
                                    "method": false,
                                    "shorthand": false,
                                    "computed": false,
                                    "key": {
                                      "type": "Identifier",
                                      "start": 2170,
                                      "end": 2181,
                                      "loc": {
                                        "start": {
                                          "line": 61,
                                          "column": 6
                                        },
                                        "end": {
                                          "line": 61,
                                          "column": 17
                                        }
                                      },
                                      "name": "preciseType"
                                    },
                                    "value": {
                                      "type": "Literal",
                                      "start": 2183,
                                      "end": 2201,
                                      "loc": {
                                        "start": {
                                          "line": 61,
                                          "column": 19
                                        },
                                        "end": {
                                          "line": 61,
                                          "column": 37
                                        }
                                      },
                                      "value": "metadataNotFound",
                                      "rawValue": "metadataNotFound",
                                      "raw": "'metadataNotFound'"
                                    },
                                    "kind": "init"
                                  },
                                  {
                                    "type": "Property",
                                    "start": 2209,
                                    "end": 2312,
                                    "loc": {
                                      "start": {
                                        "line": 62,
                                        "column": 6
                                      },
                                      "end": {
                                        "line": 62,
                                        "column": 109
                                      }
                                    },
                                    "method": false,
                                    "shorthand": false,
                                    "computed": false,
                                    "key": {
                                      "type": "Identifier",
                                      "start": 2209,
                                      "end": 2216,
                                      "loc": {
                                        "start": {
                                          "line": 62,
                                          "column": 6
                                        },
                                        "end": {
                                          "line": 62,
                                          "column": 13
                                        }
                                      },
                                      "name": "message"
                                    },
                                    "value": {
                                      "type": "BinaryExpression",
                                      "start": 2218,
                                      "end": 2312,
                                      "loc": {
                                        "start": {
                                          "line": 62,
                                          "column": 15
                                        },
                                        "end": {
                                          "line": 62,
                                          "column": 109
                                        }
                                      },
                                      "left": {
                                        "type": "BinaryExpression",
                                        "start": 2218,
                                        "end": 2274,
                                        "loc": {
                                          "start": {
                                            "line": 62,
                                            "column": 15
                                          },
                                          "end": {
                                            "line": 62,
                                            "column": 71
                                          }
                                        },
                                        "left": {
                                          "type": "Literal",
                                          "start": 2218,
                                          "end": 2257,
                                          "loc": {
                                            "start": {
                                              "line": 62,
                                              "column": 15
                                            },
                                            "end": {
                                              "line": 62,
                                              "column": 54
                                            }
                                          },
                                          "value": "no metadata specified for the folder ",
                                          "rawValue": "no metadata specified for the folder ",
                                          "raw": "'no metadata specified for the folder '"
                                        },
                                        "operator": "+",
                                        "right": {
                                          "type": "MemberExpression",
                                          "start": 2260,
                                          "end": 2274,
                                          "loc": {
                                            "start": {
                                              "line": 62,
                                              "column": 57
                                            },
                                            "end": {
                                              "line": 62,
                                              "column": 71
                                            }
                                          },
                                          "object": {
                                            "type": "Identifier",
                                            "start": 2260,
                                            "end": 2269,
                                            "loc": {
                                              "start": {
                                                "line": 62,
                                                "column": 57
                                              },
                                              "end": {
                                                "line": 62,
                                                "column": 66
                                              }
                                            },
                                            "name": "naiveTree"
                                          },
                                          "property": {
                                            "type": "Identifier",
                                            "start": 2270,
                                            "end": 2274,
                                            "loc": {
                                              "start": {
                                                "line": 62,
                                                "column": 67
                                              },
                                              "end": {
                                                "line": 62,
                                                "column": 71
                                              }
                                            },
                                            "name": "name"
                                          },
                                          "computed": false
                                        }
                                      },
                                      "operator": "+",
                                      "right": {
                                        "type": "Literal",
                                        "start": 2277,
                                        "end": 2312,
                                        "loc": {
                                          "start": {
                                            "line": 62,
                                            "column": 74
                                          },
                                          "end": {
                                            "line": 62,
                                            "column": 109
                                          }
                                        },
                                        "value": " so it was not taken into account",
                                        "rawValue": " so it was not taken into account",
                                        "raw": "' so it was not taken into account'"
                                      }
                                    },
                                    "kind": "init"
                                  }
                                ]
                              }
                            ]
                          }
                        },
                        {
                          "type": "VariableDeclaration",
                          "start": 2325,
                          "end": 2389,
                          "loc": {
                            "start": {
                              "line": 64,
                              "column": 4
                            },
                            "end": {
                              "line": 64,
                              "column": 68
                            }
                          },
                          "declarations": [
                            {
                              "type": "VariableDeclarator",
                              "start": 2331,
                              "end": 2388,
                              "loc": {
                                "start": {
                                  "line": 64,
                                  "column": 10
                                },
                                "end": {
                                  "line": 64,
                                  "column": 67
                                }
                              },
                              "id": {
                                "type": "Identifier",
                                "start": 2331,
                                "end": 2340,
                                "loc": {
                                  "start": {
                                    "line": 64,
                                    "column": 10
                                  },
                                  "end": {
                                    "line": 64,
                                    "column": 19
                                  }
                                },
                                "name": "newErrors"
                              },
                              "init": {
                                "type": "ConditionalExpression",
                                "start": 2343,
                                "end": 2388,
                                "loc": {
                                  "start": {
                                    "line": 64,
                                    "column": 22
                                  },
                                  "end": {
                                    "line": 64,
                                    "column": 67
                                  }
                                },
                                "test": {
                                  "type": "BinaryExpression",
                                  "start": 2344,
                                  "end": 2361,
                                  "loc": {
                                    "start": {
                                      "line": 64,
                                      "column": 23
                                    },
                                    "end": {
                                      "line": 64,
                                      "column": 40
                                    }
                                  },
                                  "left": {
                                    "type": "MemberExpression",
                                    "start": 2344,
                                    "end": 2357,
                                    "loc": {
                                      "start": {
                                        "line": 64,
                                        "column": 23
                                      },
                                      "end": {
                                        "line": 64,
                                        "column": 36
                                      }
                                    },
                                    "object": {
                                      "type": "Identifier",
                                      "start": 2344,
                                      "end": 2350,
                                      "loc": {
                                        "start": {
                                          "line": 64,
                                          "column": 23
                                        },
                                        "end": {
                                          "line": 64,
                                          "column": 29
                                        }
                                      },
                                      "name": "errors"
                                    },
                                    "property": {
                                      "type": "Identifier",
                                      "start": 2351,
                                      "end": 2357,
                                      "loc": {
                                        "start": {
                                          "line": 64,
                                          "column": 30
                                        },
                                        "end": {
                                          "line": 64,
                                          "column": 36
                                        }
                                      },
                                      "name": "length"
                                    },
                                    "computed": false
                                  },
                                  "operator": ">",
                                  "right": {
                                    "type": "Literal",
                                    "start": 2360,
                                    "end": 2361,
                                    "loc": {
                                      "start": {
                                        "line": 64,
                                        "column": 39
                                      },
                                      "end": {
                                        "line": 64,
                                        "column": 40
                                      }
                                    },
                                    "value": 0,
                                    "rawValue": 0,
                                    "raw": "0"
                                  },
                                  "parenthesizedExpression": true
                                },
                                "consequent": {
                                  "type": "CallExpression",
                                  "start": 2365,
                                  "end": 2381,
                                  "loc": {
                                    "start": {
                                      "line": 64,
                                      "column": 44
                                    },
                                    "end": {
                                      "line": 64,
                                      "column": 60
                                    }
                                  },
                                  "callee": {
                                    "type": "MemberExpression",
                                    "start": 2365,
                                    "end": 2379,
                                    "loc": {
                                      "start": {
                                        "line": 64,
                                        "column": 44
                                      },
                                      "end": {
                                        "line": 64,
                                        "column": 58
                                      }
                                    },
                                    "object": {
                                      "type": "Identifier",
                                      "start": 2365,
                                      "end": 2371,
                                      "loc": {
                                        "start": {
                                          "line": 64,
                                          "column": 44
                                        },
                                        "end": {
                                          "line": 64,
                                          "column": 50
                                        }
                                      },
                                      "name": "errors"
                                    },
                                    "property": {
                                      "type": "Identifier",
                                      "start": 2372,
                                      "end": 2379,
                                      "loc": {
                                        "start": {
                                          "line": 64,
                                          "column": 51
                                        },
                                        "end": {
                                          "line": 64,
                                          "column": 58
                                        }
                                      },
                                      "name": "reverse"
                                    },
                                    "computed": false
                                  },
                                  "arguments": []
                                },
                                "alternate": {
                                  "type": "Literal",
                                  "start": 2384,
                                  "end": 2388,
                                  "loc": {
                                    "start": {
                                      "line": 64,
                                      "column": 63
                                    },
                                    "end": {
                                      "line": 64,
                                      "column": 67
                                    }
                                  },
                                  "value": null,
                                  "rawValue": null,
                                  "raw": "null"
                                }
                              }
                            }
                          ],
                          "kind": "const"
                        },
                        {
                          "type": "ReturnStatement",
                          "start": 2394,
                          "end": 2459,
                          "loc": {
                            "start": {
                              "line": 65,
                              "column": 4
                            },
                            "end": {
                              "line": 65,
                              "column": 69
                            }
                          },
                          "argument": {
                            "type": "CallExpression",
                            "start": 2401,
                            "end": 2458,
                            "loc": {
                              "start": {
                                "line": 65,
                                "column": 11
                              },
                              "end": {
                                "line": 65,
                                "column": 68
                              }
                            },
                            "callee": {
                              "type": "Identifier",
                              "start": 2401,
                              "end": 2409,
                              "loc": {
                                "start": {
                                  "line": 65,
                                  "column": 11
                                },
                                "end": {
                                  "line": 65,
                                  "column": 19
                                }
                              },
                              "name": "callback"
                            },
                            "arguments": [
                              {
                                "type": "Literal",
                                "start": 2410,
                                "end": 2414,
                                "loc": {
                                  "start": {
                                    "line": 65,
                                    "column": 20
                                  },
                                  "end": {
                                    "line": 65,
                                    "column": 24
                                  }
                                },
                                "value": null,
                                "rawValue": null,
                                "raw": "null"
                              },
                              {
                                "type": "ObjectExpression",
                                "start": 2416,
                                "end": 2457,
                                "loc": {
                                  "start": {
                                    "line": 65,
                                    "column": 26
                                  },
                                  "end": {
                                    "line": 65,
                                    "column": 67
                                  }
                                },
                                "properties": [
                                  {
                                    "type": "Property",
                                    "start": 2417,
                                    "end": 2434,
                                    "loc": {
                                      "start": {
                                        "line": 65,
                                        "column": 27
                                      },
                                      "end": {
                                        "line": 65,
                                        "column": 44
                                      }
                                    },
                                    "method": false,
                                    "shorthand": false,
                                    "computed": false,
                                    "key": {
                                      "type": "Identifier",
                                      "start": 2417,
                                      "end": 2423,
                                      "loc": {
                                        "start": {
                                          "line": 65,
                                          "column": 27
                                        },
                                        "end": {
                                          "line": 65,
                                          "column": 33
                                        }
                                      },
                                      "name": "errors"
                                    },
                                    "value": {
                                      "type": "Identifier",
                                      "start": 2425,
                                      "end": 2434,
                                      "loc": {
                                        "start": {
                                          "line": 65,
                                          "column": 35
                                        },
                                        "end": {
                                          "line": 65,
                                          "column": 44
                                        }
                                      },
                                      "name": "newErrors"
                                    },
                                    "kind": "init"
                                  },
                                  {
                                    "type": "Property",
                                    "start": 2436,
                                    "end": 2456,
                                    "loc": {
                                      "start": {
                                        "line": 65,
                                        "column": 46
                                      },
                                      "end": {
                                        "line": 65,
                                        "column": 66
                                      }
                                    },
                                    "method": false,
                                    "shorthand": false,
                                    "computed": false,
                                    "key": {
                                      "type": "Identifier",
                                      "start": 2436,
                                      "end": 2445,
                                      "loc": {
                                        "start": {
                                          "line": 65,
                                          "column": 46
                                        },
                                        "end": {
                                          "line": 65,
                                          "column": 55
                                        }
                                      },
                                      "name": "validTree"
                                    },
                                    "value": {
                                      "type": "Identifier",
                                      "start": 2447,
                                      "end": 2456,
                                      "loc": {
                                        "start": {
                                          "line": 65,
                                          "column": 57
                                        },
                                        "end": {
                                          "line": 65,
                                          "column": 66
                                        }
                                      },
                                      "name": "undefined"
                                    },
                                    "kind": "init"
                                  }
                                ]
                              }
                            ]
                          }
                        }
                      ]
                    },
                    "alternate": {
                      "type": "IfStatement",
                      "start": 2468,
                      "end": 3233,
                      "loc": {
                        "start": {
                          "line": 66,
                          "column": 8
                        },
                        "end": {
                          "line": 84,
                          "column": 3
                        }
                      },
                      "test": {
                        "type": "MemberExpression",
                        "start": 2472,
                        "end": 2490,
                        "loc": {
                          "start": {
                            "line": 66,
                            "column": 12
                          },
                          "end": {
                            "line": 66,
                            "column": 30
                          }
                        },
                        "object": {
                          "type": "Identifier",
                          "start": 2472,
                          "end": 2481,
                          "loc": {
                            "start": {
                              "line": 66,
                              "column": 12
                            },
                            "end": {
                              "line": 66,
                              "column": 21
                            }
                          },
                          "name": "naiveTree"
                        },
                        "property": {
                          "type": "Identifier",
                          "start": 2482,
                          "end": 2490,
                          "loc": {
                            "start": {
                              "line": 66,
                              "column": 22
                            },
                            "end": {
                              "line": 66,
                              "column": 30
                            }
                          },
                          "name": "children"
                        },
                        "computed": false
                      },
                      "consequent": {
                        "type": "BlockStatement",
                        "start": 2492,
                        "end": 3233,
                        "loc": {
                          "start": {
                            "line": 66,
                            "column": 32
                          },
                          "end": {
                            "line": 84,
                            "column": 3
                          }
                        },
                        "body": [
                          {
                            "type": "ReturnStatement",
                            "start": 2498,
                            "end": 3229,
                            "loc": {
                              "start": {
                                "line": 67,
                                "column": 4
                              },
                              "end": {
                                "line": 83,
                                "column": 7
                              }
                            },
                            "argument": {
                              "type": "CallExpression",
                              "start": 2505,
                              "end": 3228,
                              "loc": {
                                "start": {
                                  "line": 67,
                                  "column": 11
                                },
                                "end": {
                                  "line": 83,
                                  "column": 6
                                }
                              },
                              "callee": {
                                "type": "Identifier",
                                "start": 2505,
                                "end": 2513,
                                "loc": {
                                  "start": {
                                    "line": 67,
                                    "column": 11
                                  },
                                  "end": {
                                    "line": 67,
                                    "column": 19
                                  }
                                },
                                "name": "asyncMap"
                              },
                              "arguments": [
                                {
                                  "type": "MemberExpression",
                                  "start": 2514,
                                  "end": 2532,
                                  "loc": {
                                    "start": {
                                      "line": 67,
                                      "column": 20
                                    },
                                    "end": {
                                      "line": 67,
                                      "column": 38
                                    }
                                  },
                                  "object": {
                                    "type": "Identifier",
                                    "start": 2514,
                                    "end": 2523,
                                    "loc": {
                                      "start": {
                                        "line": 67,
                                        "column": 20
                                      },
                                      "end": {
                                        "line": 67,
                                        "column": 29
                                      }
                                    },
                                    "name": "naiveTree"
                                  },
                                  "property": {
                                    "type": "Identifier",
                                    "start": 2524,
                                    "end": 2532,
                                    "loc": {
                                      "start": {
                                        "line": 67,
                                        "column": 30
                                      },
                                      "end": {
                                        "line": 67,
                                        "column": 38
                                      }
                                    },
                                    "name": "children"
                                  },
                                  "computed": false
                                },
                                {
                                  "type": "FunctionExpression",
                                  "start": 2534,
                                  "end": 2615,
                                  "loc": {
                                    "start": {
                                      "line": 67,
                                      "column": 40
                                    },
                                    "end": {
                                      "line": 69,
                                      "column": 5
                                    }
                                  },
                                  "id": null,
                                  "generator": false,
                                  "expression": false,
                                  "async": false,
                                  "params": [
                                    {
                                      "type": "Identifier",
                                      "start": 2543,
                                      "end": 2548,
                                      "loc": {
                                        "start": {
                                          "line": 67,
                                          "column": 49
                                        },
                                        "end": {
                                          "line": 67,
                                          "column": 54
                                        }
                                      },
                                      "name": "child"
                                    },
                                    {
                                      "type": "Identifier",
                                      "start": 2550,
                                      "end": 2552,
                                      "loc": {
                                        "start": {
                                          "line": 67,
                                          "column": 56
                                        },
                                        "end": {
                                          "line": 67,
                                          "column": 58
                                        }
                                      },
                                      "name": "cb"
                                    }
                                  ],
                                  "body": {
                                    "type": "BlockStatement",
                                    "start": 2554,
                                    "end": 2615,
                                    "loc": {
                                      "start": {
                                        "line": 67,
                                        "column": 60
                                      },
                                      "end": {
                                        "line": 69,
                                        "column": 5
                                      }
                                    },
                                    "body": [
                                      {
                                        "type": "ExpressionStatement",
                                        "start": 2562,
                                        "end": 2609,
                                        "loc": {
                                          "start": {
                                            "line": 68,
                                            "column": 6
                                          },
                                          "end": {
                                            "line": 68,
                                            "column": 53
                                          }
                                        },
                                        "expression": {
                                          "type": "CallExpression",
                                          "start": 2562,
                                          "end": 2608,
                                          "loc": {
                                            "start": {
                                              "line": 68,
                                              "column": 6
                                            },
                                            "end": {
                                              "line": 68,
                                              "column": 52
                                            }
                                          },
                                          "callee": {
                                            "type": "Identifier",
                                            "start": 2562,
                                            "end": 2576,
                                            "loc": {
                                              "start": {
                                                "line": 68,
                                                "column": 6
                                              },
                                              "end": {
                                                "line": 68,
                                                "column": 20
                                              }
                                            },
                                            "name": "cleanNaiveTree"
                                          },
                                          "arguments": [
                                            {
                                              "type": "ObjectExpression",
                                              "start": 2577,
                                              "end": 2595,
                                              "loc": {
                                                "start": {
                                                  "line": 68,
                                                  "column": 21
                                                },
                                                "end": {
                                                  "line": 68,
                                                  "column": 39
                                                }
                                              },
                                              "properties": [
                                                {
                                                  "type": "Property",
                                                  "start": 2578,
                                                  "end": 2594,
                                                  "loc": {
                                                    "start": {
                                                      "line": 68,
                                                      "column": 22
                                                    },
                                                    "end": {
                                                      "line": 68,
                                                      "column": 38
                                                    }
                                                  },
                                                  "method": false,
                                                  "shorthand": false,
                                                  "computed": false,
                                                  "key": {
                                                    "type": "Identifier",
                                                    "start": 2578,
                                                    "end": 2587,
                                                    "loc": {
                                                      "start": {
                                                        "line": 68,
                                                        "column": 22
                                                      },
                                                      "end": {
                                                        "line": 68,
                                                        "column": 31
                                                      }
                                                    },
                                                    "name": "validTree"
                                                  },
                                                  "value": {
                                                    "type": "Identifier",
                                                    "start": 2589,
                                                    "end": 2594,
                                                    "loc": {
                                                      "start": {
                                                        "line": 68,
                                                        "column": 33
                                                      },
                                                      "end": {
                                                        "line": 68,
                                                        "column": 38
                                                      }
                                                    },
                                                    "name": "child"
                                                  },
                                                  "kind": "init"
                                                }
                                              ]
                                            },
                                            {
                                              "type": "Identifier",
                                              "start": 2597,
                                              "end": 2603,
                                              "loc": {
                                                "start": {
                                                  "line": 68,
                                                  "column": 41
                                                },
                                                "end": {
                                                  "line": 68,
                                                  "column": 47
                                                }
                                              },
                                              "name": "models"
                                            },
                                            {
                                              "type": "Identifier",
                                              "start": 2605,
                                              "end": 2607,
                                              "loc": {
                                                "start": {
                                                  "line": 68,
                                                  "column": 49
                                                },
                                                "end": {
                                                  "line": 68,
                                                  "column": 51
                                                }
                                              },
                                              "name": "cb"
                                            }
                                          ]
                                        }
                                      }
                                    ]
                                  }
                                },
                                {
                                  "type": "ArrowFunctionExpression",
                                  "start": 2617,
                                  "end": 3227,
                                  "loc": {
                                    "start": {
                                      "line": 69,
                                      "column": 7
                                    },
                                    "end": {
                                      "line": 83,
                                      "column": 5
                                    }
                                  },
                                  "id": null,
                                  "generator": false,
                                  "expression": false,
                                  "async": false,
                                  "params": [
                                    {
                                      "type": "Identifier",
                                      "start": 2618,
                                      "end": 2621,
                                      "loc": {
                                        "start": {
                                          "line": 69,
                                          "column": 8
                                        },
                                        "end": {
                                          "line": 69,
                                          "column": 11
                                        }
                                      },
                                      "name": "err"
                                    },
                                    {
                                      "type": "Identifier",
                                      "start": 2623,
                                      "end": 2630,
                                      "loc": {
                                        "start": {
                                          "line": 69,
                                          "column": 13
                                        },
                                        "end": {
                                          "line": 69,
                                          "column": 20
                                        }
                                      },
                                      "name": "results"
                                    }
                                  ],
                                  "body": {
                                    "type": "BlockStatement",
                                    "start": 2634,
                                    "end": 3227,
                                    "loc": {
                                      "start": {
                                        "line": 69,
                                        "column": 24
                                      },
                                      "end": {
                                        "line": 83,
                                        "column": 5
                                      }
                                    },
                                    "body": [
                                      {
                                        "type": "VariableDeclaration",
                                        "start": 2685,
                                        "end": 2954,
                                        "loc": {
                                          "start": {
                                            "line": 71,
                                            "column": 6
                                          },
                                          "end": {
                                            "line": 77,
                                            "column": 25
                                          }
                                        },
                                        "declarations": [
                                          {
                                            "type": "VariableDeclarator",
                                            "start": 2691,
                                            "end": 2953,
                                            "loc": {
                                              "start": {
                                                "line": 71,
                                                "column": 12
                                              },
                                              "end": {
                                                "line": 77,
                                                "column": 24
                                              }
                                            },
                                            "id": {
                                              "type": "Identifier",
                                              "start": 2691,
                                              "end": 2699,
                                              "loc": {
                                                "start": {
                                                  "line": 71,
                                                  "column": 12
                                                },
                                                "end": {
                                                  "line": 71,
                                                  "column": 20
                                                }
                                              },
                                              "name": "children",
                                              "leadingComments": null
                                            },
                                            "init": {
                                              "type": "CallExpression",
                                              "start": 2702,
                                              "end": 2953,
                                              "loc": {
                                                "start": {
                                                  "line": 71,
                                                  "column": 23
                                                },
                                                "end": {
                                                  "line": 77,
                                                  "column": 24
                                                }
                                              },
                                              "callee": {
                                                "type": "MemberExpression",
                                                "start": 2702,
                                                "end": 2866,
                                                "loc": {
                                                  "start": {
                                                    "line": 71,
                                                    "column": 23
                                                  },
                                                  "end": {
                                                    "line": 75,
                                                    "column": 26
                                                  }
                                                },
                                                "object": {
                                                  "type": "CallExpression",
                                                  "start": 2702,
                                                  "end": 2839,
                                                  "loc": {
                                                    "start": {
                                                      "line": 71,
                                                      "column": 23
                                                    },
                                                    "end": {
                                                      "line": 74,
                                                      "column": 24
                                                    }
                                                  },
                                                  "callee": {
                                                    "type": "MemberExpression",
                                                    "start": 2702,
                                                    "end": 2739,
                                                    "loc": {
                                                      "start": {
                                                        "line": 71,
                                                        "column": 23
                                                      },
                                                      "end": {
                                                        "line": 72,
                                                        "column": 29
                                                      }
                                                    },
                                                    "object": {
                                                      "type": "Identifier",
                                                      "start": 2702,
                                                      "end": 2709,
                                                      "loc": {
                                                        "start": {
                                                          "line": 71,
                                                          "column": 23
                                                        },
                                                        "end": {
                                                          "line": 71,
                                                          "column": 30
                                                        }
                                                      },
                                                      "name": "results"
                                                    },
                                                    "property": {
                                                      "type": "Identifier",
                                                      "start": 2733,
                                                      "end": 2739,
                                                      "loc": {
                                                        "start": {
                                                          "line": 72,
                                                          "column": 23
                                                        },
                                                        "end": {
                                                          "line": 72,
                                                          "column": 29
                                                        }
                                                      },
                                                      "name": "filter"
                                                    },
                                                    "computed": false
                                                  },
                                                  "arguments": [
                                                    {
                                                      "type": "ArrowFunctionExpression",
                                                      "start": 2740,
                                                      "end": 2838,
                                                      "loc": {
                                                        "start": {
                                                          "line": 72,
                                                          "column": 30
                                                        },
                                                        "end": {
                                                          "line": 74,
                                                          "column": 23
                                                        }
                                                      },
                                                      "id": null,
                                                      "generator": false,
                                                      "expression": false,
                                                      "async": false,
                                                      "params": [
                                                        {
                                                          "type": "Identifier",
                                                          "start": 2741,
                                                          "end": 2747,
                                                          "loc": {
                                                            "start": {
                                                              "line": 72,
                                                              "column": 31
                                                            },
                                                            "end": {
                                                              "line": 72,
                                                              "column": 37
                                                            }
                                                          },
                                                          "name": "result"
                                                        }
                                                      ],
                                                      "body": {
                                                        "type": "BlockStatement",
                                                        "start": 2750,
                                                        "end": 2838,
                                                        "loc": {
                                                          "start": {
                                                            "line": 72,
                                                            "column": 40
                                                          },
                                                          "end": {
                                                            "line": 74,
                                                            "column": 23
                                                          }
                                                        },
                                                        "body": [
                                                          {
                                                            "type": "ReturnStatement",
                                                            "start": 2776,
                                                            "end": 2814,
                                                            "loc": {
                                                              "start": {
                                                                "line": 73,
                                                                "column": 24
                                                              },
                                                              "end": {
                                                                "line": 73,
                                                                "column": 62
                                                              }
                                                            },
                                                            "argument": {
                                                              "type": "BinaryExpression",
                                                              "start": 2783,
                                                              "end": 2813,
                                                              "loc": {
                                                                "start": {
                                                                  "line": 73,
                                                                  "column": 31
                                                                },
                                                                "end": {
                                                                  "line": 73,
                                                                  "column": 61
                                                                }
                                                              },
                                                              "left": {
                                                                "type": "MemberExpression",
                                                                "start": 2783,
                                                                "end": 2799,
                                                                "loc": {
                                                                  "start": {
                                                                    "line": 73,
                                                                    "column": 31
                                                                  },
                                                                  "end": {
                                                                    "line": 73,
                                                                    "column": 47
                                                                  }
                                                                },
                                                                "object": {
                                                                  "type": "Identifier",
                                                                  "start": 2783,
                                                                  "end": 2789,
                                                                  "loc": {
                                                                    "start": {
                                                                      "line": 73,
                                                                      "column": 31
                                                                    },
                                                                    "end": {
                                                                      "line": 73,
                                                                      "column": 37
                                                                    }
                                                                  },
                                                                  "name": "result"
                                                                },
                                                                "property": {
                                                                  "type": "Identifier",
                                                                  "start": 2790,
                                                                  "end": 2799,
                                                                  "loc": {
                                                                    "start": {
                                                                      "line": 73,
                                                                      "column": 38
                                                                    },
                                                                    "end": {
                                                                      "line": 73,
                                                                      "column": 47
                                                                    }
                                                                  },
                                                                  "name": "validTree"
                                                                },
                                                                "computed": false
                                                              },
                                                              "operator": "!==",
                                                              "right": {
                                                                "type": "Identifier",
                                                                "start": 2804,
                                                                "end": 2813,
                                                                "loc": {
                                                                  "start": {
                                                                    "line": 73,
                                                                    "column": 52
                                                                  },
                                                                  "end": {
                                                                    "line": 73,
                                                                    "column": 61
                                                                  }
                                                                },
                                                                "name": "undefined"
                                                              }
                                                            }
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  ]
                                                },
                                                "property": {
                                                  "type": "Identifier",
                                                  "start": 2863,
                                                  "end": 2866,
                                                  "loc": {
                                                    "start": {
                                                      "line": 75,
                                                      "column": 23
                                                    },
                                                    "end": {
                                                      "line": 75,
                                                      "column": 26
                                                    }
                                                  },
                                                  "name": "map"
                                                },
                                                "computed": false
                                              },
                                              "arguments": [
                                                {
                                                  "type": "ArrowFunctionExpression",
                                                  "start": 2867,
                                                  "end": 2952,
                                                  "loc": {
                                                    "start": {
                                                      "line": 75,
                                                      "column": 27
                                                    },
                                                    "end": {
                                                      "line": 77,
                                                      "column": 23
                                                    }
                                                  },
                                                  "id": null,
                                                  "generator": false,
                                                  "expression": false,
                                                  "async": false,
                                                  "params": [
                                                    {
                                                      "type": "Identifier",
                                                      "start": 2868,
                                                      "end": 2874,
                                                      "loc": {
                                                        "start": {
                                                          "line": 75,
                                                          "column": 28
                                                        },
                                                        "end": {
                                                          "line": 75,
                                                          "column": 34
                                                        }
                                                      },
                                                      "name": "result"
                                                    }
                                                  ],
                                                  "body": {
                                                    "type": "BlockStatement",
                                                    "start": 2878,
                                                    "end": 2952,
                                                    "loc": {
                                                      "start": {
                                                        "line": 75,
                                                        "column": 38
                                                      },
                                                      "end": {
                                                        "line": 77,
                                                        "column": 23
                                                      }
                                                    },
                                                    "body": [
                                                      {
                                                        "type": "ReturnStatement",
                                                        "start": 2904,
                                                        "end": 2928,
                                                        "loc": {
                                                          "start": {
                                                            "line": 76,
                                                            "column": 24
                                                          },
                                                          "end": {
                                                            "line": 76,
                                                            "column": 48
                                                          }
                                                        },
                                                        "argument": {
                                                          "type": "MemberExpression",
                                                          "start": 2911,
                                                          "end": 2927,
                                                          "loc": {
                                                            "start": {
                                                              "line": 76,
                                                              "column": 31
                                                            },
                                                            "end": {
                                                              "line": 76,
                                                              "column": 47
                                                            }
                                                          },
                                                          "object": {
                                                            "type": "Identifier",
                                                            "start": 2911,
                                                            "end": 2917,
                                                            "loc": {
                                                              "start": {
                                                                "line": 76,
                                                                "column": 31
                                                              },
                                                              "end": {
                                                                "line": 76,
                                                                "column": 37
                                                              }
                                                            },
                                                            "name": "result"
                                                          },
                                                          "property": {
                                                            "type": "Identifier",
                                                            "start": 2918,
                                                            "end": 2927,
                                                            "loc": {
                                                              "start": {
                                                                "line": 76,
                                                                "column": 38
                                                              },
                                                              "end": {
                                                                "line": 76,
                                                                "column": 47
                                                              }
                                                            },
                                                            "name": "validTree"
                                                          },
                                                          "computed": false
                                                        }
                                                      }
                                                    ]
                                                  }
                                                }
                                              ]
                                            },
                                            "leadingComments": null
                                          }
                                        ],
                                        "kind": "const",
                                        "leadingComments": [
                                          {
                                            "type": "CommentLine",
                                            "value": " filter valid children tree leaves",
                                            "start": 2642,
                                            "end": 2678,
                                            "loc": {
                                              "start": {
                                                "line": 70,
                                                "column": 6
                                              },
                                              "end": {
                                                "line": 70,
                                                "column": 42
                                              }
                                            },
                                            "range": [
                                              2642,
                                              2678
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "VariableDeclaration",
                                        "start": 2962,
                                        "end": 3087,
                                        "loc": {
                                          "start": {
                                            "line": 79,
                                            "column": 6
                                          },
                                          "end": {
                                            "line": 81,
                                            "column": 17
                                          }
                                        },
                                        "declarations": [
                                          {
                                            "type": "VariableDeclarator",
                                            "start": 2968,
                                            "end": 3086,
                                            "loc": {
                                              "start": {
                                                "line": 79,
                                                "column": 12
                                              },
                                              "end": {
                                                "line": 81,
                                                "column": 16
                                              }
                                            },
                                            "id": {
                                              "type": "Identifier",
                                              "start": 2968,
                                              "end": 2977,
                                              "loc": {
                                                "start": {
                                                  "line": 79,
                                                  "column": 12
                                                },
                                                "end": {
                                                  "line": 79,
                                                  "column": 21
                                                }
                                              },
                                              "name": "newErrors"
                                            },
                                            "init": {
                                              "type": "CallExpression",
                                              "start": 2980,
                                              "end": 3086,
                                              "loc": {
                                                "start": {
                                                  "line": 79,
                                                  "column": 24
                                                },
                                                "end": {
                                                  "line": 81,
                                                  "column": 16
                                                }
                                              },
                                              "callee": {
                                                "type": "MemberExpression",
                                                "start": 2980,
                                                "end": 2994,
                                                "loc": {
                                                  "start": {
                                                    "line": 79,
                                                    "column": 24
                                                  },
                                                  "end": {
                                                    "line": 79,
                                                    "column": 38
                                                  }
                                                },
                                                "object": {
                                                  "type": "Identifier",
                                                  "start": 2980,
                                                  "end": 2987,
                                                  "loc": {
                                                    "start": {
                                                      "line": 79,
                                                      "column": 24
                                                    },
                                                    "end": {
                                                      "line": 79,
                                                      "column": 31
                                                    }
                                                  },
                                                  "name": "results"
                                                },
                                                "property": {
                                                  "type": "Identifier",
                                                  "start": 2988,
                                                  "end": 2994,
                                                  "loc": {
                                                    "start": {
                                                      "line": 79,
                                                      "column": 32
                                                    },
                                                    "end": {
                                                      "line": 79,
                                                      "column": 38
                                                    }
                                                  },
                                                  "name": "reduce"
                                                },
                                                "computed": false
                                              },
                                              "arguments": [
                                                {
                                                  "type": "ArrowFunctionExpression",
                                                  "start": 2995,
                                                  "end": 3077,
                                                  "loc": {
                                                    "start": {
                                                      "line": 79,
                                                      "column": 39
                                                    },
                                                    "end": {
                                                      "line": 81,
                                                      "column": 7
                                                    }
                                                  },
                                                  "id": null,
                                                  "generator": false,
                                                  "expression": false,
                                                  "async": false,
                                                  "params": [
                                                    {
                                                      "type": "Identifier",
                                                      "start": 2996,
                                                      "end": 3007,
                                                      "loc": {
                                                        "start": {
                                                          "line": 79,
                                                          "column": 40
                                                        },
                                                        "end": {
                                                          "line": 79,
                                                          "column": 51
                                                        }
                                                      },
                                                      "name": "theseErrors"
                                                    },
                                                    {
                                                      "type": "Identifier",
                                                      "start": 3009,
                                                      "end": 3015,
                                                      "loc": {
                                                        "start": {
                                                          "line": 79,
                                                          "column": 53
                                                        },
                                                        "end": {
                                                          "line": 79,
                                                          "column": 59
                                                        }
                                                      },
                                                      "name": "result"
                                                    }
                                                  ],
                                                  "body": {
                                                    "type": "BlockStatement",
                                                    "start": 3018,
                                                    "end": 3077,
                                                    "loc": {
                                                      "start": {
                                                        "line": 79,
                                                        "column": 62
                                                      },
                                                      "end": {
                                                        "line": 81,
                                                        "column": 7
                                                      }
                                                    },
                                                    "body": [
                                                      {
                                                        "type": "ReturnStatement",
                                                        "start": 3028,
                                                        "end": 3069,
                                                        "loc": {
                                                          "start": {
                                                            "line": 80,
                                                            "column": 8
                                                          },
                                                          "end": {
                                                            "line": 80,
                                                            "column": 49
                                                          }
                                                        },
                                                        "argument": {
                                                          "type": "CallExpression",
                                                          "start": 3035,
                                                          "end": 3068,
                                                          "loc": {
                                                            "start": {
                                                              "line": 80,
                                                              "column": 15
                                                            },
                                                            "end": {
                                                              "line": 80,
                                                              "column": 48
                                                            }
                                                          },
                                                          "callee": {
                                                            "type": "MemberExpression",
                                                            "start": 3035,
                                                            "end": 3053,
                                                            "loc": {
                                                              "start": {
                                                                "line": 80,
                                                                "column": 15
                                                              },
                                                              "end": {
                                                                "line": 80,
                                                                "column": 33
                                                              }
                                                            },
                                                            "object": {
                                                              "type": "Identifier",
                                                              "start": 3035,
                                                              "end": 3046,
                                                              "loc": {
                                                                "start": {
                                                                  "line": 80,
                                                                  "column": 15
                                                                },
                                                                "end": {
                                                                  "line": 80,
                                                                  "column": 26
                                                                }
                                                              },
                                                              "name": "theseErrors"
                                                            },
                                                            "property": {
                                                              "type": "Identifier",
                                                              "start": 3047,
                                                              "end": 3053,
                                                              "loc": {
                                                                "start": {
                                                                  "line": 80,
                                                                  "column": 27
                                                                },
                                                                "end": {
                                                                  "line": 80,
                                                                  "column": 33
                                                                }
                                                              },
                                                              "name": "concat"
                                                            },
                                                            "computed": false
                                                          },
                                                          "arguments": [
                                                            {
                                                              "type": "MemberExpression",
                                                              "start": 3054,
                                                              "end": 3067,
                                                              "loc": {
                                                                "start": {
                                                                  "line": 80,
                                                                  "column": 34
                                                                },
                                                                "end": {
                                                                  "line": 80,
                                                                  "column": 47
                                                                }
                                                              },
                                                              "object": {
                                                                "type": "Identifier",
                                                                "start": 3054,
                                                                "end": 3060,
                                                                "loc": {
                                                                  "start": {
                                                                    "line": 80,
                                                                    "column": 34
                                                                  },
                                                                  "end": {
                                                                    "line": 80,
                                                                    "column": 40
                                                                  }
                                                                },
                                                                "name": "result"
                                                              },
                                                              "property": {
                                                                "type": "Identifier",
                                                                "start": 3061,
                                                                "end": 3067,
                                                                "loc": {
                                                                  "start": {
                                                                    "line": 80,
                                                                    "column": 41
                                                                  },
                                                                  "end": {
                                                                    "line": 80,
                                                                    "column": 47
                                                                  }
                                                                },
                                                                "name": "errors"
                                                              },
                                                              "computed": false
                                                            }
                                                          ]
                                                        }
                                                      }
                                                    ]
                                                  }
                                                },
                                                {
                                                  "type": "Identifier",
                                                  "start": 3079,
                                                  "end": 3085,
                                                  "loc": {
                                                    "start": {
                                                      "line": 81,
                                                      "column": 9
                                                    },
                                                    "end": {
                                                      "line": 81,
                                                      "column": 15
                                                    }
                                                  },
                                                  "name": "errors"
                                                }
                                              ]
                                            }
                                          }
                                        ],
                                        "kind": "const"
                                      },
                                      {
                                        "type": "ReturnStatement",
                                        "start": 3094,
                                        "end": 3221,
                                        "loc": {
                                          "start": {
                                            "line": 82,
                                            "column": 6
                                          },
                                          "end": {
                                            "line": 82,
                                            "column": 133
                                          }
                                        },
                                        "argument": {
                                          "type": "CallExpression",
                                          "start": 3101,
                                          "end": 3220,
                                          "loc": {
                                            "start": {
                                              "line": 82,
                                              "column": 13
                                            },
                                            "end": {
                                              "line": 82,
                                              "column": 132
                                            }
                                          },
                                          "callee": {
                                            "type": "Identifier",
                                            "start": 3101,
                                            "end": 3109,
                                            "loc": {
                                              "start": {
                                                "line": 82,
                                                "column": 13
                                              },
                                              "end": {
                                                "line": 82,
                                                "column": 21
                                              }
                                            },
                                            "name": "callback"
                                          },
                                          "arguments": [
                                            {
                                              "type": "Literal",
                                              "start": 3110,
                                              "end": 3114,
                                              "loc": {
                                                "start": {
                                                  "line": 82,
                                                  "column": 22
                                                },
                                                "end": {
                                                  "line": 82,
                                                  "column": 26
                                                }
                                              },
                                              "value": null,
                                              "rawValue": null,
                                              "raw": "null"
                                            },
                                            {
                                              "type": "ObjectExpression",
                                              "start": 3116,
                                              "end": 3219,
                                              "loc": {
                                                "start": {
                                                  "line": 82,
                                                  "column": 28
                                                },
                                                "end": {
                                                  "line": 82,
                                                  "column": 131
                                                }
                                              },
                                              "properties": [
                                                {
                                                  "type": "Property",
                                                  "start": 3117,
                                                  "end": 3134,
                                                  "loc": {
                                                    "start": {
                                                      "line": 82,
                                                      "column": 29
                                                    },
                                                    "end": {
                                                      "line": 82,
                                                      "column": 46
                                                    }
                                                  },
                                                  "method": false,
                                                  "shorthand": false,
                                                  "computed": false,
                                                  "key": {
                                                    "type": "Identifier",
                                                    "start": 3117,
                                                    "end": 3123,
                                                    "loc": {
                                                      "start": {
                                                        "line": 82,
                                                        "column": 29
                                                      },
                                                      "end": {
                                                        "line": 82,
                                                        "column": 35
                                                      }
                                                    },
                                                    "name": "errors"
                                                  },
                                                  "value": {
                                                    "type": "Identifier",
                                                    "start": 3125,
                                                    "end": 3134,
                                                    "loc": {
                                                      "start": {
                                                        "line": 82,
                                                        "column": 37
                                                      },
                                                      "end": {
                                                        "line": 82,
                                                        "column": 46
                                                      }
                                                    },
                                                    "name": "newErrors"
                                                  },
                                                  "kind": "init"
                                                },
                                                {
                                                  "type": "Property",
                                                  "start": 3136,
                                                  "end": 3218,
                                                  "loc": {
                                                    "start": {
                                                      "line": 82,
                                                      "column": 48
                                                    },
                                                    "end": {
                                                      "line": 82,
                                                      "column": 130
                                                    }
                                                  },
                                                  "method": false,
                                                  "shorthand": false,
                                                  "computed": false,
                                                  "key": {
                                                    "type": "Identifier",
                                                    "start": 3136,
                                                    "end": 3145,
                                                    "loc": {
                                                      "start": {
                                                        "line": 82,
                                                        "column": 48
                                                      },
                                                      "end": {
                                                        "line": 82,
                                                        "column": 57
                                                      }
                                                    },
                                                    "name": "validTree"
                                                  },
                                                  "value": {
                                                    "type": "CallExpression",
                                                    "start": 3147,
                                                    "end": 3218,
                                                    "loc": {
                                                      "start": {
                                                        "line": 82,
                                                        "column": 59
                                                      },
                                                      "end": {
                                                        "line": 82,
                                                        "column": 130
                                                      }
                                                    },
                                                    "callee": {
                                                      "type": "MemberExpression",
                                                      "start": 3147,
                                                      "end": 3160,
                                                      "loc": {
                                                        "start": {
                                                          "line": 82,
                                                          "column": 59
                                                        },
                                                        "end": {
                                                          "line": 82,
                                                          "column": 72
                                                        }
                                                      },
                                                      "object": {
                                                        "type": "Identifier",
                                                        "start": 3147,
                                                        "end": 3153,
                                                        "loc": {
                                                          "start": {
                                                            "line": 82,
                                                            "column": 59
                                                          },
                                                          "end": {
                                                            "line": 82,
                                                            "column": 65
                                                          }
                                                        },
                                                        "name": "Object"
                                                      },
                                                      "property": {
                                                        "type": "Identifier",
                                                        "start": 3154,
                                                        "end": 3160,
                                                        "loc": {
                                                          "start": {
                                                            "line": 82,
                                                            "column": 66
                                                          },
                                                          "end": {
                                                            "line": 82,
                                                            "column": 72
                                                          }
                                                        },
                                                        "name": "assign"
                                                      },
                                                      "computed": false
                                                    },
                                                    "arguments": [
                                                      {
                                                        "type": "ObjectExpression",
                                                        "start": 3161,
                                                        "end": 3163,
                                                        "loc": {
                                                          "start": {
                                                            "line": 82,
                                                            "column": 73
                                                          },
                                                          "end": {
                                                            "line": 82,
                                                            "column": 75
                                                          }
                                                        },
                                                        "properties": []
                                                      },
                                                      {
                                                        "type": "Identifier",
                                                        "start": 3165,
                                                        "end": 3174,
                                                        "loc": {
                                                          "start": {
                                                            "line": 82,
                                                            "column": 77
                                                          },
                                                          "end": {
                                                            "line": 82,
                                                            "column": 86
                                                          }
                                                        },
                                                        "name": "naiveTree"
                                                      },
                                                      {
                                                        "type": "ObjectExpression",
                                                        "start": 3176,
                                                        "end": 3186,
                                                        "loc": {
                                                          "start": {
                                                            "line": 82,
                                                            "column": 88
                                                          },
                                                          "end": {
                                                            "line": 82,
                                                            "column": 98
                                                          }
                                                        },
                                                        "properties": [
                                                          {
                                                            "type": "Property",
                                                            "start": 3177,
                                                            "end": 3185,
                                                            "loc": {
                                                              "start": {
                                                                "line": 82,
                                                                "column": 89
                                                              },
                                                              "end": {
                                                                "line": 82,
                                                                "column": 97
                                                              }
                                                            },
                                                            "method": false,
                                                            "shorthand": true,
                                                            "computed": false,
                                                            "key": {
                                                              "type": "Identifier",
                                                              "start": 3177,
                                                              "end": 3185,
                                                              "loc": {
                                                                "start": {
                                                                  "line": 82,
                                                                  "column": 89
                                                                },
                                                                "end": {
                                                                  "line": 82,
                                                                  "column": 97
                                                                }
                                                              },
                                                              "name": "metadata"
                                                            },
                                                            "kind": "init",
                                                            "value": {
                                                              "type": "Identifier",
                                                              "start": 3177,
                                                              "end": 3185,
                                                              "loc": {
                                                                "start": {
                                                                  "line": 82,
                                                                  "column": 89
                                                                },
                                                                "end": {
                                                                  "line": 82,
                                                                  "column": 97
                                                                }
                                                              },
                                                              "name": "metadata"
                                                            }
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "type": "ObjectExpression",
                                                        "start": 3188,
                                                        "end": 3198,
                                                        "loc": {
                                                          "start": {
                                                            "line": 82,
                                                            "column": 100
                                                          },
                                                          "end": {
                                                            "line": 82,
                                                            "column": 110
                                                          }
                                                        },
                                                        "properties": [
                                                          {
                                                            "type": "Property",
                                                            "start": 3189,
                                                            "end": 3197,
                                                            "loc": {
                                                              "start": {
                                                                "line": 82,
                                                                "column": 101
                                                              },
                                                              "end": {
                                                                "line": 82,
                                                                "column": 109
                                                              }
                                                            },
                                                            "method": false,
                                                            "shorthand": true,
                                                            "computed": false,
                                                            "key": {
                                                              "type": "Identifier",
                                                              "start": 3189,
                                                              "end": 3197,
                                                              "loc": {
                                                                "start": {
                                                                  "line": 82,
                                                                  "column": 101
                                                                },
                                                                "end": {
                                                                  "line": 82,
                                                                  "column": 109
                                                                }
                                                              },
                                                              "name": "children"
                                                            },
                                                            "kind": "init",
                                                            "value": {
                                                              "type": "Identifier",
                                                              "start": 3189,
                                                              "end": 3197,
                                                              "loc": {
                                                                "start": {
                                                                  "line": 82,
                                                                  "column": 101
                                                                },
                                                                "end": {
                                                                  "line": 82,
                                                                  "column": 109
                                                                }
                                                              },
                                                              "name": "children"
                                                            }
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "type": "ObjectExpression",
                                                        "start": 3200,
                                                        "end": 3217,
                                                        "loc": {
                                                          "start": {
                                                            "line": 82,
                                                            "column": 112
                                                          },
                                                          "end": {
                                                            "line": 82,
                                                            "column": 129
                                                          }
                                                        },
                                                        "properties": [
                                                          {
                                                            "type": "Property",
                                                            "start": 3201,
                                                            "end": 3216,
                                                            "loc": {
                                                              "start": {
                                                                "line": 82,
                                                                "column": 113
                                                              },
                                                              "end": {
                                                                "line": 82,
                                                                "column": 128
                                                              }
                                                            },
                                                            "method": false,
                                                            "shorthand": true,
                                                            "computed": false,
                                                            "key": {
                                                              "type": "Identifier",
                                                              "start": 3201,
                                                              "end": 3216,
                                                              "loc": {
                                                                "start": {
                                                                  "line": 82,
                                                                  "column": 113
                                                                },
                                                                "end": {
                                                                  "line": 82,
                                                                  "column": 128
                                                                }
                                                              },
                                                              "name": "contextualizers"
                                                            },
                                                            "kind": "init",
                                                            "value": {
                                                              "type": "Identifier",
                                                              "start": 3201,
                                                              "end": 3216,
                                                              "loc": {
                                                                "start": {
                                                                  "line": 82,
                                                                  "column": 113
                                                                },
                                                                "end": {
                                                                  "line": 82,
                                                                  "column": 128
                                                                }
                                                              },
                                                              "name": "contextualizers"
                                                            }
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  "kind": "init"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      }
                                    ]
                                  }
                                }
                              ]
                            }
                          }
                        ]
                      },
                      "alternate": null
                    }
                  },
                  {
                    "type": "VariableDeclaration",
                    "start": 3236,
                    "end": 3300,
                    "loc": {
                      "start": {
                        "line": 85,
                        "column": 2
                      },
                      "end": {
                        "line": 85,
                        "column": 66
                      }
                    },
                    "declarations": [
                      {
                        "type": "VariableDeclarator",
                        "start": 3242,
                        "end": 3299,
                        "loc": {
                          "start": {
                            "line": 85,
                            "column": 8
                          },
                          "end": {
                            "line": 85,
                            "column": 65
                          }
                        },
                        "id": {
                          "type": "Identifier",
                          "start": 3242,
                          "end": 3251,
                          "loc": {
                            "start": {
                              "line": 85,
                              "column": 8
                            },
                            "end": {
                              "line": 85,
                              "column": 17
                            }
                          },
                          "name": "newErrors"
                        },
                        "init": {
                          "type": "ConditionalExpression",
                          "start": 3254,
                          "end": 3299,
                          "loc": {
                            "start": {
                              "line": 85,
                              "column": 20
                            },
                            "end": {
                              "line": 85,
                              "column": 65
                            }
                          },
                          "test": {
                            "type": "BinaryExpression",
                            "start": 3255,
                            "end": 3272,
                            "loc": {
                              "start": {
                                "line": 85,
                                "column": 21
                              },
                              "end": {
                                "line": 85,
                                "column": 38
                              }
                            },
                            "left": {
                              "type": "MemberExpression",
                              "start": 3255,
                              "end": 3268,
                              "loc": {
                                "start": {
                                  "line": 85,
                                  "column": 21
                                },
                                "end": {
                                  "line": 85,
                                  "column": 34
                                }
                              },
                              "object": {
                                "type": "Identifier",
                                "start": 3255,
                                "end": 3261,
                                "loc": {
                                  "start": {
                                    "line": 85,
                                    "column": 21
                                  },
                                  "end": {
                                    "line": 85,
                                    "column": 27
                                  }
                                },
                                "name": "errors"
                              },
                              "property": {
                                "type": "Identifier",
                                "start": 3262,
                                "end": 3268,
                                "loc": {
                                  "start": {
                                    "line": 85,
                                    "column": 28
                                  },
                                  "end": {
                                    "line": 85,
                                    "column": 34
                                  }
                                },
                                "name": "length"
                              },
                              "computed": false
                            },
                            "operator": ">",
                            "right": {
                              "type": "Literal",
                              "start": 3271,
                              "end": 3272,
                              "loc": {
                                "start": {
                                  "line": 85,
                                  "column": 37
                                },
                                "end": {
                                  "line": 85,
                                  "column": 38
                                }
                              },
                              "value": 0,
                              "rawValue": 0,
                              "raw": "0"
                            },
                            "parenthesizedExpression": true
                          },
                          "consequent": {
                            "type": "CallExpression",
                            "start": 3276,
                            "end": 3292,
                            "loc": {
                              "start": {
                                "line": 85,
                                "column": 42
                              },
                              "end": {
                                "line": 85,
                                "column": 58
                              }
                            },
                            "callee": {
                              "type": "MemberExpression",
                              "start": 3276,
                              "end": 3290,
                              "loc": {
                                "start": {
                                  "line": 85,
                                  "column": 42
                                },
                                "end": {
                                  "line": 85,
                                  "column": 56
                                }
                              },
                              "object": {
                                "type": "Identifier",
                                "start": 3276,
                                "end": 3282,
                                "loc": {
                                  "start": {
                                    "line": 85,
                                    "column": 42
                                  },
                                  "end": {
                                    "line": 85,
                                    "column": 48
                                  }
                                },
                                "name": "errors"
                              },
                              "property": {
                                "type": "Identifier",
                                "start": 3283,
                                "end": 3290,
                                "loc": {
                                  "start": {
                                    "line": 85,
                                    "column": 49
                                  },
                                  "end": {
                                    "line": 85,
                                    "column": 56
                                  }
                                },
                                "name": "reverse"
                              },
                              "computed": false
                            },
                            "arguments": []
                          },
                          "alternate": {
                            "type": "Literal",
                            "start": 3295,
                            "end": 3299,
                            "loc": {
                              "start": {
                                "line": 85,
                                "column": 61
                              },
                              "end": {
                                "line": 85,
                                "column": 65
                              }
                            },
                            "value": null,
                            "rawValue": null,
                            "raw": "null"
                          }
                        }
                      }
                    ],
                    "kind": "const"
                  },
                  {
                    "type": "ReturnStatement",
                    "start": 3303,
                    "end": 3418,
                    "loc": {
                      "start": {
                        "line": 86,
                        "column": 2
                      },
                      "end": {
                        "line": 86,
                        "column": 117
                      }
                    },
                    "argument": {
                      "type": "CallExpression",
                      "start": 3310,
                      "end": 3417,
                      "loc": {
                        "start": {
                          "line": 86,
                          "column": 9
                        },
                        "end": {
                          "line": 86,
                          "column": 116
                        }
                      },
                      "callee": {
                        "type": "Identifier",
                        "start": 3310,
                        "end": 3318,
                        "loc": {
                          "start": {
                            "line": 86,
                            "column": 9
                          },
                          "end": {
                            "line": 86,
                            "column": 17
                          }
                        },
                        "name": "callback"
                      },
                      "arguments": [
                        {
                          "type": "Literal",
                          "start": 3319,
                          "end": 3323,
                          "loc": {
                            "start": {
                              "line": 86,
                              "column": 18
                            },
                            "end": {
                              "line": 86,
                              "column": 22
                            }
                          },
                          "value": null,
                          "rawValue": null,
                          "raw": "null"
                        },
                        {
                          "type": "ObjectExpression",
                          "start": 3325,
                          "end": 3416,
                          "loc": {
                            "start": {
                              "line": 86,
                              "column": 24
                            },
                            "end": {
                              "line": 86,
                              "column": 115
                            }
                          },
                          "properties": [
                            {
                              "type": "Property",
                              "start": 3326,
                              "end": 3343,
                              "loc": {
                                "start": {
                                  "line": 86,
                                  "column": 25
                                },
                                "end": {
                                  "line": 86,
                                  "column": 42
                                }
                              },
                              "method": false,
                              "shorthand": false,
                              "computed": false,
                              "key": {
                                "type": "Identifier",
                                "start": 3326,
                                "end": 3332,
                                "loc": {
                                  "start": {
                                    "line": 86,
                                    "column": 25
                                  },
                                  "end": {
                                    "line": 86,
                                    "column": 31
                                  }
                                },
                                "name": "errors"
                              },
                              "value": {
                                "type": "Identifier",
                                "start": 3334,
                                "end": 3343,
                                "loc": {
                                  "start": {
                                    "line": 86,
                                    "column": 33
                                  },
                                  "end": {
                                    "line": 86,
                                    "column": 42
                                  }
                                },
                                "name": "newErrors"
                              },
                              "kind": "init"
                            },
                            {
                              "type": "Property",
                              "start": 3345,
                              "end": 3415,
                              "loc": {
                                "start": {
                                  "line": 86,
                                  "column": 44
                                },
                                "end": {
                                  "line": 86,
                                  "column": 114
                                }
                              },
                              "method": false,
                              "shorthand": false,
                              "computed": false,
                              "key": {
                                "type": "Identifier",
                                "start": 3345,
                                "end": 3354,
                                "loc": {
                                  "start": {
                                    "line": 86,
                                    "column": 44
                                  },
                                  "end": {
                                    "line": 86,
                                    "column": 53
                                  }
                                },
                                "name": "validTree"
                              },
                              "value": {
                                "type": "CallExpression",
                                "start": 3356,
                                "end": 3415,
                                "loc": {
                                  "start": {
                                    "line": 86,
                                    "column": 55
                                  },
                                  "end": {
                                    "line": 86,
                                    "column": 114
                                  }
                                },
                                "callee": {
                                  "type": "MemberExpression",
                                  "start": 3356,
                                  "end": 3369,
                                  "loc": {
                                    "start": {
                                      "line": 86,
                                      "column": 55
                                    },
                                    "end": {
                                      "line": 86,
                                      "column": 68
                                    }
                                  },
                                  "object": {
                                    "type": "Identifier",
                                    "start": 3356,
                                    "end": 3362,
                                    "loc": {
                                      "start": {
                                        "line": 86,
                                        "column": 55
                                      },
                                      "end": {
                                        "line": 86,
                                        "column": 61
                                      }
                                    },
                                    "name": "Object"
                                  },
                                  "property": {
                                    "type": "Identifier",
                                    "start": 3363,
                                    "end": 3369,
                                    "loc": {
                                      "start": {
                                        "line": 86,
                                        "column": 62
                                      },
                                      "end": {
                                        "line": 86,
                                        "column": 68
                                      }
                                    },
                                    "name": "assign"
                                  },
                                  "computed": false
                                },
                                "arguments": [
                                  {
                                    "type": "ObjectExpression",
                                    "start": 3370,
                                    "end": 3372,
                                    "loc": {
                                      "start": {
                                        "line": 86,
                                        "column": 69
                                      },
                                      "end": {
                                        "line": 86,
                                        "column": 71
                                      }
                                    },
                                    "properties": []
                                  },
                                  {
                                    "type": "Identifier",
                                    "start": 3374,
                                    "end": 3383,
                                    "loc": {
                                      "start": {
                                        "line": 86,
                                        "column": 73
                                      },
                                      "end": {
                                        "line": 86,
                                        "column": 82
                                      }
                                    },
                                    "name": "naiveTree"
                                  },
                                  {
                                    "type": "ObjectExpression",
                                    "start": 3385,
                                    "end": 3395,
                                    "loc": {
                                      "start": {
                                        "line": 86,
                                        "column": 84
                                      },
                                      "end": {
                                        "line": 86,
                                        "column": 94
                                      }
                                    },
                                    "properties": [
                                      {
                                        "type": "Property",
                                        "start": 3386,
                                        "end": 3394,
                                        "loc": {
                                          "start": {
                                            "line": 86,
                                            "column": 85
                                          },
                                          "end": {
                                            "line": 86,
                                            "column": 93
                                          }
                                        },
                                        "method": false,
                                        "shorthand": true,
                                        "computed": false,
                                        "key": {
                                          "type": "Identifier",
                                          "start": 3386,
                                          "end": 3394,
                                          "loc": {
                                            "start": {
                                              "line": 86,
                                              "column": 85
                                            },
                                            "end": {
                                              "line": 86,
                                              "column": 93
                                            }
                                          },
                                          "name": "metadata"
                                        },
                                        "kind": "init",
                                        "value": {
                                          "type": "Identifier",
                                          "start": 3386,
                                          "end": 3394,
                                          "loc": {
                                            "start": {
                                              "line": 86,
                                              "column": 85
                                            },
                                            "end": {
                                              "line": 86,
                                              "column": 93
                                            }
                                          },
                                          "name": "metadata"
                                        }
                                      }
                                    ]
                                  },
                                  {
                                    "type": "ObjectExpression",
                                    "start": 3397,
                                    "end": 3414,
                                    "loc": {
                                      "start": {
                                        "line": 86,
                                        "column": 96
                                      },
                                      "end": {
                                        "line": 86,
                                        "column": 113
                                      }
                                    },
                                    "properties": [
                                      {
                                        "type": "Property",
                                        "start": 3398,
                                        "end": 3413,
                                        "loc": {
                                          "start": {
                                            "line": 86,
                                            "column": 97
                                          },
                                          "end": {
                                            "line": 86,
                                            "column": 112
                                          }
                                        },
                                        "method": false,
                                        "shorthand": true,
                                        "computed": false,
                                        "key": {
                                          "type": "Identifier",
                                          "start": 3398,
                                          "end": 3413,
                                          "loc": {
                                            "start": {
                                              "line": 86,
                                              "column": 97
                                            },
                                            "end": {
                                              "line": 86,
                                              "column": 112
                                            }
                                          },
                                          "name": "contextualizers"
                                        },
                                        "kind": "init",
                                        "value": {
                                          "type": "Identifier",
                                          "start": 3398,
                                          "end": 3413,
                                          "loc": {
                                            "start": {
                                              "line": 86,
                                              "column": 97
                                            },
                                            "end": {
                                              "line": 86,
                                              "column": 112
                                            }
                                          },
                                          "name": "contextualizers"
                                        }
                                      }
                                    ]
                                  }
                                ]
                              },
                              "kind": "init"
                            }
                          ]
                        }
                      ]
                    }
                  }
                ]
              }
            },
            "leadingComments": null
          }
        ],
        "kind": "const",
        "leadingComments": [
          {
            "type": "Block",
            "value": "*\n * Resolves resource and metadata statements from a naive representation of a section\n * @param {Object} params - the cleaning params\n * @param {array} params.errors - the inherited parsing errors to pass along to the next step\n * @param {Object} params.validTree - the tree to clean\n * @param {Object} models - the models to parse the resources with\n * @param {function(error: error, results: {errors: array, validTree: Object})} callback - the possible error, a list of parsing minor errors, and the resulting tree\n ",
            "start": 189,
            "end": 713,
            "loc": {
              "start": {
                "line": 8,
                "column": 0
              },
              "end": {
                "line": 15,
                "column": 3
              }
            },
            "range": [
              189,
              713
            ]
          }
        ],
        "trailingComments": []
      },
      "specifiers": [],
      "source": null,
      "leadingComments": [
        {
          "type": "Block",
          "value": "*\n * Resolves resource and metadata statements from a naive representation of a section\n * @param {Object} params - the cleaning params\n * @param {array} params.errors - the inherited parsing errors to pass along to the next step\n * @param {Object} params.validTree - the tree to clean\n * @param {Object} models - the models to parse the resources with\n * @param {function(error: error, results: {errors: array, validTree: Object})} callback - the possible error, a list of parsing minor errors, and the resulting tree\n ",
          "start": 189,
          "end": 713,
          "loc": {
            "start": {
              "line": 8,
              "column": 0
            },
            "end": {
              "line": 15,
              "column": 3
            }
          },
          "range": [
            189,
            713
          ]
        }
      ]
    }
  ]
}