esperanto-source 0.6.9 → 0.6.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/esperanto/source/version.rb +1 -1
- data/vendor/acorn.js +2626 -2502
- data/vendor/estraverse.js +14 -2
- metadata +2 -2
data/vendor/estraverse.js
CHANGED
@@ -37,7 +37,7 @@
|
|
37
37
|
} else {
|
38
38
|
factory((root.estraverse = {}));
|
39
39
|
}
|
40
|
-
}(this, function (exports) {
|
40
|
+
}(this, function clone(exports) {
|
41
41
|
'use strict';
|
42
42
|
|
43
43
|
var Syntax,
|
@@ -156,6 +156,7 @@
|
|
156
156
|
ArrayExpression: 'ArrayExpression',
|
157
157
|
ArrayPattern: 'ArrayPattern',
|
158
158
|
ArrowFunctionExpression: 'ArrowFunctionExpression',
|
159
|
+
AwaitExpression: 'AwaitExpression', // CAUTION: It's deferred to ES7.
|
159
160
|
BlockStatement: 'BlockStatement',
|
160
161
|
BinaryExpression: 'BinaryExpression',
|
161
162
|
BreakStatement: 'BreakStatement',
|
@@ -224,6 +225,7 @@
|
|
224
225
|
ArrayExpression: ['elements'],
|
225
226
|
ArrayPattern: ['elements'],
|
226
227
|
ArrowFunctionExpression: ['params', 'defaults', 'rest', 'body'],
|
228
|
+
AwaitExpression: ['argument'], // CAUTION: It's deferred to ES7.
|
227
229
|
BlockStatement: ['body'],
|
228
230
|
BinaryExpression: ['left', 'right'],
|
229
231
|
BreakStatement: ['label'],
|
@@ -356,6 +358,13 @@
|
|
356
358
|
return result;
|
357
359
|
};
|
358
360
|
|
361
|
+
// API:
|
362
|
+
// return type of current node
|
363
|
+
Controller.prototype.type = function () {
|
364
|
+
var node = this.current();
|
365
|
+
return node.type || this.__current.wrap;
|
366
|
+
};
|
367
|
+
|
359
368
|
// API:
|
360
369
|
// return array of parent elements
|
361
370
|
Controller.prototype.parents = function parents() {
|
@@ -819,7 +828,7 @@
|
|
819
828
|
return tree;
|
820
829
|
}
|
821
830
|
|
822
|
-
exports.version = '1.
|
831
|
+
exports.version = '1.9.2';
|
823
832
|
exports.Syntax = Syntax;
|
824
833
|
exports.traverse = traverse;
|
825
834
|
exports.replace = replace;
|
@@ -827,5 +836,8 @@
|
|
827
836
|
exports.VisitorKeys = VisitorKeys;
|
828
837
|
exports.VisitorOption = VisitorOption;
|
829
838
|
exports.Controller = Controller;
|
839
|
+
exports.cloneEnvironment = function () { return clone({}); };
|
840
|
+
|
841
|
+
return exports;
|
830
842
|
}));
|
831
843
|
/* vim: set sw=4 ts=4 et tw=80 : */
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: esperanto-source
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.9
|
4
|
+
version: 0.6.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryunosuke SATO
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|