18 lines
435 B
JavaScript
18 lines
435 B
JavaScript
/// <reference types="./collate-node.d.ts" />
|
|
import { freeze } from '../util/object-utils.js';
|
|
import { IdentifierNode } from './identifier-node.js';
|
|
/**
|
|
* @internal
|
|
*/
|
|
export const CollateNode = freeze({
|
|
is(node) {
|
|
return node.kind === 'CollateNode';
|
|
},
|
|
create(collation) {
|
|
return freeze({
|
|
kind: 'CollateNode',
|
|
collation: IdentifierNode.create(collation),
|
|
});
|
|
},
|
|
});
|