source: node_modules/@swagger-api/apidom-ast/cjs/predicates.cjs

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
Line 
1"use strict";
2
3exports.__esModule = true;
4exports.isPosition = exports.isPoint = exports.isParseResult = exports.isNodeType = exports.isLiteral = void 0;
5const isNodeType = (type, node) => node != null && typeof node === 'object' && 'type' in node && node.type === type;
6exports.isNodeType = isNodeType;
7const isLiteral = node => isNodeType('literal', node);
8exports.isLiteral = isLiteral;
9const isPosition = node => isNodeType('position', node);
10exports.isPosition = isPosition;
11const isPoint = node => isNodeType('point', node);
12exports.isPoint = isPoint;
13const isParseResult = node => isNodeType('parseResult', node);
14exports.isParseResult = isParseResult;
Note: See TracBrowser for help on using the repository browser.