"use strict";

Object.defineProperty(exports, "__esModule", { value: true });

var Kind;
(function (Kind) {
  Kind[(Kind["SCALAR"] = 0)] = "SCALAR";
  Kind[(Kind["MAPPING"] = 1)] = "MAPPING";
  Kind[(Kind["MAP"] = 2)] = "MAP";
  Kind[(Kind["SEQ"] = 3)] = "SEQ";
})(Kind = exports.Kind || (exports.Kind = {}));

function newMap(mappings) {
  return {
    errors: [],
    startPosition: -1,
    endPosition: -1,
    mappings: mappings ? mappings : [],
    kind: Kind.MAP,
    parent: null,
  };
}
exports.newMap = newMap;