import { findNodeForProperty } from "./lib-utils-grammar-utils.js";
function isNamed(node) {
  return typeof node.name === "string";
}
class DefaultNameProvider {
  getName(node) {
    if (isNamed(node)) {
      return node.name;
    }
    return void 0;
  }
  getNameNode(node) {
    return findNodeForProperty(node.$cstNode, "name");
  }
}
export {
  DefaultNameProvider,
  isNamed
};
//# sourceMappingURL=lib-references-name-provider.js.map
