import { findNodeForProperty } from "../utils/grammar-utils.js";
function isNamed(e) {
	return typeof e.name == "string";
}
var DefaultNameProvider = class {
	getName(e) {
		if (isNamed(e)) return e.name;
	}
	getNameNode(n) {
		return findNodeForProperty(n.$cstNode, "name");
	}
};
export { DefaultNameProvider, isNamed };
