main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
659 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | exports.__esModule = true;
|
---|
| 4 | exports.isPosition = exports.isPoint = exports.isParseResult = exports.isNodeType = exports.isLiteral = void 0;
|
---|
| 5 | const isNodeType = (type, node) => node != null && typeof node === 'object' && 'type' in node && node.type === type;
|
---|
| 6 | exports.isNodeType = isNodeType;
|
---|
| 7 | const isLiteral = node => isNodeType('literal', node);
|
---|
| 8 | exports.isLiteral = isLiteral;
|
---|
| 9 | const isPosition = node => isNodeType('position', node);
|
---|
| 10 | exports.isPosition = isPosition;
|
---|
| 11 | const isPoint = node => isNodeType('point', node);
|
---|
| 12 | exports.isPoint = isPoint;
|
---|
| 13 | const isParseResult = node => isNodeType('parseResult', node);
|
---|
| 14 | exports.isParseResult = isParseResult; |
---|
Note:
See
TracBrowser
for help on using the repository browser.