"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const grammarUtils = require("./lib-utils-grammar-utils.cjs");
function isNamed(node) {
  return typeof node.name === "string";
}
class DefaultNameProvider {
  getName(node) {
    if (isNamed(node)) {
      return node.name;
    }
    return void 0;
  }
  getNameNode(node) {
    return grammarUtils.findNodeForProperty(node.$cstNode, "name");
  }
}
exports.DefaultNameProvider = DefaultNameProvider;
exports.isNamed = isNamed;
//# sourceMappingURL=lib-references-name-provider.cjs.map
