function locStart(node) {
  const start = node.range?.[0] ?? node.start;

  /* c8 ignore next 3 */
  if (process.env.NODE_ENV !== "production" && !isIndex(start)) {
    throw new TypeError("Can't not locate node.");
  }

  // Handle nodes with decorators. They should start at the first decorator
  const firstDecorator = (node.declaration?.decorators ?? node.decorators)?.[0];
  if (firstDecorator) {
    return Math.min(locStart(firstDecorator), start);
  }

  return start;
}
@import {Node} from "./types/estree.js"