We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c25a4e5 commit 6732b14Copy full SHA for 6732b14
dist/module.js
@@ -0,0 +1,34 @@
1
+var _ast = {
2
+
3
+ initialize: function() {
4
+ this._nodes = [];
5
+ this._node = {};
6
+ this._stash = [];
7
+ },
8
9
+ set: function(props) {
10
+ for (var k in props) this._node[k] = props[k];
11
+ return this._node;
12
13
14
+ node: function(obj) {
15
+ if (arguments.length) this._node = obj;
16
17
18
19
+ push: function() {
20
+ this._nodes.push(this._node);
21
22
23
24
+ unshift: function() {
25
+ this._nodes.unshift(this._node);
26
27
28
29
+ yield: function() {
30
+ var _nodes = this._nodes;
31
+ this.initialize();
32
+ return _nodes;
33
+ }
34
+};
0 commit comments