1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var ts = require("typescript");
|
4 | function isJsxAttribute(node) {
|
5 | return node && node.kind === ts.SyntaxKind.JsxAttribute;
|
6 | }
|
7 | exports.isJsxAttribute = isJsxAttribute;
|
8 | function isJsxSpreadAttribute(node) {
|
9 | return node && node.kind === ts.SyntaxKind.JsxSpreadAttribute;
|
10 | }
|
11 | exports.isJsxSpreadAttribute = isJsxSpreadAttribute;
|
12 | function isJsxExpression(node) {
|
13 | return node && node.kind === ts.SyntaxKind.JsxExpression;
|
14 | }
|
15 | exports.isJsxExpression = isJsxExpression;
|
16 | function isNumericLiteral(node) {
|
17 | return node && node.kind === ts.SyntaxKind.NumericLiteral;
|
18 | }
|
19 | exports.isNumericLiteral = isNumericLiteral;
|
20 | function isStringLiteral(node) {
|
21 | return node && node.kind === ts.SyntaxKind.StringLiteral;
|
22 | }
|
23 | exports.isStringLiteral = isStringLiteral;
|
24 | function isJsxElement(node) {
|
25 | return node && node.kind === ts.SyntaxKind.JsxElement;
|
26 | }
|
27 | exports.isJsxElement = isJsxElement;
|
28 | function isJsxSelfClosingElement(node) {
|
29 | return node && node.kind === ts.SyntaxKind.JsxSelfClosingElement;
|
30 | }
|
31 | exports.isJsxSelfClosingElement = isJsxSelfClosingElement;
|
32 | function isJsxOpeningElement(node) {
|
33 | return node && node.kind === ts.SyntaxKind.JsxOpeningElement;
|
34 | }
|
35 | exports.isJsxOpeningElement = isJsxOpeningElement;
|
36 | function isTrueKeyword(node) {
|
37 | return node && node.kind === ts.SyntaxKind.TrueKeyword;
|
38 | }
|
39 | exports.isTrueKeyword = isTrueKeyword;
|
40 | function isFalseKeyword(node) {
|
41 | return node && node.kind === ts.SyntaxKind.FalseKeyword;
|
42 | }
|
43 | exports.isFalseKeyword = isFalseKeyword;
|
44 | function isNullKeyword(node) {
|
45 | return node && node.kind === ts.SyntaxKind.NullKeyword;
|
46 | }
|
47 | exports.isNullKeyword = isNullKeyword;
|
48 | function isObject(value) {
|
49 | return value !== undefined && typeof value === 'object' && !Array.isArray(value);
|
50 | }
|
51 | exports.isObject = isObject;
|
52 | function isNamed(node) {
|
53 | return 'name' in node && node.name !== undefined;
|
54 | }
|
55 | exports.isNamed = isNamed;
|
56 |
|
\ | No newline at end of file |