source: trip-planner-front/node_modules/@babel/types/lib/definitions/experimental.js@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 3.4 KB
Line 
1"use strict";
2
3var _utils = require("./utils");
4
5(0, _utils.default)("ArgumentPlaceholder", {});
6(0, _utils.default)("BindExpression", {
7 visitor: ["object", "callee"],
8 aliases: ["Expression"],
9 fields: !process.env.BABEL_TYPES_8_BREAKING ? {
10 object: {
11 validate: Object.assign(() => {}, {
12 oneOfNodeTypes: ["Expression"]
13 })
14 },
15 callee: {
16 validate: Object.assign(() => {}, {
17 oneOfNodeTypes: ["Expression"]
18 })
19 }
20 } : {
21 object: {
22 validate: (0, _utils.assertNodeType)("Expression")
23 },
24 callee: {
25 validate: (0, _utils.assertNodeType)("Expression")
26 }
27 }
28});
29(0, _utils.default)("ImportAttribute", {
30 visitor: ["key", "value"],
31 fields: {
32 key: {
33 validate: (0, _utils.assertNodeType)("Identifier", "StringLiteral")
34 },
35 value: {
36 validate: (0, _utils.assertNodeType)("StringLiteral")
37 }
38 }
39});
40(0, _utils.default)("Decorator", {
41 visitor: ["expression"],
42 fields: {
43 expression: {
44 validate: (0, _utils.assertNodeType)("Expression")
45 }
46 }
47});
48(0, _utils.default)("DoExpression", {
49 visitor: ["body"],
50 builder: ["body", "async"],
51 aliases: ["Expression"],
52 fields: {
53 body: {
54 validate: (0, _utils.assertNodeType)("BlockStatement")
55 },
56 async: {
57 validate: (0, _utils.assertValueType)("boolean"),
58 default: false
59 }
60 }
61});
62(0, _utils.default)("ExportDefaultSpecifier", {
63 visitor: ["exported"],
64 aliases: ["ModuleSpecifier"],
65 fields: {
66 exported: {
67 validate: (0, _utils.assertNodeType)("Identifier")
68 }
69 }
70});
71(0, _utils.default)("RecordExpression", {
72 visitor: ["properties"],
73 aliases: ["Expression"],
74 fields: {
75 properties: {
76 validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ObjectProperty", "SpreadElement")))
77 }
78 }
79});
80(0, _utils.default)("TupleExpression", {
81 fields: {
82 elements: {
83 validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression", "SpreadElement"))),
84 default: []
85 }
86 },
87 visitor: ["elements"],
88 aliases: ["Expression"]
89});
90(0, _utils.default)("DecimalLiteral", {
91 builder: ["value"],
92 fields: {
93 value: {
94 validate: (0, _utils.assertValueType)("string")
95 }
96 },
97 aliases: ["Expression", "Pureish", "Literal", "Immutable"]
98});
99(0, _utils.default)("StaticBlock", {
100 visitor: ["body"],
101 fields: {
102 body: {
103 validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Statement")))
104 }
105 },
106 aliases: ["Scopable", "BlockParent"]
107});
108(0, _utils.default)("ModuleExpression", {
109 visitor: ["body"],
110 fields: {
111 body: {
112 validate: (0, _utils.assertNodeType)("Program")
113 }
114 },
115 aliases: ["Expression"]
116});
117(0, _utils.default)("TopicReference", {
118 aliases: ["Expression"]
119});
120(0, _utils.default)("PipelineTopicExpression", {
121 builder: ["expression"],
122 visitor: ["expression"],
123 fields: {
124 expression: {
125 validate: (0, _utils.assertNodeType)("Expression")
126 }
127 },
128 aliases: ["Expression"]
129});
130(0, _utils.default)("PipelineBareFunction", {
131 builder: ["callee"],
132 visitor: ["callee"],
133 fields: {
134 callee: {
135 validate: (0, _utils.assertNodeType)("Expression")
136 }
137 },
138 aliases: ["Expression"]
139});
140(0, _utils.default)("PipelinePrimaryTopicReference", {
141 aliases: ["Expression"]
142});
Note: See TracBrowser for help on using the repository browser.