es6_tilt 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +41 -0
- data/Gemfile +16 -0
- data/LICENSE +22 -0
- data/es6_tilt.gemspec +26 -0
- data/lib/es6_tilt.rb +2 -1
- data/lib/es6_tilt/version.rb +1 -1
- data/test/dummy/log/test.log +238 -0
- data/test/dummy/node_modules/acorn/AUTHORS +43 -0
- data/test/dummy/node_modules/acorn/LICENSE +19 -0
- data/test/dummy/node_modules/acorn/README.md +396 -0
- data/test/dummy/node_modules/acorn/bin/acorn +71 -0
- data/test/dummy/node_modules/acorn/bin/build-acorn.js +82 -0
- data/test/dummy/node_modules/acorn/bin/generate-identifier-regex.js +47 -0
- data/test/dummy/node_modules/acorn/bin/update_authors.sh +6 -0
- data/test/dummy/node_modules/acorn/dist/acorn.js +3330 -0
- data/test/dummy/node_modules/acorn/dist/acorn_loose.js +1300 -0
- data/test/dummy/node_modules/acorn/dist/walk.js +377 -0
- data/test/dummy/node_modules/acorn/package.json +212 -0
- data/test/dummy/node_modules/acorn/src/bin/acorn.js +60 -0
- data/test/dummy/node_modules/acorn/src/expression.js +703 -0
- data/test/dummy/node_modules/acorn/src/identifier.js +90 -0
- data/test/dummy/node_modules/acorn/src/index.js +67 -0
- data/test/dummy/node_modules/acorn/src/location.js +24 -0
- data/test/dummy/node_modules/acorn/src/locutil.js +42 -0
- data/test/dummy/node_modules/acorn/src/loose/acorn_loose.js +0 -0
- data/test/dummy/node_modules/acorn/src/loose/expression.js +501 -0
- data/test/dummy/node_modules/acorn/src/loose/index.js +50 -0
- data/test/dummy/node_modules/acorn/src/loose/parseutil.js +1 -0
- data/test/dummy/node_modules/acorn/src/loose/state.js +160 -0
- data/test/dummy/node_modules/acorn/src/loose/statement.js +420 -0
- data/test/dummy/node_modules/acorn/src/loose/tokenize.js +108 -0
- data/test/dummy/node_modules/acorn/src/lval.js +215 -0
- data/test/dummy/node_modules/acorn/src/node.js +50 -0
- data/test/dummy/node_modules/acorn/src/options.js +121 -0
- data/test/dummy/node_modules/acorn/src/parseutil.js +102 -0
- data/test/dummy/node_modules/acorn/src/state.js +104 -0
- data/test/dummy/node_modules/acorn/src/statement.js +618 -0
- data/test/dummy/node_modules/acorn/src/tokencontext.js +109 -0
- data/test/dummy/node_modules/acorn/src/tokenize.js +682 -0
- data/test/dummy/node_modules/acorn/src/tokentype.js +147 -0
- data/test/dummy/node_modules/acorn/src/util.js +9 -0
- data/test/dummy/node_modules/acorn/src/walk/index.js +340 -0
- data/test/dummy/node_modules/acorn/src/whitespace.js +12 -0
- data/test/dummy/node_modules/amdefine/LICENSE +58 -0
- data/test/dummy/node_modules/amdefine/README.md +171 -0
- data/test/dummy/node_modules/amdefine/amdefine.js +301 -0
- data/test/dummy/node_modules/amdefine/intercept.js +36 -0
- data/test/dummy/node_modules/amdefine/package.json +75 -0
- data/test/dummy/node_modules/ansi-regex/index.js +4 -0
- data/test/dummy/node_modules/ansi-regex/license +21 -0
- data/test/dummy/node_modules/ansi-regex/package.json +112 -0
- data/test/dummy/node_modules/ansi-regex/readme.md +31 -0
- data/test/dummy/node_modules/ansi-styles/index.js +65 -0
- data/test/dummy/node_modules/ansi-styles/license +21 -0
- data/test/dummy/node_modules/ansi-styles/package.json +105 -0
- data/test/dummy/node_modules/ansi-styles/readme.md +86 -0
- data/test/dummy/node_modules/asap/CHANGES.md +64 -0
- data/test/dummy/node_modules/asap/LICENSE.md +21 -0
- data/test/dummy/node_modules/asap/README.md +237 -0
- data/test/dummy/node_modules/asap/asap.js +65 -0
- data/test/dummy/node_modules/asap/browser-asap.js +66 -0
- data/test/dummy/node_modules/asap/browser-raw.js +220 -0
- data/test/dummy/node_modules/asap/package.json +110 -0
- data/test/dummy/node_modules/asap/raw.js +101 -0
- data/test/dummy/node_modules/ast-types/LICENSE +20 -0
- data/test/dummy/node_modules/ast-types/README.md +488 -0
- data/test/dummy/node_modules/ast-types/def/babel.js +105 -0
- data/test/dummy/node_modules/ast-types/def/core.js +359 -0
- data/test/dummy/node_modules/ast-types/def/e4x.js +84 -0
- data/test/dummy/node_modules/ast-types/def/es6.js +217 -0
- data/test/dummy/node_modules/ast-types/def/es7.js +36 -0
- data/test/dummy/node_modules/ast-types/def/esprima.js +96 -0
- data/test/dummy/node_modules/ast-types/def/fb-harmony.js +327 -0
- data/test/dummy/node_modules/ast-types/def/mozilla.js +49 -0
- data/test/dummy/node_modules/ast-types/lib/equiv.js +184 -0
- data/test/dummy/node_modules/ast-types/lib/node-path.js +474 -0
- data/test/dummy/node_modules/ast-types/lib/path-visitor.js +419 -0
- data/test/dummy/node_modules/ast-types/lib/path.js +366 -0
- data/test/dummy/node_modules/ast-types/lib/scope.js +295 -0
- data/test/dummy/node_modules/ast-types/lib/shared.js +41 -0
- data/test/dummy/node_modules/ast-types/lib/types.js +828 -0
- data/test/dummy/node_modules/ast-types/main.js +33 -0
- data/test/dummy/node_modules/ast-types/package.json +94 -0
- data/test/dummy/node_modules/babel-code-frame/README.md +32 -0
- data/test/dummy/node_modules/babel-code-frame/lib/index.js +146 -0
- data/test/dummy/node_modules/babel-code-frame/package.json +93 -0
- data/test/dummy/node_modules/babel-code-frame/test/index.js +5 -0
- data/test/dummy/node_modules/babel-core/README.md +24 -0
- data/test/dummy/node_modules/babel-core/index.js +1 -0
- data/test/dummy/node_modules/babel-core/lib/api/browser.js +108 -0
- data/test/dummy/node_modules/babel-core/lib/api/node.js +117 -0
- data/test/dummy/node_modules/babel-core/lib/helpers/merge.js +46 -0
- data/test/dummy/node_modules/babel-core/lib/helpers/normalize-ast.js +29 -0
- data/test/dummy/node_modules/babel-core/lib/helpers/resolve.js +34 -0
- data/test/dummy/node_modules/babel-core/lib/store.js +41 -0
- data/test/dummy/node_modules/babel-core/lib/tools/build-external-helpers.js +106 -0
- data/test/dummy/node_modules/babel-core/lib/transformation/file/index.js +680 -0
- data/test/dummy/node_modules/babel-core/lib/transformation/file/logger.js +74 -0
- data/test/dummy/node_modules/babel-core/lib/transformation/file/metadata.js +182 -0
- data/test/dummy/node_modules/babel-core/lib/transformation/file/options/config.js +183 -0
- data/test/dummy/node_modules/babel-core/lib/transformation/file/options/index.js +40 -0
- data/test/dummy/node_modules/babel-core/lib/transformation/file/options/option-manager.js +430 -0
- data/test/dummy/node_modules/babel-core/lib/transformation/file/options/parsers.js +36 -0
- data/test/dummy/node_modules/babel-core/lib/transformation/internal-plugins/block-hoist.js +56 -0
- data/test/dummy/node_modules/babel-core/lib/transformation/internal-plugins/shadow-functions.js +84 -0
- data/test/dummy/node_modules/babel-core/lib/transformation/pipeline.js +65 -0
- data/test/dummy/node_modules/babel-core/lib/transformation/plugin-pass.js +81 -0
- data/test/dummy/node_modules/babel-core/lib/transformation/plugin.js +157 -0
- data/test/dummy/node_modules/babel-core/lib/util.js +213 -0
- data/test/dummy/node_modules/babel-core/node_modules/source-map/README.md +729 -0
- data/test/dummy/node_modules/babel-core/node_modules/source-map/dist/source-map.debug.js +3006 -0
- data/test/dummy/node_modules/babel-core/node_modules/source-map/dist/source-map.js +3005 -0
- data/test/dummy/node_modules/babel-core/node_modules/source-map/dist/source-map.min.js +2 -0
- data/test/dummy/node_modules/babel-core/node_modules/source-map/dist/source-map.min.js.map +1 -0
- data/test/dummy/node_modules/babel-core/node_modules/source-map/lib/array-set.js +104 -0
- data/test/dummy/node_modules/babel-core/node_modules/source-map/lib/base64-vlq.js +141 -0
- data/test/dummy/node_modules/babel-core/node_modules/source-map/lib/base64.js +68 -0
- data/test/dummy/node_modules/babel-core/node_modules/source-map/lib/binary-search.js +112 -0
- data/test/dummy/node_modules/babel-core/node_modules/source-map/lib/mapping-list.js +80 -0
- data/test/dummy/node_modules/babel-core/node_modules/source-map/lib/quick-sort.js +115 -0
- data/test/dummy/node_modules/babel-core/node_modules/source-map/lib/source-map-consumer.js +1082 -0
- data/test/dummy/node_modules/babel-core/node_modules/source-map/lib/source-map-generator.js +396 -0
- data/test/dummy/node_modules/babel-core/node_modules/source-map/lib/source-node.js +408 -0
- data/test/dummy/node_modules/babel-core/node_modules/source-map/lib/util.js +369 -0
- data/test/dummy/node_modules/babel-core/node_modules/source-map/package.json +239 -0
- data/test/dummy/node_modules/babel-core/node_modules/source-map/source-map.js +8 -0
- data/test/dummy/node_modules/babel-core/package.json +127 -0
- data/test/dummy/node_modules/babel-core/register.js +2 -0
- data/test/dummy/node_modules/babel-generator/README.md +21 -0
- data/test/dummy/node_modules/babel-generator/lib/buffer.js +353 -0
- data/test/dummy/node_modules/babel-generator/lib/generators/base.js +52 -0
- data/test/dummy/node_modules/babel-generator/lib/generators/classes.js +82 -0
- data/test/dummy/node_modules/babel-generator/lib/generators/expressions.js +272 -0
- data/test/dummy/node_modules/babel-generator/lib/generators/flow.js +310 -0
- data/test/dummy/node_modules/babel-generator/lib/generators/jsx.js +101 -0
- data/test/dummy/node_modules/babel-generator/lib/generators/methods.js +107 -0
- data/test/dummy/node_modules/babel-generator/lib/generators/modules.js +159 -0
- data/test/dummy/node_modules/babel-generator/lib/generators/statements.js +294 -0
- data/test/dummy/node_modules/babel-generator/lib/generators/template-literals.js +35 -0
- data/test/dummy/node_modules/babel-generator/lib/generators/types.js +160 -0
- data/test/dummy/node_modules/babel-generator/lib/index.js +171 -0
- data/test/dummy/node_modules/babel-generator/lib/node/index.js +128 -0
- data/test/dummy/node_modules/babel-generator/lib/node/parentheses.js +223 -0
- data/test/dummy/node_modules/babel-generator/lib/node/whitespace.js +242 -0
- data/test/dummy/node_modules/babel-generator/lib/position.js +54 -0
- data/test/dummy/node_modules/babel-generator/lib/printer.js +376 -0
- data/test/dummy/node_modules/babel-generator/lib/source-map.js +88 -0
- data/test/dummy/node_modules/babel-generator/lib/whitespace.js +133 -0
- data/test/dummy/node_modules/babel-generator/node_modules/source-map/README.md +729 -0
- data/test/dummy/node_modules/babel-generator/node_modules/source-map/dist/source-map.debug.js +3006 -0
- data/test/dummy/node_modules/babel-generator/node_modules/source-map/dist/source-map.js +3005 -0
- data/test/dummy/node_modules/babel-generator/node_modules/source-map/dist/source-map.min.js +2 -0
- data/test/dummy/node_modules/babel-generator/node_modules/source-map/dist/source-map.min.js.map +1 -0
- data/test/dummy/node_modules/babel-generator/node_modules/source-map/lib/array-set.js +104 -0
- data/test/dummy/node_modules/babel-generator/node_modules/source-map/lib/base64-vlq.js +141 -0
- data/test/dummy/node_modules/babel-generator/node_modules/source-map/lib/base64.js +68 -0
- data/test/dummy/node_modules/babel-generator/node_modules/source-map/lib/binary-search.js +112 -0
- data/test/dummy/node_modules/babel-generator/node_modules/source-map/lib/mapping-list.js +80 -0
- data/test/dummy/node_modules/babel-generator/node_modules/source-map/lib/quick-sort.js +115 -0
- data/test/dummy/node_modules/babel-generator/node_modules/source-map/lib/source-map-consumer.js +1082 -0
- data/test/dummy/node_modules/babel-generator/node_modules/source-map/lib/source-map-generator.js +396 -0
- data/test/dummy/node_modules/babel-generator/node_modules/source-map/lib/source-node.js +408 -0
- data/test/dummy/node_modules/babel-generator/node_modules/source-map/lib/util.js +369 -0
- data/test/dummy/node_modules/babel-generator/node_modules/source-map/package.json +239 -0
- data/test/dummy/node_modules/babel-generator/node_modules/source-map/source-map.js +8 -0
- data/test/dummy/node_modules/babel-generator/package.json +101 -0
- data/test/dummy/node_modules/babel-helper-call-delegate/README.md +5 -0
- data/test/dummy/node_modules/babel-helper-call-delegate/lib/index.js +78 -0
- data/test/dummy/node_modules/babel-helper-call-delegate/package.json +85 -0
- data/test/dummy/node_modules/babel-helper-define-map/README.md +5 -0
- data/test/dummy/node_modules/babel-helper-define-map/lib/index.js +160 -0
- data/test/dummy/node_modules/babel-helper-define-map/package.json +86 -0
- data/test/dummy/node_modules/babel-helper-function-name/README.md +5 -0
- data/test/dummy/node_modules/babel-helper-function-name/lib/index.js +161 -0
- data/test/dummy/node_modules/babel-helper-function-name/package.json +88 -0
- data/test/dummy/node_modules/babel-helper-get-function-arity/README.md +5 -0
- data/test/dummy/node_modules/babel-helper-get-function-arity/lib/index.js +22 -0
- data/test/dummy/node_modules/babel-helper-get-function-arity/package.json +84 -0
- data/test/dummy/node_modules/babel-helper-hoist-variables/README.md +5 -0
- data/test/dummy/node_modules/babel-helper-hoist-variables/lib/index.js +70 -0
- data/test/dummy/node_modules/babel-helper-hoist-variables/package.json +83 -0
- data/test/dummy/node_modules/babel-helper-optimise-call-expression/README.md +5 -0
- data/test/dummy/node_modules/babel-helper-optimise-call-expression/lib/index.js +20 -0
- data/test/dummy/node_modules/babel-helper-optimise-call-expression/package.json +84 -0
- data/test/dummy/node_modules/babel-helper-regex/README.md +5 -0
- data/test/dummy/node_modules/babel-helper-regex/lib/index.js +30 -0
- data/test/dummy/node_modules/babel-helper-regex/package.json +85 -0
- data/test/dummy/node_modules/babel-helper-replace-supers/README.md +5 -0
- data/test/dummy/node_modules/babel-helper-replace-supers/lib/index.js +255 -0
- data/test/dummy/node_modules/babel-helper-replace-supers/package.json +88 -0
- data/test/dummy/node_modules/babel-helpers/README.md +21 -0
- data/test/dummy/node_modules/babel-helpers/lib/helpers.js +69 -0
- data/test/dummy/node_modules/babel-helpers/lib/index.js +28 -0
- data/test/dummy/node_modules/babel-helpers/package.json +88 -0
- data/test/dummy/node_modules/babel-messages/README.md +18 -0
- data/test/dummy/node_modules/babel-messages/lib/index.js +94 -0
- data/test/dummy/node_modules/babel-messages/package.json +89 -0
- data/test/dummy/node_modules/babel-plugin-check-es2015-constants/README.md +39 -0
- data/test/dummy/node_modules/babel-plugin-check-es2015-constants/lib/index.js +41 -0
- data/test/dummy/node_modules/babel-plugin-check-es2015-constants/package.json +87 -0
- data/test/dummy/node_modules/babel-plugin-external-helpers-2/README.md +33 -0
- data/test/dummy/node_modules/babel-plugin-external-helpers-2/lib/index.js +15 -0
- data/test/dummy/node_modules/babel-plugin-external-helpers-2/package.json +87 -0
- data/test/dummy/node_modules/babel-plugin-syntax-async-functions/README.md +35 -0
- data/test/dummy/node_modules/babel-plugin-syntax-async-functions/lib/index.js +13 -0
- data/test/dummy/node_modules/babel-plugin-syntax-async-functions/package.json +87 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-arrow-functions/README.md +35 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-arrow-functions/lib/index.js +35 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-arrow-functions/package.json +87 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-block-scoped-functions/README.md +35 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-block-scoped-functions/lib/index.js +62 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-block-scoped-functions/package.json +87 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-block-scoping/README.md +35 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js +682 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-block-scoping/lib/tdz.js +97 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-block-scoping/package.json +92 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-classes/README.md +35 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-classes/lib/index.js +69 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-classes/lib/lib/memoise-decorators.js +56 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-classes/lib/loose.js +64 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-classes/lib/vanilla.js +600 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-classes/package.json +95 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-computed-properties/README.md +35 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-computed-properties/lib/index.js +217 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-computed-properties/package.json +89 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-destructuring/README.md +35 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-destructuring/lib/index.js +526 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-destructuring/package.json +87 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-for-of/README.md +35 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-for-of/lib/index.js +200 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-for-of/package.json +88 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-function-name/README.md +35 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-function-name/lib/index.js +66 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-function-name/package.json +89 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-literals/README.md +35 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-literals/lib/index.js +29 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-literals/package.json +87 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-modules-commonjs/README.md +33 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-modules-commonjs/lib/index.js +439 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-modules-commonjs/package.json +90 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-object-super/README.md +35 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-object-super/lib/index.js +80 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-object-super/package.json +88 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-parameters/README.md +35 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-parameters/lib/default.js +176 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-parameters/lib/destructuring.js +31 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-parameters/lib/index.js +54 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-parameters/lib/rest.js +252 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-parameters/package.json +92 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-shorthand-properties/README.md +35 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-shorthand-properties/lib/index.js +33 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-shorthand-properties/package.json +88 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-spread/README.md +35 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-spread/lib/index.js +150 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-spread/package.json +87 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-sticky-regex/README.md +35 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-sticky-regex/lib/index.js +29 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-sticky-regex/package.json +89 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-template-literals/README.md +35 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-template-literals/lib/index.js +132 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-template-literals/package.json +87 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-typeof-symbol/README.md +33 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-typeof-symbol/lib/index.js +47 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-typeof-symbol/package.json +87 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-unicode-regex/README.md +35 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-unicode-regex/lib/index.js +31 -0
- data/test/dummy/node_modules/babel-plugin-transform-es2015-unicode-regex/package.json +89 -0
- data/test/dummy/node_modules/babel-plugin-transform-regenerator/LICENSE +14 -0
- data/test/dummy/node_modules/babel-plugin-transform-regenerator/PATENTS +33 -0
- data/test/dummy/node_modules/babel-plugin-transform-regenerator/README.md +1 -0
- data/test/dummy/node_modules/babel-plugin-transform-regenerator/lib/emit.js +996 -0
- data/test/dummy/node_modules/babel-plugin-transform-regenerator/lib/hoist.js +141 -0
- data/test/dummy/node_modules/babel-plugin-transform-regenerator/lib/index.js +19 -0
- data/test/dummy/node_modules/babel-plugin-transform-regenerator/lib/leap.js +185 -0
- data/test/dummy/node_modules/babel-plugin-transform-regenerator/lib/meta.js +113 -0
- data/test/dummy/node_modules/babel-plugin-transform-regenerator/lib/util.js +29 -0
- data/test/dummy/node_modules/babel-plugin-transform-regenerator/lib/visit.js +250 -0
- data/test/dummy/node_modules/babel-plugin-transform-regenerator/package.json +93 -0
- data/test/dummy/node_modules/babel-plugin-transform-regenerator/src/emit.js +1184 -0
- data/test/dummy/node_modules/babel-plugin-transform-regenerator/src/hoist.js +148 -0
- data/test/dummy/node_modules/babel-plugin-transform-regenerator/src/index.js +13 -0
- data/test/dummy/node_modules/babel-plugin-transform-regenerator/src/leap.js +174 -0
- data/test/dummy/node_modules/babel-plugin-transform-regenerator/src/meta.js +103 -0
- data/test/dummy/node_modules/babel-plugin-transform-regenerator/src/util.js +23 -0
- data/test/dummy/node_modules/babel-plugin-transform-regenerator/src/visit.js +264 -0
- data/test/dummy/node_modules/babel-plugin-transform-strict-mode/README.md +35 -0
- data/test/dummy/node_modules/babel-plugin-transform-strict-mode/lib/index.js +44 -0
- data/test/dummy/node_modules/babel-plugin-transform-strict-mode/package.json +88 -0
- data/test/dummy/node_modules/babel-preset-es2015-rollup/README.md +3 -0
- data/test/dummy/node_modules/babel-preset-es2015-rollup/index.js +11 -0
- data/test/dummy/node_modules/babel-preset-es2015-rollup/package.json +59 -0
- data/test/dummy/node_modules/babel-preset-es2015/README.md +35 -0
- data/test/dummy/node_modules/babel-preset-es2015/index.js +24 -0
- data/test/dummy/node_modules/babel-preset-es2015/package.json +108 -0
- data/test/dummy/node_modules/babel-register/README.md +1 -0
- data/test/dummy/node_modules/babel-register/lib/browser.js +9 -0
- data/test/dummy/node_modules/babel-register/lib/cache.js +73 -0
- data/test/dummy/node_modules/babel-register/lib/node.js +182 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/LICENSE.md +21 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/README.md +165 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/amd-test/browser-source-map-support.js +89 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/amd-test/index.html +6 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/amd-test/require.js +36 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/amd-test/script.coffee +13 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/amd-test/script.js +24 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/amd-test/script.map +10 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/browser-source-map-support.js +89 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/browser-test/index.html +6 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/browser-test/script.coffee +12 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/browser-test/script.js +25 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/browser-test/script.map +10 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/build.js +69 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/header-test/index.html +6 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/header-test/script.coffee +12 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/header-test/script.js +25 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/header-test/script.map +10 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/header-test/server.js +45 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/package.json +76 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/source-map-support.js +386 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map-support/test.js +384 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/CHANGELOG.md +121 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/LICENSE +28 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/Makefile.dryice.js +166 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/README.md +434 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/build/assert-shim.js +56 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/build/mini-require.js +152 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/build/prefix-source-map.jsm +20 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/build/prefix-utils.jsm +18 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/build/suffix-browser.js +8 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/build/suffix-source-map.jsm +6 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/build/suffix-utils.jsm +21 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/build/test-prefix.js +8 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/build/test-suffix.js +3 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/lib/source-map.js +8 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/lib/source-map/array-set.js +97 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/lib/source-map/base64-vlq.js +144 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/lib/source-map/base64.js +42 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/lib/source-map/binary-search.js +81 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/lib/source-map/source-map-consumer.js +478 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/lib/source-map/source-map-generator.js +380 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/lib/source-map/source-node.js +371 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/lib/source-map/util.js +205 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/package.json +163 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/test/run-tests.js +62 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/test/source-map/test-api.js +26 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/test/source-map/test-array-set.js +104 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/test/source-map/test-base64-vlq.js +24 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/test/source-map/test-base64.js +35 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/test/source-map/test-dog-fooding.js +72 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/test/source-map/test-source-map-consumer.js +451 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/test/source-map/test-source-map-generator.js +417 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/test/source-map/test-source-node.js +365 -0
- data/test/dummy/node_modules/babel-register/node_modules/source-map/test/source-map/util.js +161 -0
- data/test/dummy/node_modules/babel-register/package.json +95 -0
- data/test/dummy/node_modules/babel-register/src/browser.js +3 -0
- data/test/dummy/node_modules/babel-register/src/cache.js +53 -0
- data/test/dummy/node_modules/babel-register/src/node.js +148 -0
- data/test/dummy/node_modules/babel-runtime/README.md +5 -0
- data/test/dummy/node_modules/babel-runtime/core-js.js +4 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/concat.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/copy-within.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/entries.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/every.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/fill.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/filter.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/find-index.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/find.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/for-each.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/from.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/includes.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/index-of.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/join.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/keys.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/last-index-of.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/map.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/of.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/pop.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/push.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/reduce-right.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/reduce.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/reverse.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/shift.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/slice.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/some.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/sort.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/splice.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/turn.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/unshift.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/array/values.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/clear-immediate.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/date/add-locale.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/date/format-utc.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/date/format.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/function/only.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/function/part.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/get-iterator.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/is-iterable.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/json/stringify.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/map.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/math/acosh.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/math/asinh.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/math/atanh.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/math/cbrt.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/math/clz32.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/math/cosh.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/math/expm1.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/math/fround.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/math/hypot.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/math/imul.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/math/log10.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/math/log1p.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/math/log2.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/math/pot.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/math/sign.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/math/sinh.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/math/tanh.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/math/trunc.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/number/epsilon.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/number/is-finite.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/number/is-integer.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/number/is-nan.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/number/is-safe-integer.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/number/max-safe-integer.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/number/min-safe-integer.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/number/parse-float.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/number/parse-int.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/number/random.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/assign.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/classof.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/create.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/define-properties.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/define-property.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/define.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/entries.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/freeze.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/get-own-property-descriptor.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/get-own-property-descriptors.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/get-own-property-names.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/get-own-property-symbols.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/get-prototype-of.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/index.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/is-extensible.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/is-frozen.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/is-object.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/is-sealed.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/is.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/keys.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/make.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/prevent-extensions.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/seal.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/set-prototype-of.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/object/values.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/promise.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/reflect/apply.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/reflect/construct.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/reflect/define-property.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/reflect/delete-property.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/reflect/enumerate.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/reflect/get-own-property-descriptor.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/reflect/get-prototype-of.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/reflect/get.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/reflect/has.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/reflect/is-extensible.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/reflect/own-keys.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/reflect/prevent-extensions.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/reflect/set-prototype-of.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/reflect/set.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/regexp/escape.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/set-immediate.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/set.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/string/at.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/string/code-point-at.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/string/ends-with.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/string/escape-html.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/string/from-code-point.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/string/includes.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/string/pad-left.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/string/pad-right.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/string/raw.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/string/repeat.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/string/starts-with.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/string/trim-left.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/string/trim-right.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/string/trim.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/string/unescape-html.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/symbol.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/symbol/for.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/symbol/has-instance.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/symbol/is-concat-spreadable.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/symbol/iterator.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/symbol/key-for.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/symbol/match.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/symbol/replace.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/symbol/search.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/symbol/species.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/symbol/split.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/symbol/to-primitive.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/symbol/to-string-tag.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/symbol/unscopables.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/weak-map.js +1 -0
- data/test/dummy/node_modules/babel-runtime/core-js/weak-set.js +1 -0
- data/test/dummy/node_modules/babel-runtime/helpers/_extends.js +23 -0
- data/test/dummy/node_modules/babel-runtime/helpers/_instanceof.js +21 -0
- data/test/dummy/node_modules/babel-runtime/helpers/_typeof.js +17 -0
- data/test/dummy/node_modules/babel-runtime/helpers/async-to-generator.js +33 -0
- data/test/dummy/node_modules/babel-runtime/helpers/asyncToGenerator.js +37 -0
- data/test/dummy/node_modules/babel-runtime/helpers/bind.js +4 -0
- data/test/dummy/node_modules/babel-runtime/helpers/class-call-check.js +9 -0
- data/test/dummy/node_modules/babel-runtime/helpers/classCallCheck.js +9 -0
- data/test/dummy/node_modules/babel-runtime/helpers/create-class.js +24 -0
- data/test/dummy/node_modules/babel-runtime/helpers/create-decorated-class.js +45 -0
- data/test/dummy/node_modules/babel-runtime/helpers/create-decorated-object.js +40 -0
- data/test/dummy/node_modules/babel-runtime/helpers/createClass.js +27 -0
- data/test/dummy/node_modules/babel-runtime/helpers/default-props.js +15 -0
- data/test/dummy/node_modules/babel-runtime/helpers/defaultProps.js +15 -0
- data/test/dummy/node_modules/babel-runtime/helpers/defaults.js +25 -0
- data/test/dummy/node_modules/babel-runtime/helpers/define-decorated-property-descriptor.js +17 -0
- data/test/dummy/node_modules/babel-runtime/helpers/define-property.js +20 -0
- data/test/dummy/node_modules/babel-runtime/helpers/defineEnumerableProperties.js +20 -0
- data/test/dummy/node_modules/babel-runtime/helpers/defineProperty.js +24 -0
- data/test/dummy/node_modules/babel-runtime/helpers/extends.js +19 -0
- data/test/dummy/node_modules/babel-runtime/helpers/get.js +44 -0
- data/test/dummy/node_modules/babel-runtime/helpers/has-own.js +4 -0
- data/test/dummy/node_modules/babel-runtime/helpers/inherits.js +23 -0
- data/test/dummy/node_modules/babel-runtime/helpers/instanceof.js +13 -0
- data/test/dummy/node_modules/babel-runtime/helpers/interop-export-wildcard.js +9 -0
- data/test/dummy/node_modules/babel-runtime/helpers/interop-require-default.js +9 -0
- data/test/dummy/node_modules/babel-runtime/helpers/interop-require-wildcard.js +20 -0
- data/test/dummy/node_modules/babel-runtime/helpers/interop-require.js +7 -0
- data/test/dummy/node_modules/babel-runtime/helpers/interopRequireDefault.js +9 -0
- data/test/dummy/node_modules/babel-runtime/helpers/interopRequireWildcard.js +20 -0
- data/test/dummy/node_modules/babel-runtime/helpers/new-arrow-check.js +9 -0
- data/test/dummy/node_modules/babel-runtime/helpers/newArrowCheck.js +9 -0
- data/test/dummy/node_modules/babel-runtime/helpers/object-destructuring-empty.js +7 -0
- data/test/dummy/node_modules/babel-runtime/helpers/object-without-properties.js +15 -0
- data/test/dummy/node_modules/babel-runtime/helpers/objectDestructuringEmpty.js +7 -0
- data/test/dummy/node_modules/babel-runtime/helpers/objectWithoutProperties.js +15 -0
- data/test/dummy/node_modules/babel-runtime/helpers/possibleConstructorReturn.js +17 -0
- data/test/dummy/node_modules/babel-runtime/helpers/self-global.js +4 -0
- data/test/dummy/node_modules/babel-runtime/helpers/selfGlobal.js +4 -0
- data/test/dummy/node_modules/babel-runtime/helpers/set.js +27 -0
- data/test/dummy/node_modules/babel-runtime/helpers/slice.js +4 -0
- data/test/dummy/node_modules/babel-runtime/helpers/sliced-to-array-loose.js +25 -0
- data/test/dummy/node_modules/babel-runtime/helpers/sliced-to-array.js +45 -0
- data/test/dummy/node_modules/babel-runtime/helpers/slicedToArray.js +51 -0
- data/test/dummy/node_modules/babel-runtime/helpers/slicedToArrayLoose.js +31 -0
- data/test/dummy/node_modules/babel-runtime/helpers/tagged-template-literal-loose.js +8 -0
- data/test/dummy/node_modules/babel-runtime/helpers/tagged-template-literal.js +15 -0
- data/test/dummy/node_modules/babel-runtime/helpers/taggedTemplateLiteral.js +21 -0
- data/test/dummy/node_modules/babel-runtime/helpers/taggedTemplateLiteralLoose.js +8 -0
- data/test/dummy/node_modules/babel-runtime/helpers/temporal-assert-defined.js +11 -0
- data/test/dummy/node_modules/babel-runtime/helpers/temporal-undefined.js +4 -0
- data/test/dummy/node_modules/babel-runtime/helpers/temporalRef.js +11 -0
- data/test/dummy/node_modules/babel-runtime/helpers/temporalUndefined.js +4 -0
- data/test/dummy/node_modules/babel-runtime/helpers/to-array.js +9 -0
- data/test/dummy/node_modules/babel-runtime/helpers/to-consumable-array.js +15 -0
- data/test/dummy/node_modules/babel-runtime/helpers/toArray.js +13 -0
- data/test/dummy/node_modules/babel-runtime/helpers/toConsumableArray.js +19 -0
- data/test/dummy/node_modules/babel-runtime/helpers/typeof-react-element.js +6 -0
- data/test/dummy/node_modules/babel-runtime/helpers/typeof.js +9 -0
- data/test/dummy/node_modules/babel-runtime/helpers/typeofReactElement.js +14 -0
- data/test/dummy/node_modules/babel-runtime/package.json +81 -0
- data/test/dummy/node_modules/babel-runtime/regenerator/index.js +33 -0
- data/test/dummy/node_modules/babel-runtime/regenerator/runtime.js +647 -0
- data/test/dummy/node_modules/babel-template/README.md +32 -0
- data/test/dummy/node_modules/babel-template/lib/index.js +136 -0
- data/test/dummy/node_modules/babel-template/package.json +92 -0
- data/test/dummy/node_modules/babel-traverse/README.md +1 -0
- data/test/dummy/node_modules/babel-traverse/lib/context.js +205 -0
- data/test/dummy/node_modules/babel-traverse/lib/hub.js +15 -0
- data/test/dummy/node_modules/babel-traverse/lib/index.js +216 -0
- data/test/dummy/node_modules/babel-traverse/lib/path/ancestry.js +287 -0
- data/test/dummy/node_modules/babel-traverse/lib/path/comments.js +56 -0
- data/test/dummy/node_modules/babel-traverse/lib/path/constants.js +5 -0
- data/test/dummy/node_modules/babel-traverse/lib/path/context.js +280 -0
- data/test/dummy/node_modules/babel-traverse/lib/path/conversion.js +50 -0
- data/test/dummy/node_modules/babel-traverse/lib/path/evaluation.js +345 -0
- data/test/dummy/node_modules/babel-traverse/lib/path/family.js +170 -0
- data/test/dummy/node_modules/babel-traverse/lib/path/index.js +251 -0
- data/test/dummy/node_modules/babel-traverse/lib/path/inference/index.js +147 -0
- data/test/dummy/node_modules/babel-traverse/lib/path/inference/inferer-reference.js +229 -0
- data/test/dummy/node_modules/babel-traverse/lib/path/inference/inferers.js +193 -0
- data/test/dummy/node_modules/babel-traverse/lib/path/introspection.js +472 -0
- data/test/dummy/node_modules/babel-traverse/lib/path/lib/hoister.js +160 -0
- data/test/dummy/node_modules/babel-traverse/lib/path/lib/removal-hooks.js +65 -0
- data/test/dummy/node_modules/babel-traverse/lib/path/lib/virtual-types.js +153 -0
- data/test/dummy/node_modules/babel-traverse/lib/path/modification.js +285 -0
- data/test/dummy/node_modules/babel-traverse/lib/path/removal.js +69 -0
- data/test/dummy/node_modules/babel-traverse/lib/path/replacement.js +295 -0
- data/test/dummy/node_modules/babel-traverse/lib/scope/binding.js +97 -0
- data/test/dummy/node_modules/babel-traverse/lib/scope/index.js +1225 -0
- data/test/dummy/node_modules/babel-traverse/lib/scope/lib/renamer.js +146 -0
- data/test/dummy/node_modules/babel-traverse/lib/visitors.js +335 -0
- data/test/dummy/node_modules/babel-traverse/package.json +98 -0
- data/test/dummy/node_modules/babel-traverse/test/scope.js +38 -0
- data/test/dummy/node_modules/babel-traverse/test/traverse.js +126 -0
- data/test/dummy/node_modules/babel-types/README.md +1 -0
- data/test/dummy/node_modules/babel-types/lib/constants.js +49 -0
- data/test/dummy/node_modules/babel-types/lib/converters.js +369 -0
- data/test/dummy/node_modules/babel-types/lib/definitions/core.js +699 -0
- data/test/dummy/node_modules/babel-types/lib/definitions/es2015.js +347 -0
- data/test/dummy/node_modules/babel-types/lib/definitions/experimental.js +86 -0
- data/test/dummy/node_modules/babel-types/lib/definitions/flow.js +292 -0
- data/test/dummy/node_modules/babel-types/lib/definitions/index.js +240 -0
- data/test/dummy/node_modules/babel-types/lib/definitions/init.js +15 -0
- data/test/dummy/node_modules/babel-types/lib/definitions/jsx.js +139 -0
- data/test/dummy/node_modules/babel-types/lib/definitions/misc.js +23 -0
- data/test/dummy/node_modules/babel-types/lib/flow.js +129 -0
- data/test/dummy/node_modules/babel-types/lib/index.js +570 -0
- data/test/dummy/node_modules/babel-types/lib/react.js +86 -0
- data/test/dummy/node_modules/babel-types/lib/retrievers.js +120 -0
- data/test/dummy/node_modules/babel-types/lib/validators.js +267 -0
- data/test/dummy/node_modules/babel-types/package.json +94 -0
- data/test/dummy/node_modules/babylon/AUTHORS +41 -0
- data/test/dummy/node_modules/babylon/LICENSE +19 -0
- data/test/dummy/node_modules/babylon/README.md +74 -0
- data/test/dummy/node_modules/babylon/bin/babylon.js +15 -0
- data/test/dummy/node_modules/babylon/lib/index.js +47 -0
- data/test/dummy/node_modules/babylon/lib/options.js +34 -0
- data/test/dummy/node_modules/babylon/lib/parser/comments.js +151 -0
- data/test/dummy/node_modules/babylon/lib/parser/expression.js +1047 -0
- data/test/dummy/node_modules/babylon/lib/parser/index.js +102 -0
- data/test/dummy/node_modules/babylon/lib/parser/location.js +26 -0
- data/test/dummy/node_modules/babylon/lib/parser/lval.js +299 -0
- data/test/dummy/node_modules/babylon/lib/parser/node.js +63 -0
- data/test/dummy/node_modules/babylon/lib/parser/statement.js +1027 -0
- data/test/dummy/node_modules/babylon/lib/parser/util.js +92 -0
- data/test/dummy/node_modules/babylon/lib/plugins/flow.js +1022 -0
- data/test/dummy/node_modules/babylon/lib/plugins/jsx/index.js +464 -0
- data/test/dummy/node_modules/babylon/lib/plugins/jsx/xhtml.js +259 -0
- data/test/dummy/node_modules/babylon/lib/tokenizer/context.js +104 -0
- data/test/dummy/node_modules/babylon/lib/tokenizer/index.js +882 -0
- data/test/dummy/node_modules/babylon/lib/tokenizer/state.js +125 -0
- data/test/dummy/node_modules/babylon/lib/tokenizer/types.js +161 -0
- data/test/dummy/node_modules/babylon/lib/util/identifier.js +96 -0
- data/test/dummy/node_modules/babylon/lib/util/location.js +50 -0
- data/test/dummy/node_modules/babylon/lib/util/whitespace.js +21 -0
- data/test/dummy/node_modules/babylon/package.json +216 -0
- data/test/dummy/node_modules/balanced-match/LICENSE.md +21 -0
- data/test/dummy/node_modules/balanced-match/Makefile +6 -0
- data/test/dummy/node_modules/balanced-match/README.md +89 -0
- data/test/dummy/node_modules/balanced-match/example.js +5 -0
- data/test/dummy/node_modules/balanced-match/index.js +50 -0
- data/test/dummy/node_modules/balanced-match/package.json +97 -0
- data/test/dummy/node_modules/balanced-match/test/balanced.js +84 -0
- data/test/dummy/node_modules/base62/LICENSE +20 -0
- data/test/dummy/node_modules/base62/Readme.md +30 -0
- data/test/dummy/node_modules/base62/base62.js +27 -0
- data/test/dummy/node_modules/base62/package.json +73 -0
- data/test/dummy/node_modules/base62/test/test.js +14 -0
- data/test/dummy/node_modules/brace-expansion/README.md +122 -0
- data/test/dummy/node_modules/brace-expansion/example.js +8 -0
- data/test/dummy/node_modules/brace-expansion/index.js +191 -0
- data/test/dummy/node_modules/brace-expansion/package.json +100 -0
- data/test/dummy/node_modules/builtin-modules/builtin-modules.json +35 -0
- data/test/dummy/node_modules/builtin-modules/index.js +10 -0
- data/test/dummy/node_modules/builtin-modules/license +21 -0
- data/test/dummy/node_modules/builtin-modules/package.json +95 -0
- data/test/dummy/node_modules/builtin-modules/readme.md +41 -0
- data/test/dummy/node_modules/builtin-modules/static.js +2 -0
- data/test/dummy/node_modules/chalk/index.js +116 -0
- data/test/dummy/node_modules/chalk/license +21 -0
- data/test/dummy/node_modules/chalk/package.json +128 -0
- data/test/dummy/node_modules/chalk/readme.md +213 -0
- data/test/dummy/node_modules/concat-map/LICENSE +18 -0
- data/test/dummy/node_modules/concat-map/README.markdown +62 -0
- data/test/dummy/node_modules/concat-map/example/map.js +6 -0
- data/test/dummy/node_modules/concat-map/index.js +13 -0
- data/test/dummy/node_modules/concat-map/package.json +108 -0
- data/test/dummy/node_modules/concat-map/test/map.js +39 -0
- data/test/dummy/node_modules/convert-source-map/LICENSE +23 -0
- data/test/dummy/node_modules/convert-source-map/README.md +121 -0
- data/test/dummy/node_modules/convert-source-map/example/comment-to-json.js +15 -0
- data/test/dummy/node_modules/convert-source-map/index.js +155 -0
- data/test/dummy/node_modules/convert-source-map/package.json +86 -0
- data/test/dummy/node_modules/convert-source-map/test/comment-regex.js +138 -0
- data/test/dummy/node_modules/convert-source-map/test/convert-source-map.js +207 -0
- data/test/dummy/node_modules/convert-source-map/test/fixtures/map-file-comment-double-slash.css +14 -0
- data/test/dummy/node_modules/convert-source-map/test/fixtures/map-file-comment-inline.css +14 -0
- data/test/dummy/node_modules/convert-source-map/test/fixtures/map-file-comment.css +14 -0
- data/test/dummy/node_modules/convert-source-map/test/fixtures/map-file-comment.css.map +6 -0
- data/test/dummy/node_modules/convert-source-map/test/map-file-comment.js +70 -0
- data/test/dummy/node_modules/core-js/CHANGELOG.md +406 -0
- data/test/dummy/node_modules/core-js/Gruntfile.js +2 -0
- data/test/dummy/node_modules/core-js/LICENSE +19 -0
- data/test/dummy/node_modules/core-js/README.md +1289 -0
- data/test/dummy/node_modules/core-js/build/Gruntfile.ls +84 -0
- data/test/dummy/node_modules/core-js/build/build.ls +218 -0
- data/test/dummy/node_modules/core-js/build/config.js +8 -0
- data/test/dummy/node_modules/core-js/build/index.js +98 -0
- data/test/dummy/node_modules/core-js/client/core.js +4904 -0
- data/test/dummy/node_modules/core-js/client/core.min.js +9 -0
- data/test/dummy/node_modules/core-js/client/core.min.js.map +1 -0
- data/test/dummy/node_modules/core-js/client/library.js +4544 -0
- data/test/dummy/node_modules/core-js/client/library.min.js +9 -0
- data/test/dummy/node_modules/core-js/client/library.min.js.map +1 -0
- data/test/dummy/node_modules/core-js/client/shim.js +4545 -0
- data/test/dummy/node_modules/core-js/client/shim.min.js +9 -0
- data/test/dummy/node_modules/core-js/client/shim.min.js.map +1 -0
- data/test/dummy/node_modules/core-js/core/_.js +2 -0
- data/test/dummy/node_modules/core-js/core/delay.js +2 -0
- data/test/dummy/node_modules/core-js/core/dict.js +2 -0
- data/test/dummy/node_modules/core-js/core/function.js +2 -0
- data/test/dummy/node_modules/core-js/core/index.js +15 -0
- data/test/dummy/node_modules/core-js/core/log.js +2 -0
- data/test/dummy/node_modules/core-js/core/number.js +2 -0
- data/test/dummy/node_modules/core-js/core/object.js +5 -0
- data/test/dummy/node_modules/core-js/core/string.js +3 -0
- data/test/dummy/node_modules/core-js/es5/index.js +9 -0
- data/test/dummy/node_modules/core-js/es6/array.js +10 -0
- data/test/dummy/node_modules/core-js/es6/function.js +3 -0
- data/test/dummy/node_modules/core-js/es6/index.js +87 -0
- data/test/dummy/node_modules/core-js/es6/map.js +5 -0
- data/test/dummy/node_modules/core-js/es6/math.js +18 -0
- data/test/dummy/node_modules/core-js/es6/number.js +11 -0
- data/test/dummy/node_modules/core-js/es6/object.js +17 -0
- data/test/dummy/node_modules/core-js/es6/promise.js +5 -0
- data/test/dummy/node_modules/core-js/es6/reflect.js +15 -0
- data/test/dummy/node_modules/core-js/es6/regexp.js +7 -0
- data/test/dummy/node_modules/core-js/es6/set.js +5 -0
- data/test/dummy/node_modules/core-js/es6/string.js +14 -0
- data/test/dummy/node_modules/core-js/es6/symbol.js +3 -0
- data/test/dummy/node_modules/core-js/es6/weak-map.js +4 -0
- data/test/dummy/node_modules/core-js/es6/weak-set.js +4 -0
- data/test/dummy/node_modules/core-js/es7/array.js +2 -0
- data/test/dummy/node_modules/core-js/es7/index.js +13 -0
- data/test/dummy/node_modules/core-js/es7/map.js +2 -0
- data/test/dummy/node_modules/core-js/es7/object.js +4 -0
- data/test/dummy/node_modules/core-js/es7/regexp.js +2 -0
- data/test/dummy/node_modules/core-js/es7/set.js +2 -0
- data/test/dummy/node_modules/core-js/es7/string.js +6 -0
- data/test/dummy/node_modules/core-js/fn/_.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/concat.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/copy-within.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/entries.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/every.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/fill.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/filter.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/find-index.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/find.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/for-each.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/from.js +3 -0
- data/test/dummy/node_modules/core-js/fn/array/includes.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/index-of.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/index.js +12 -0
- data/test/dummy/node_modules/core-js/fn/array/iterator.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/join.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/keys.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/last-index-of.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/map.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/of.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/pop.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/push.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/reduce-right.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/reduce.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/reverse.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/shift.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/slice.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/some.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/sort.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/splice.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/unshift.js +2 -0
- data/test/dummy/node_modules/core-js/fn/array/values.js +2 -0
- data/test/dummy/node_modules/core-js/fn/clear-immediate.js +2 -0
- data/test/dummy/node_modules/core-js/fn/delay.js +2 -0
- data/test/dummy/node_modules/core-js/fn/dict.js +2 -0
- data/test/dummy/node_modules/core-js/fn/function/has-instance.js +2 -0
- data/test/dummy/node_modules/core-js/fn/function/index.js +4 -0
- data/test/dummy/node_modules/core-js/fn/function/name.js +1 -0
- data/test/dummy/node_modules/core-js/fn/function/part.js +2 -0
- data/test/dummy/node_modules/core-js/fn/get-iterator-method.js +3 -0
- data/test/dummy/node_modules/core-js/fn/get-iterator.js +3 -0
- data/test/dummy/node_modules/core-js/fn/html-collection/index.js +2 -0
- data/test/dummy/node_modules/core-js/fn/html-collection/iterator.js +2 -0
- data/test/dummy/node_modules/core-js/fn/is-iterable.js +3 -0
- data/test/dummy/node_modules/core-js/fn/json/stringify.js +4 -0
- data/test/dummy/node_modules/core-js/fn/log.js +2 -0
- data/test/dummy/node_modules/core-js/fn/map.js +6 -0
- data/test/dummy/node_modules/core-js/fn/math/acosh.js +2 -0
- data/test/dummy/node_modules/core-js/fn/math/asinh.js +2 -0
- data/test/dummy/node_modules/core-js/fn/math/atanh.js +2 -0
- data/test/dummy/node_modules/core-js/fn/math/cbrt.js +2 -0
- data/test/dummy/node_modules/core-js/fn/math/clz32.js +2 -0
- data/test/dummy/node_modules/core-js/fn/math/cosh.js +2 -0
- data/test/dummy/node_modules/core-js/fn/math/expm1.js +2 -0
- data/test/dummy/node_modules/core-js/fn/math/fround.js +2 -0
- data/test/dummy/node_modules/core-js/fn/math/hypot.js +2 -0
- data/test/dummy/node_modules/core-js/fn/math/imul.js +2 -0
- data/test/dummy/node_modules/core-js/fn/math/index.js +18 -0
- data/test/dummy/node_modules/core-js/fn/math/log10.js +2 -0
- data/test/dummy/node_modules/core-js/fn/math/log1p.js +2 -0
- data/test/dummy/node_modules/core-js/fn/math/log2.js +2 -0
- data/test/dummy/node_modules/core-js/fn/math/sign.js +2 -0
- data/test/dummy/node_modules/core-js/fn/math/sinh.js +2 -0
- data/test/dummy/node_modules/core-js/fn/math/tanh.js +2 -0
- data/test/dummy/node_modules/core-js/fn/math/trunc.js +2 -0
- data/test/dummy/node_modules/core-js/fn/node-list/index.js +2 -0
- data/test/dummy/node_modules/core-js/fn/node-list/iterator.js +2 -0
- data/test/dummy/node_modules/core-js/fn/number/epsilon.js +2 -0
- data/test/dummy/node_modules/core-js/fn/number/index.js +12 -0
- data/test/dummy/node_modules/core-js/fn/number/is-finite.js +2 -0
- data/test/dummy/node_modules/core-js/fn/number/is-integer.js +2 -0
- data/test/dummy/node_modules/core-js/fn/number/is-nan.js +2 -0
- data/test/dummy/node_modules/core-js/fn/number/is-safe-integer.js +2 -0
- data/test/dummy/node_modules/core-js/fn/number/iterator.js +5 -0
- data/test/dummy/node_modules/core-js/fn/number/max-safe-integer.js +2 -0
- data/test/dummy/node_modules/core-js/fn/number/min-safe-integer.js +2 -0
- data/test/dummy/node_modules/core-js/fn/number/parse-float.js +2 -0
- data/test/dummy/node_modules/core-js/fn/number/parse-int.js +2 -0
- data/test/dummy/node_modules/core-js/fn/object/assign.js +2 -0
- data/test/dummy/node_modules/core-js/fn/object/classof.js +2 -0
- data/test/dummy/node_modules/core-js/fn/object/create.js +4 -0
- data/test/dummy/node_modules/core-js/fn/object/define-properties.js +4 -0
- data/test/dummy/node_modules/core-js/fn/object/define-property.js +4 -0
- data/test/dummy/node_modules/core-js/fn/object/define.js +2 -0
- data/test/dummy/node_modules/core-js/fn/object/entries.js +2 -0
- data/test/dummy/node_modules/core-js/fn/object/freeze.js +2 -0
- data/test/dummy/node_modules/core-js/fn/object/get-own-property-descriptor.js +5 -0
- data/test/dummy/node_modules/core-js/fn/object/get-own-property-descriptors.js +2 -0
- data/test/dummy/node_modules/core-js/fn/object/get-own-property-names.js +5 -0
- data/test/dummy/node_modules/core-js/fn/object/get-own-property-symbols.js +2 -0
- data/test/dummy/node_modules/core-js/fn/object/get-prototype-of.js +2 -0
- data/test/dummy/node_modules/core-js/fn/object/index.js +23 -0
- data/test/dummy/node_modules/core-js/fn/object/is-extensible.js +2 -0
- data/test/dummy/node_modules/core-js/fn/object/is-frozen.js +2 -0
- data/test/dummy/node_modules/core-js/fn/object/is-object.js +2 -0
- data/test/dummy/node_modules/core-js/fn/object/is-sealed.js +2 -0
- data/test/dummy/node_modules/core-js/fn/object/is.js +2 -0
- data/test/dummy/node_modules/core-js/fn/object/keys.js +2 -0
- data/test/dummy/node_modules/core-js/fn/object/make.js +2 -0
- data/test/dummy/node_modules/core-js/fn/object/prevent-extensions.js +2 -0
- data/test/dummy/node_modules/core-js/fn/object/seal.js +2 -0
- data/test/dummy/node_modules/core-js/fn/object/set-prototype-of.js +2 -0
- data/test/dummy/node_modules/core-js/fn/object/values.js +2 -0
- data/test/dummy/node_modules/core-js/fn/promise.js +5 -0
- data/test/dummy/node_modules/core-js/fn/reflect/apply.js +2 -0
- data/test/dummy/node_modules/core-js/fn/reflect/construct.js +2 -0
- data/test/dummy/node_modules/core-js/fn/reflect/define-property.js +2 -0
- data/test/dummy/node_modules/core-js/fn/reflect/delete-property.js +2 -0
- data/test/dummy/node_modules/core-js/fn/reflect/enumerate.js +2 -0
- data/test/dummy/node_modules/core-js/fn/reflect/get-own-property-descriptor.js +2 -0
- data/test/dummy/node_modules/core-js/fn/reflect/get-prototype-of.js +2 -0
- data/test/dummy/node_modules/core-js/fn/reflect/get.js +2 -0
- data/test/dummy/node_modules/core-js/fn/reflect/has.js +2 -0
- data/test/dummy/node_modules/core-js/fn/reflect/index.js +15 -0
- data/test/dummy/node_modules/core-js/fn/reflect/is-extensible.js +2 -0
- data/test/dummy/node_modules/core-js/fn/reflect/own-keys.js +2 -0
- data/test/dummy/node_modules/core-js/fn/reflect/prevent-extensions.js +2 -0
- data/test/dummy/node_modules/core-js/fn/reflect/set-prototype-of.js +2 -0
- data/test/dummy/node_modules/core-js/fn/reflect/set.js +2 -0
- data/test/dummy/node_modules/core-js/fn/regexp/escape.js +2 -0
- data/test/dummy/node_modules/core-js/fn/regexp/index.js +8 -0
- data/test/dummy/node_modules/core-js/fn/set-immediate.js +2 -0
- data/test/dummy/node_modules/core-js/fn/set-interval.js +2 -0
- data/test/dummy/node_modules/core-js/fn/set-timeout.js +2 -0
- data/test/dummy/node_modules/core-js/fn/set.js +6 -0
- data/test/dummy/node_modules/core-js/fn/string/at.js +2 -0
- data/test/dummy/node_modules/core-js/fn/string/code-point-at.js +2 -0
- data/test/dummy/node_modules/core-js/fn/string/ends-with.js +2 -0
- data/test/dummy/node_modules/core-js/fn/string/escape-html.js +2 -0
- data/test/dummy/node_modules/core-js/fn/string/from-code-point.js +2 -0
- data/test/dummy/node_modules/core-js/fn/string/includes.js +2 -0
- data/test/dummy/node_modules/core-js/fn/string/index.js +21 -0
- data/test/dummy/node_modules/core-js/fn/string/iterator.js +5 -0
- data/test/dummy/node_modules/core-js/fn/string/pad-left.js +2 -0
- data/test/dummy/node_modules/core-js/fn/string/pad-right.js +2 -0
- data/test/dummy/node_modules/core-js/fn/string/raw.js +2 -0
- data/test/dummy/node_modules/core-js/fn/string/repeat.js +2 -0
- data/test/dummy/node_modules/core-js/fn/string/starts-with.js +2 -0
- data/test/dummy/node_modules/core-js/fn/string/trim-left.js +2 -0
- data/test/dummy/node_modules/core-js/fn/string/trim-right.js +2 -0
- data/test/dummy/node_modules/core-js/fn/string/trim.js +2 -0
- data/test/dummy/node_modules/core-js/fn/string/unescape-html.js +2 -0
- data/test/dummy/node_modules/core-js/fn/symbol/for.js +2 -0
- data/test/dummy/node_modules/core-js/fn/symbol/has-instance.js +1 -0
- data/test/dummy/node_modules/core-js/fn/symbol/index.js +3 -0
- data/test/dummy/node_modules/core-js/fn/symbol/is-concat-spreadable.js +1 -0
- data/test/dummy/node_modules/core-js/fn/symbol/iterator.js +3 -0
- data/test/dummy/node_modules/core-js/fn/symbol/key-for.js +2 -0
- data/test/dummy/node_modules/core-js/fn/symbol/match.js +2 -0
- data/test/dummy/node_modules/core-js/fn/symbol/replace.js +2 -0
- data/test/dummy/node_modules/core-js/fn/symbol/search.js +2 -0
- data/test/dummy/node_modules/core-js/fn/symbol/species.js +1 -0
- data/test/dummy/node_modules/core-js/fn/symbol/split.js +2 -0
- data/test/dummy/node_modules/core-js/fn/symbol/to-primitive.js +1 -0
- data/test/dummy/node_modules/core-js/fn/symbol/to-string-tag.js +2 -0
- data/test/dummy/node_modules/core-js/fn/symbol/unscopables.js +1 -0
- data/test/dummy/node_modules/core-js/fn/weak-map.js +4 -0
- data/test/dummy/node_modules/core-js/fn/weak-set.js +4 -0
- data/test/dummy/node_modules/core-js/index.js +16 -0
- data/test/dummy/node_modules/core-js/js/array.js +2 -0
- data/test/dummy/node_modules/core-js/js/index.js +2 -0
- data/test/dummy/node_modules/core-js/library/core/_.js +2 -0
- data/test/dummy/node_modules/core-js/library/core/delay.js +2 -0
- data/test/dummy/node_modules/core-js/library/core/dict.js +2 -0
- data/test/dummy/node_modules/core-js/library/core/function.js +2 -0
- data/test/dummy/node_modules/core-js/library/core/index.js +15 -0
- data/test/dummy/node_modules/core-js/library/core/log.js +2 -0
- data/test/dummy/node_modules/core-js/library/core/number.js +2 -0
- data/test/dummy/node_modules/core-js/library/core/object.js +5 -0
- data/test/dummy/node_modules/core-js/library/core/string.js +3 -0
- data/test/dummy/node_modules/core-js/library/es5/index.js +9 -0
- data/test/dummy/node_modules/core-js/library/es6/array.js +10 -0
- data/test/dummy/node_modules/core-js/library/es6/function.js +3 -0
- data/test/dummy/node_modules/core-js/library/es6/index.js +87 -0
- data/test/dummy/node_modules/core-js/library/es6/map.js +5 -0
- data/test/dummy/node_modules/core-js/library/es6/math.js +18 -0
- data/test/dummy/node_modules/core-js/library/es6/number.js +11 -0
- data/test/dummy/node_modules/core-js/library/es6/object.js +17 -0
- data/test/dummy/node_modules/core-js/library/es6/promise.js +5 -0
- data/test/dummy/node_modules/core-js/library/es6/reflect.js +15 -0
- data/test/dummy/node_modules/core-js/library/es6/regexp.js +7 -0
- data/test/dummy/node_modules/core-js/library/es6/set.js +5 -0
- data/test/dummy/node_modules/core-js/library/es6/string.js +14 -0
- data/test/dummy/node_modules/core-js/library/es6/symbol.js +3 -0
- data/test/dummy/node_modules/core-js/library/es6/weak-map.js +4 -0
- data/test/dummy/node_modules/core-js/library/es6/weak-set.js +4 -0
- data/test/dummy/node_modules/core-js/library/es7/array.js +2 -0
- data/test/dummy/node_modules/core-js/library/es7/index.js +13 -0
- data/test/dummy/node_modules/core-js/library/es7/map.js +2 -0
- data/test/dummy/node_modules/core-js/library/es7/object.js +4 -0
- data/test/dummy/node_modules/core-js/library/es7/regexp.js +2 -0
- data/test/dummy/node_modules/core-js/library/es7/set.js +2 -0
- data/test/dummy/node_modules/core-js/library/es7/string.js +6 -0
- data/test/dummy/node_modules/core-js/library/fn/_.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/concat.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/copy-within.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/entries.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/every.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/fill.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/filter.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/find-index.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/find.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/for-each.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/from.js +3 -0
- data/test/dummy/node_modules/core-js/library/fn/array/includes.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/index-of.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/index.js +12 -0
- data/test/dummy/node_modules/core-js/library/fn/array/iterator.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/join.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/keys.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/last-index-of.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/map.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/of.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/pop.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/push.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/reduce-right.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/reduce.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/reverse.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/shift.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/slice.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/some.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/sort.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/splice.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/unshift.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/array/values.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/clear-immediate.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/delay.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/dict.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/function/has-instance.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/function/index.js +4 -0
- data/test/dummy/node_modules/core-js/library/fn/function/name.js +1 -0
- data/test/dummy/node_modules/core-js/library/fn/function/part.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/get-iterator-method.js +3 -0
- data/test/dummy/node_modules/core-js/library/fn/get-iterator.js +3 -0
- data/test/dummy/node_modules/core-js/library/fn/html-collection/index.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/html-collection/iterator.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/is-iterable.js +3 -0
- data/test/dummy/node_modules/core-js/library/fn/json/stringify.js +4 -0
- data/test/dummy/node_modules/core-js/library/fn/log.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/map.js +6 -0
- data/test/dummy/node_modules/core-js/library/fn/math/acosh.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/math/asinh.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/math/atanh.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/math/cbrt.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/math/clz32.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/math/cosh.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/math/expm1.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/math/fround.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/math/hypot.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/math/imul.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/math/index.js +18 -0
- data/test/dummy/node_modules/core-js/library/fn/math/log10.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/math/log1p.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/math/log2.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/math/sign.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/math/sinh.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/math/tanh.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/math/trunc.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/node-list/index.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/node-list/iterator.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/number/epsilon.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/number/index.js +12 -0
- data/test/dummy/node_modules/core-js/library/fn/number/is-finite.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/number/is-integer.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/number/is-nan.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/number/is-safe-integer.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/number/iterator.js +5 -0
- data/test/dummy/node_modules/core-js/library/fn/number/max-safe-integer.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/number/min-safe-integer.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/number/parse-float.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/number/parse-int.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/object/assign.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/object/classof.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/object/create.js +4 -0
- data/test/dummy/node_modules/core-js/library/fn/object/define-properties.js +4 -0
- data/test/dummy/node_modules/core-js/library/fn/object/define-property.js +4 -0
- data/test/dummy/node_modules/core-js/library/fn/object/define.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/object/entries.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/object/freeze.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/object/get-own-property-descriptor.js +5 -0
- data/test/dummy/node_modules/core-js/library/fn/object/get-own-property-descriptors.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/object/get-own-property-names.js +5 -0
- data/test/dummy/node_modules/core-js/library/fn/object/get-own-property-symbols.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/object/get-prototype-of.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/object/index.js +23 -0
- data/test/dummy/node_modules/core-js/library/fn/object/is-extensible.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/object/is-frozen.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/object/is-object.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/object/is-sealed.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/object/is.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/object/keys.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/object/make.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/object/prevent-extensions.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/object/seal.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/object/set-prototype-of.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/object/values.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/promise.js +5 -0
- data/test/dummy/node_modules/core-js/library/fn/reflect/apply.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/reflect/construct.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/reflect/define-property.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/reflect/delete-property.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/reflect/enumerate.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/reflect/get-own-property-descriptor.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/reflect/get-prototype-of.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/reflect/get.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/reflect/has.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/reflect/index.js +15 -0
- data/test/dummy/node_modules/core-js/library/fn/reflect/is-extensible.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/reflect/own-keys.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/reflect/prevent-extensions.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/reflect/set-prototype-of.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/reflect/set.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/regexp/escape.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/regexp/index.js +8 -0
- data/test/dummy/node_modules/core-js/library/fn/set-immediate.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/set-interval.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/set-timeout.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/set.js +6 -0
- data/test/dummy/node_modules/core-js/library/fn/string/at.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/string/code-point-at.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/string/ends-with.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/string/escape-html.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/string/from-code-point.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/string/includes.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/string/index.js +21 -0
- data/test/dummy/node_modules/core-js/library/fn/string/iterator.js +5 -0
- data/test/dummy/node_modules/core-js/library/fn/string/pad-left.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/string/pad-right.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/string/raw.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/string/repeat.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/string/starts-with.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/string/trim-left.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/string/trim-right.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/string/trim.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/string/unescape-html.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/symbol/for.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/symbol/has-instance.js +1 -0
- data/test/dummy/node_modules/core-js/library/fn/symbol/index.js +3 -0
- data/test/dummy/node_modules/core-js/library/fn/symbol/is-concat-spreadable.js +1 -0
- data/test/dummy/node_modules/core-js/library/fn/symbol/iterator.js +3 -0
- data/test/dummy/node_modules/core-js/library/fn/symbol/key-for.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/symbol/match.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/symbol/replace.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/symbol/search.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/symbol/species.js +1 -0
- data/test/dummy/node_modules/core-js/library/fn/symbol/split.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/symbol/to-primitive.js +1 -0
- data/test/dummy/node_modules/core-js/library/fn/symbol/to-string-tag.js +2 -0
- data/test/dummy/node_modules/core-js/library/fn/symbol/unscopables.js +1 -0
- data/test/dummy/node_modules/core-js/library/fn/weak-map.js +4 -0
- data/test/dummy/node_modules/core-js/library/fn/weak-set.js +4 -0
- data/test/dummy/node_modules/core-js/library/index.js +16 -0
- data/test/dummy/node_modules/core-js/library/js/array.js +2 -0
- data/test/dummy/node_modules/core-js/library/js/index.js +2 -0
- data/test/dummy/node_modules/core-js/library/modules/$.a-function.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/$.add-to-unscopables.js +1 -0
- data/test/dummy/node_modules/core-js/library/modules/$.an-object.js +5 -0
- data/test/dummy/node_modules/core-js/library/modules/$.array-copy-within.js +27 -0
- data/test/dummy/node_modules/core-js/library/modules/$.array-fill.js +16 -0
- data/test/dummy/node_modules/core-js/library/modules/$.array-includes.js +21 -0
- data/test/dummy/node_modules/core-js/library/modules/$.array-methods.js +43 -0
- data/test/dummy/node_modules/core-js/library/modules/$.array-species-create.js +16 -0
- data/test/dummy/node_modules/core-js/library/modules/$.buffer.js +288 -0
- data/test/dummy/node_modules/core-js/library/modules/$.classof.js +16 -0
- data/test/dummy/node_modules/core-js/library/modules/$.cof.js +5 -0
- data/test/dummy/node_modules/core-js/library/modules/$.collection-strong.js +159 -0
- data/test/dummy/node_modules/core-js/library/modules/$.collection-to-json.js +11 -0
- data/test/dummy/node_modules/core-js/library/modules/$.collection-weak.js +86 -0
- data/test/dummy/node_modules/core-js/library/modules/$.collection.js +55 -0
- data/test/dummy/node_modules/core-js/library/modules/$.core.js +2 -0
- data/test/dummy/node_modules/core-js/library/modules/$.ctx.js +20 -0
- data/test/dummy/node_modules/core-js/library/modules/$.defined.js +5 -0
- data/test/dummy/node_modules/core-js/library/modules/$.descriptors.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/$.dom-create.js +7 -0
- data/test/dummy/node_modules/core-js/library/modules/$.enum-keys.js +14 -0
- data/test/dummy/node_modules/core-js/library/modules/$.export.js +46 -0
- data/test/dummy/node_modules/core-js/library/modules/$.fails-is-regexp.js +12 -0
- data/test/dummy/node_modules/core-js/library/modules/$.fails.js +7 -0
- data/test/dummy/node_modules/core-js/library/modules/$.fix-re-wks.js +26 -0
- data/test/dummy/node_modules/core-js/library/modules/$.flags.js +13 -0
- data/test/dummy/node_modules/core-js/library/modules/$.for-of.js +19 -0
- data/test/dummy/node_modules/core-js/library/modules/$.get-names.js +20 -0
- data/test/dummy/node_modules/core-js/library/modules/$.global.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/$.has.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/$.hide.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/$.html.js +1 -0
- data/test/dummy/node_modules/core-js/library/modules/$.invoke.js +16 -0
- data/test/dummy/node_modules/core-js/library/modules/$.iobject.js +5 -0
- data/test/dummy/node_modules/core-js/library/modules/$.is-array-iter.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/$.is-array.js +5 -0
- data/test/dummy/node_modules/core-js/library/modules/$.is-integer.js +6 -0
- data/test/dummy/node_modules/core-js/library/modules/$.is-object.js +3 -0
- data/test/dummy/node_modules/core-js/library/modules/$.is-regexp.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/$.iter-call.js +12 -0
- data/test/dummy/node_modules/core-js/library/modules/$.iter-create.js +13 -0
- data/test/dummy/node_modules/core-js/library/modules/$.iter-define.js +66 -0
- data/test/dummy/node_modules/core-js/library/modules/$.iter-detect.js +21 -0
- data/test/dummy/node_modules/core-js/library/modules/$.iter-step.js +3 -0
- data/test/dummy/node_modules/core-js/library/modules/$.iterators.js +1 -0
- data/test/dummy/node_modules/core-js/library/modules/$.js +13 -0
- data/test/dummy/node_modules/core-js/library/modules/$.keyof.js +10 -0
- data/test/dummy/node_modules/core-js/library/modules/$.library.js +1 -0
- data/test/dummy/node_modules/core-js/library/modules/$.math-expm1.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/$.math-log1p.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/$.math-sign.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/$.microtask.js +64 -0
- data/test/dummy/node_modules/core-js/library/modules/$.object-assign.js +33 -0
- data/test/dummy/node_modules/core-js/library/modules/$.object-define.js +11 -0
- data/test/dummy/node_modules/core-js/library/modules/$.object-sap.js +10 -0
- data/test/dummy/node_modules/core-js/library/modules/$.object-to-array.js +16 -0
- data/test/dummy/node_modules/core-js/library/modules/$.own-keys.js +9 -0
- data/test/dummy/node_modules/core-js/library/modules/$.partial.js +24 -0
- data/test/dummy/node_modules/core-js/library/modules/$.path.js +1 -0
- data/test/dummy/node_modules/core-js/library/modules/$.property-desc.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/$.redefine-all.js +5 -0
- data/test/dummy/node_modules/core-js/library/modules/$.redefine.js +1 -0
- data/test/dummy/node_modules/core-js/library/modules/$.replacer.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/$.same-value.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/$.set-proto.js +26 -0
- data/test/dummy/node_modules/core-js/library/modules/$.set-species.js +13 -0
- data/test/dummy/node_modules/core-js/library/modules/$.set-to-string-tag.js +7 -0
- data/test/dummy/node_modules/core-js/library/modules/$.shared.js +6 -0
- data/test/dummy/node_modules/core-js/library/modules/$.species-constructor.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/$.strict-new.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/$.string-at.js +17 -0
- data/test/dummy/node_modules/core-js/library/modules/$.string-context.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/$.string-pad.js +17 -0
- data/test/dummy/node_modules/core-js/library/modules/$.string-repeat.js +12 -0
- data/test/dummy/node_modules/core-js/library/modules/$.string-trim.js +29 -0
- data/test/dummy/node_modules/core-js/library/modules/$.task.js +75 -0
- data/test/dummy/node_modules/core-js/library/modules/$.to-index.js +7 -0
- data/test/dummy/node_modules/core-js/library/modules/$.to-integer.js +6 -0
- data/test/dummy/node_modules/core-js/library/modules/$.to-iobject.js +6 -0
- data/test/dummy/node_modules/core-js/library/modules/$.to-length.js +6 -0
- data/test/dummy/node_modules/core-js/library/modules/$.to-object.js +5 -0
- data/test/dummy/node_modules/core-js/library/modules/$.to-primitive.js +12 -0
- data/test/dummy/node_modules/core-js/library/modules/$.typed-array.js +365 -0
- data/test/dummy/node_modules/core-js/library/modules/$.typed.js +36 -0
- data/test/dummy/node_modules/core-js/library/modules/$.uid.js +5 -0
- data/test/dummy/node_modules/core-js/library/modules/$.wks.js +7 -0
- data/test/dummy/node_modules/core-js/library/modules/core.delay.js +12 -0
- data/test/dummy/node_modules/core-js/library/modules/core.dict.js +153 -0
- data/test/dummy/node_modules/core-js/library/modules/core.function.part.js +7 -0
- data/test/dummy/node_modules/core-js/library/modules/core.get-iterator-method.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/core.get-iterator.js +7 -0
- data/test/dummy/node_modules/core-js/library/modules/core.is-iterable.js +9 -0
- data/test/dummy/node_modules/core-js/library/modules/core.log.js +26 -0
- data/test/dummy/node_modules/core-js/library/modules/core.number.iterator.js +9 -0
- data/test/dummy/node_modules/core-js/library/modules/core.object.classof.js +3 -0
- data/test/dummy/node_modules/core-js/library/modules/core.object.define.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/core.object.is-object.js +3 -0
- data/test/dummy/node_modules/core-js/library/modules/core.object.make.js +9 -0
- data/test/dummy/node_modules/core-js/library/modules/core.string.escape-html.js +11 -0
- data/test/dummy/node_modules/core-js/library/modules/core.string.unescape-html.js +11 -0
- data/test/dummy/node_modules/core-js/library/modules/es5.js +276 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.array.copy-within.js +6 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.array.fill.js +6 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.array.find-index.js +14 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.array.find.js +14 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.array.from.js +36 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.array.iterator.js +34 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.array.of.js +19 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.array.species.js +1 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.date.to-string.js +0 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.function.has-instance.js +13 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.function.name.js +0 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.map.js +17 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.math.acosh.js +14 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.math.asinh.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.math.atanh.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.math.cbrt.js +9 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.math.clz32.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.math.cosh.js +9 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.math.expm1.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.math.fround.js +26 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.math.hypot.js +26 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.math.imul.js +17 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.math.log10.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.math.log1p.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.math.log2.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.math.sign.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.math.sinh.js +15 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.math.tanh.js +12 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.math.trunc.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.number.constructor.js +0 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.number.epsilon.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.number.is-finite.js +9 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.number.is-integer.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.number.is-nan.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.number.is-safe-integer.js +10 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.number.max-safe-integer.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.number.min-safe-integer.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.number.parse-float.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.number.parse-int.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.object.assign.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.object.freeze.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.object.get-own-property-names.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.object.get-prototype-of.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.object.is-extensible.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.object.is-frozen.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.object.is-sealed.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.object.is.js +3 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.object.keys.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.object.prevent-extensions.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.object.seal.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.object.set-prototype-of.js +3 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.object.to-string.js +0 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.promise.js +289 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.reflect.apply.js +9 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.reflect.construct.js +38 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.reflect.define-property.js +19 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.reflect.delete-property.js +11 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.reflect.enumerate.js +26 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.reflect.get-own-property-descriptor.js +10 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.reflect.get-prototype-of.js +10 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.reflect.get.js +20 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.reflect.has.js +8 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.reflect.is-extensible.js +11 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.reflect.own-keys.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.reflect.prevent-extensions.js +16 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.reflect.set-prototype-of.js +15 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.reflect.set.js +29 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.regexp.constructor.js +1 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.regexp.flags.js +0 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.regexp.match.js +0 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.regexp.replace.js +0 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.regexp.search.js +0 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.regexp.split.js +0 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.set.js +12 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.string.code-point-at.js +9 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.string.ends-with.js +21 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.string.from-code-point.js +24 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.string.includes.js +12 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.string.iterator.js +17 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.string.raw.js +19 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.string.repeat.js +6 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.string.starts-with.js +19 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.string.trim.js +7 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.symbol.js +227 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.typed.array-buffer.js +43 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.typed.data-view.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.typed.float32-array.js +5 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.typed.float64-array.js +5 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.typed.int16-array.js +5 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.typed.int32-array.js +5 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.typed.int8-array.js +5 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.typed.uint16-array.js +5 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.typed.uint32-array.js +5 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.typed.uint8-array.js +5 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.typed.uint8-clamped-array.js +5 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.weak-map.js +43 -0
- data/test/dummy/node_modules/core-js/library/modules/es6.weak-set.js +12 -0
- data/test/dummy/node_modules/core-js/library/modules/es7.array.includes.js +12 -0
- data/test/dummy/node_modules/core-js/library/modules/es7.map.to-json.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/es7.object.entries.js +9 -0
- data/test/dummy/node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js +23 -0
- data/test/dummy/node_modules/core-js/library/modules/es7.object.values.js +9 -0
- data/test/dummy/node_modules/core-js/library/modules/es7.regexp.escape.js +5 -0
- data/test/dummy/node_modules/core-js/library/modules/es7.set.to-json.js +4 -0
- data/test/dummy/node_modules/core-js/library/modules/es7.string.at.js +10 -0
- data/test/dummy/node_modules/core-js/library/modules/es7.string.pad-left.js +9 -0
- data/test/dummy/node_modules/core-js/library/modules/es7.string.pad-right.js +9 -0
- data/test/dummy/node_modules/core-js/library/modules/es7.string.trim-left.js +7 -0
- data/test/dummy/node_modules/core-js/library/modules/es7.string.trim-right.js +7 -0
- data/test/dummy/node_modules/core-js/library/modules/js.array.statics.js +17 -0
- data/test/dummy/node_modules/core-js/library/modules/web.dom.iterable.js +3 -0
- data/test/dummy/node_modules/core-js/library/modules/web.immediate.js +6 -0
- data/test/dummy/node_modules/core-js/library/modules/web.timers.js +20 -0
- data/test/dummy/node_modules/core-js/library/shim.js +104 -0
- data/test/dummy/node_modules/core-js/library/web/dom.js +2 -0
- data/test/dummy/node_modules/core-js/library/web/immediate.js +2 -0
- data/test/dummy/node_modules/core-js/library/web/index.js +4 -0
- data/test/dummy/node_modules/core-js/library/web/timers.js +2 -0
- data/test/dummy/node_modules/core-js/modules/$.a-function.js +4 -0
- data/test/dummy/node_modules/core-js/modules/$.add-to-unscopables.js +7 -0
- data/test/dummy/node_modules/core-js/modules/$.an-object.js +5 -0
- data/test/dummy/node_modules/core-js/modules/$.array-copy-within.js +27 -0
- data/test/dummy/node_modules/core-js/modules/$.array-fill.js +16 -0
- data/test/dummy/node_modules/core-js/modules/$.array-includes.js +21 -0
- data/test/dummy/node_modules/core-js/modules/$.array-methods.js +43 -0
- data/test/dummy/node_modules/core-js/modules/$.array-species-create.js +16 -0
- data/test/dummy/node_modules/core-js/modules/$.buffer.js +288 -0
- data/test/dummy/node_modules/core-js/modules/$.classof.js +16 -0
- data/test/dummy/node_modules/core-js/modules/$.cof.js +5 -0
- data/test/dummy/node_modules/core-js/modules/$.collection-strong.js +159 -0
- data/test/dummy/node_modules/core-js/modules/$.collection-to-json.js +11 -0
- data/test/dummy/node_modules/core-js/modules/$.collection-weak.js +86 -0
- data/test/dummy/node_modules/core-js/modules/$.collection.js +79 -0
- data/test/dummy/node_modules/core-js/modules/$.core.js +2 -0
- data/test/dummy/node_modules/core-js/modules/$.ctx.js +20 -0
- data/test/dummy/node_modules/core-js/modules/$.defined.js +5 -0
- data/test/dummy/node_modules/core-js/modules/$.descriptors.js +4 -0
- data/test/dummy/node_modules/core-js/modules/$.dom-create.js +7 -0
- data/test/dummy/node_modules/core-js/modules/$.enum-keys.js +14 -0
- data/test/dummy/node_modules/core-js/modules/$.export.js +41 -0
- data/test/dummy/node_modules/core-js/modules/$.fails-is-regexp.js +12 -0
- data/test/dummy/node_modules/core-js/modules/$.fails.js +7 -0
- data/test/dummy/node_modules/core-js/modules/$.fix-re-wks.js +26 -0
- data/test/dummy/node_modules/core-js/modules/$.flags.js +13 -0
- data/test/dummy/node_modules/core-js/modules/$.for-of.js +19 -0
- data/test/dummy/node_modules/core-js/modules/$.get-names.js +20 -0
- data/test/dummy/node_modules/core-js/modules/$.global.js +4 -0
- data/test/dummy/node_modules/core-js/modules/$.has.js +4 -0
- data/test/dummy/node_modules/core-js/modules/$.hide.js +8 -0
- data/test/dummy/node_modules/core-js/modules/$.html.js +1 -0
- data/test/dummy/node_modules/core-js/modules/$.invoke.js +16 -0
- data/test/dummy/node_modules/core-js/modules/$.iobject.js +5 -0
- data/test/dummy/node_modules/core-js/modules/$.is-array-iter.js +8 -0
- data/test/dummy/node_modules/core-js/modules/$.is-array.js +5 -0
- data/test/dummy/node_modules/core-js/modules/$.is-integer.js +6 -0
- data/test/dummy/node_modules/core-js/modules/$.is-object.js +3 -0
- data/test/dummy/node_modules/core-js/modules/$.is-regexp.js +8 -0
- data/test/dummy/node_modules/core-js/modules/$.iter-call.js +12 -0
- data/test/dummy/node_modules/core-js/modules/$.iter-create.js +13 -0
- data/test/dummy/node_modules/core-js/modules/$.iter-define.js +66 -0
- data/test/dummy/node_modules/core-js/modules/$.iter-detect.js +21 -0
- data/test/dummy/node_modules/core-js/modules/$.iter-step.js +3 -0
- data/test/dummy/node_modules/core-js/modules/$.iterators.js +1 -0
- data/test/dummy/node_modules/core-js/modules/$.js +13 -0
- data/test/dummy/node_modules/core-js/modules/$.keyof.js +10 -0
- data/test/dummy/node_modules/core-js/modules/$.library.js +1 -0
- data/test/dummy/node_modules/core-js/modules/$.math-expm1.js +4 -0
- data/test/dummy/node_modules/core-js/modules/$.math-log1p.js +4 -0
- data/test/dummy/node_modules/core-js/modules/$.math-sign.js +4 -0
- data/test/dummy/node_modules/core-js/modules/$.microtask.js +64 -0
- data/test/dummy/node_modules/core-js/modules/$.object-assign.js +33 -0
- data/test/dummy/node_modules/core-js/modules/$.object-define.js +11 -0
- data/test/dummy/node_modules/core-js/modules/$.object-sap.js +10 -0
- data/test/dummy/node_modules/core-js/modules/$.object-to-array.js +16 -0
- data/test/dummy/node_modules/core-js/modules/$.own-keys.js +9 -0
- data/test/dummy/node_modules/core-js/modules/$.partial.js +24 -0
- data/test/dummy/node_modules/core-js/modules/$.path.js +1 -0
- data/test/dummy/node_modules/core-js/modules/$.property-desc.js +8 -0
- data/test/dummy/node_modules/core-js/modules/$.redefine-all.js +5 -0
- data/test/dummy/node_modules/core-js/modules/$.redefine.js +27 -0
- data/test/dummy/node_modules/core-js/modules/$.replacer.js +8 -0
- data/test/dummy/node_modules/core-js/modules/$.same-value.js +4 -0
- data/test/dummy/node_modules/core-js/modules/$.set-proto.js +26 -0
- data/test/dummy/node_modules/core-js/modules/$.set-species.js +13 -0
- data/test/dummy/node_modules/core-js/modules/$.set-to-string-tag.js +7 -0
- data/test/dummy/node_modules/core-js/modules/$.shared.js +6 -0
- data/test/dummy/node_modules/core-js/modules/$.species-constructor.js +8 -0
- data/test/dummy/node_modules/core-js/modules/$.strict-new.js +4 -0
- data/test/dummy/node_modules/core-js/modules/$.string-at.js +17 -0
- data/test/dummy/node_modules/core-js/modules/$.string-context.js +8 -0
- data/test/dummy/node_modules/core-js/modules/$.string-pad.js +17 -0
- data/test/dummy/node_modules/core-js/modules/$.string-repeat.js +12 -0
- data/test/dummy/node_modules/core-js/modules/$.string-trim.js +29 -0
- data/test/dummy/node_modules/core-js/modules/$.task.js +75 -0
- data/test/dummy/node_modules/core-js/modules/$.to-index.js +7 -0
- data/test/dummy/node_modules/core-js/modules/$.to-integer.js +6 -0
- data/test/dummy/node_modules/core-js/modules/$.to-iobject.js +6 -0
- data/test/dummy/node_modules/core-js/modules/$.to-length.js +6 -0
- data/test/dummy/node_modules/core-js/modules/$.to-object.js +5 -0
- data/test/dummy/node_modules/core-js/modules/$.to-primitive.js +12 -0
- data/test/dummy/node_modules/core-js/modules/$.typed-array.js +365 -0
- data/test/dummy/node_modules/core-js/modules/$.typed.js +36 -0
- data/test/dummy/node_modules/core-js/modules/$.uid.js +5 -0
- data/test/dummy/node_modules/core-js/modules/$.wks.js +7 -0
- data/test/dummy/node_modules/core-js/modules/core.delay.js +12 -0
- data/test/dummy/node_modules/core-js/modules/core.dict.js +153 -0
- data/test/dummy/node_modules/core-js/modules/core.function.part.js +7 -0
- data/test/dummy/node_modules/core-js/modules/core.get-iterator-method.js +8 -0
- data/test/dummy/node_modules/core-js/modules/core.get-iterator.js +7 -0
- data/test/dummy/node_modules/core-js/modules/core.is-iterable.js +9 -0
- data/test/dummy/node_modules/core-js/modules/core.log.js +26 -0
- data/test/dummy/node_modules/core-js/modules/core.number.iterator.js +9 -0
- data/test/dummy/node_modules/core-js/modules/core.object.classof.js +3 -0
- data/test/dummy/node_modules/core-js/modules/core.object.define.js +4 -0
- data/test/dummy/node_modules/core-js/modules/core.object.is-object.js +3 -0
- data/test/dummy/node_modules/core-js/modules/core.object.make.js +9 -0
- data/test/dummy/node_modules/core-js/modules/core.string.escape-html.js +11 -0
- data/test/dummy/node_modules/core-js/modules/core.string.unescape-html.js +11 -0
- data/test/dummy/node_modules/core-js/modules/es5.js +276 -0
- data/test/dummy/node_modules/core-js/modules/es6.array.copy-within.js +6 -0
- data/test/dummy/node_modules/core-js/modules/es6.array.fill.js +6 -0
- data/test/dummy/node_modules/core-js/modules/es6.array.find-index.js +14 -0
- data/test/dummy/node_modules/core-js/modules/es6.array.find.js +14 -0
- data/test/dummy/node_modules/core-js/modules/es6.array.from.js +36 -0
- data/test/dummy/node_modules/core-js/modules/es6.array.iterator.js +34 -0
- data/test/dummy/node_modules/core-js/modules/es6.array.of.js +19 -0
- data/test/dummy/node_modules/core-js/modules/es6.array.species.js +1 -0
- data/test/dummy/node_modules/core-js/modules/es6.date.to-string.js +10 -0
- data/test/dummy/node_modules/core-js/modules/es6.function.has-instance.js +13 -0
- data/test/dummy/node_modules/core-js/modules/es6.function.name.js +16 -0
- data/test/dummy/node_modules/core-js/modules/es6.map.js +17 -0
- data/test/dummy/node_modules/core-js/modules/es6.math.acosh.js +14 -0
- data/test/dummy/node_modules/core-js/modules/es6.math.asinh.js +8 -0
- data/test/dummy/node_modules/core-js/modules/es6.math.atanh.js +8 -0
- data/test/dummy/node_modules/core-js/modules/es6.math.cbrt.js +9 -0
- data/test/dummy/node_modules/core-js/modules/es6.math.clz32.js +8 -0
- data/test/dummy/node_modules/core-js/modules/es6.math.cosh.js +9 -0
- data/test/dummy/node_modules/core-js/modules/es6.math.expm1.js +4 -0
- data/test/dummy/node_modules/core-js/modules/es6.math.fround.js +26 -0
- data/test/dummy/node_modules/core-js/modules/es6.math.hypot.js +26 -0
- data/test/dummy/node_modules/core-js/modules/es6.math.imul.js +17 -0
- data/test/dummy/node_modules/core-js/modules/es6.math.log10.js +8 -0
- data/test/dummy/node_modules/core-js/modules/es6.math.log1p.js +4 -0
- data/test/dummy/node_modules/core-js/modules/es6.math.log2.js +8 -0
- data/test/dummy/node_modules/core-js/modules/es6.math.sign.js +4 -0
- data/test/dummy/node_modules/core-js/modules/es6.math.sinh.js +15 -0
- data/test/dummy/node_modules/core-js/modules/es6.math.tanh.js +12 -0
- data/test/dummy/node_modules/core-js/modules/es6.math.trunc.js +8 -0
- data/test/dummy/node_modules/core-js/modules/es6.number.constructor.js +66 -0
- data/test/dummy/node_modules/core-js/modules/es6.number.epsilon.js +4 -0
- data/test/dummy/node_modules/core-js/modules/es6.number.is-finite.js +9 -0
- data/test/dummy/node_modules/core-js/modules/es6.number.is-integer.js +4 -0
- data/test/dummy/node_modules/core-js/modules/es6.number.is-nan.js +8 -0
- data/test/dummy/node_modules/core-js/modules/es6.number.is-safe-integer.js +10 -0
- data/test/dummy/node_modules/core-js/modules/es6.number.max-safe-integer.js +4 -0
- data/test/dummy/node_modules/core-js/modules/es6.number.min-safe-integer.js +4 -0
- data/test/dummy/node_modules/core-js/modules/es6.number.parse-float.js +4 -0
- data/test/dummy/node_modules/core-js/modules/es6.number.parse-int.js +4 -0
- data/test/dummy/node_modules/core-js/modules/es6.object.assign.js +4 -0
- data/test/dummy/node_modules/core-js/modules/es6.object.freeze.js +8 -0
- data/test/dummy/node_modules/core-js/modules/es6.object.get-own-property-descriptor.js +8 -0
- data/test/dummy/node_modules/core-js/modules/es6.object.get-own-property-names.js +4 -0
- data/test/dummy/node_modules/core-js/modules/es6.object.get-prototype-of.js +8 -0
- data/test/dummy/node_modules/core-js/modules/es6.object.is-extensible.js +8 -0
- data/test/dummy/node_modules/core-js/modules/es6.object.is-frozen.js +8 -0
- data/test/dummy/node_modules/core-js/modules/es6.object.is-sealed.js +8 -0
- data/test/dummy/node_modules/core-js/modules/es6.object.is.js +3 -0
- data/test/dummy/node_modules/core-js/modules/es6.object.keys.js +8 -0
- data/test/dummy/node_modules/core-js/modules/es6.object.prevent-extensions.js +8 -0
- data/test/dummy/node_modules/core-js/modules/es6.object.seal.js +8 -0
- data/test/dummy/node_modules/core-js/modules/es6.object.set-prototype-of.js +3 -0
- data/test/dummy/node_modules/core-js/modules/es6.object.to-string.js +10 -0
- data/test/dummy/node_modules/core-js/modules/es6.promise.js +289 -0
- data/test/dummy/node_modules/core-js/modules/es6.reflect.apply.js +9 -0
- data/test/dummy/node_modules/core-js/modules/es6.reflect.construct.js +38 -0
- data/test/dummy/node_modules/core-js/modules/es6.reflect.define-property.js +19 -0
- data/test/dummy/node_modules/core-js/modules/es6.reflect.delete-property.js +11 -0
- data/test/dummy/node_modules/core-js/modules/es6.reflect.enumerate.js +26 -0
- data/test/dummy/node_modules/core-js/modules/es6.reflect.get-own-property-descriptor.js +10 -0
- data/test/dummy/node_modules/core-js/modules/es6.reflect.get-prototype-of.js +10 -0
- data/test/dummy/node_modules/core-js/modules/es6.reflect.get.js +20 -0
- data/test/dummy/node_modules/core-js/modules/es6.reflect.has.js +8 -0
- data/test/dummy/node_modules/core-js/modules/es6.reflect.is-extensible.js +11 -0
- data/test/dummy/node_modules/core-js/modules/es6.reflect.own-keys.js +4 -0
- data/test/dummy/node_modules/core-js/modules/es6.reflect.prevent-extensions.js +16 -0
- data/test/dummy/node_modules/core-js/modules/es6.reflect.set-prototype-of.js +15 -0
- data/test/dummy/node_modules/core-js/modules/es6.reflect.set.js +29 -0
- data/test/dummy/node_modules/core-js/modules/es6.regexp.constructor.js +38 -0
- data/test/dummy/node_modules/core-js/modules/es6.regexp.flags.js +6 -0
- data/test/dummy/node_modules/core-js/modules/es6.regexp.match.js +10 -0
- data/test/dummy/node_modules/core-js/modules/es6.regexp.replace.js +12 -0
- data/test/dummy/node_modules/core-js/modules/es6.regexp.search.js +10 -0
- data/test/dummy/node_modules/core-js/modules/es6.regexp.split.js +12 -0
- data/test/dummy/node_modules/core-js/modules/es6.set.js +12 -0
- data/test/dummy/node_modules/core-js/modules/es6.string.code-point-at.js +9 -0
- data/test/dummy/node_modules/core-js/modules/es6.string.ends-with.js +21 -0
- data/test/dummy/node_modules/core-js/modules/es6.string.from-code-point.js +24 -0
- data/test/dummy/node_modules/core-js/modules/es6.string.includes.js +12 -0
- data/test/dummy/node_modules/core-js/modules/es6.string.iterator.js +17 -0
- data/test/dummy/node_modules/core-js/modules/es6.string.raw.js +19 -0
- data/test/dummy/node_modules/core-js/modules/es6.string.repeat.js +6 -0
- data/test/dummy/node_modules/core-js/modules/es6.string.starts-with.js +19 -0
- data/test/dummy/node_modules/core-js/modules/es6.string.trim.js +7 -0
- data/test/dummy/node_modules/core-js/modules/es6.symbol.js +227 -0
- data/test/dummy/node_modules/core-js/modules/es6.typed.array-buffer.js +43 -0
- data/test/dummy/node_modules/core-js/modules/es6.typed.data-view.js +4 -0
- data/test/dummy/node_modules/core-js/modules/es6.typed.float32-array.js +5 -0
- data/test/dummy/node_modules/core-js/modules/es6.typed.float64-array.js +5 -0
- data/test/dummy/node_modules/core-js/modules/es6.typed.int16-array.js +5 -0
- data/test/dummy/node_modules/core-js/modules/es6.typed.int32-array.js +5 -0
- data/test/dummy/node_modules/core-js/modules/es6.typed.int8-array.js +5 -0
- data/test/dummy/node_modules/core-js/modules/es6.typed.uint16-array.js +5 -0
- data/test/dummy/node_modules/core-js/modules/es6.typed.uint32-array.js +5 -0
- data/test/dummy/node_modules/core-js/modules/es6.typed.uint8-array.js +5 -0
- data/test/dummy/node_modules/core-js/modules/es6.typed.uint8-clamped-array.js +5 -0
- data/test/dummy/node_modules/core-js/modules/es6.weak-map.js +43 -0
- data/test/dummy/node_modules/core-js/modules/es6.weak-set.js +12 -0
- data/test/dummy/node_modules/core-js/modules/es7.array.includes.js +12 -0
- data/test/dummy/node_modules/core-js/modules/es7.map.to-json.js +4 -0
- data/test/dummy/node_modules/core-js/modules/es7.object.entries.js +9 -0
- data/test/dummy/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js +23 -0
- data/test/dummy/node_modules/core-js/modules/es7.object.values.js +9 -0
- data/test/dummy/node_modules/core-js/modules/es7.regexp.escape.js +5 -0
- data/test/dummy/node_modules/core-js/modules/es7.set.to-json.js +4 -0
- data/test/dummy/node_modules/core-js/modules/es7.string.at.js +10 -0
- data/test/dummy/node_modules/core-js/modules/es7.string.pad-left.js +9 -0
- data/test/dummy/node_modules/core-js/modules/es7.string.pad-right.js +9 -0
- data/test/dummy/node_modules/core-js/modules/es7.string.trim-left.js +7 -0
- data/test/dummy/node_modules/core-js/modules/es7.string.trim-right.js +7 -0
- data/test/dummy/node_modules/core-js/modules/js.array.statics.js +17 -0
- data/test/dummy/node_modules/core-js/modules/library/$.add-to-unscopables.js +1 -0
- data/test/dummy/node_modules/core-js/modules/library/$.collection.js +55 -0
- data/test/dummy/node_modules/core-js/modules/library/$.export.js +46 -0
- data/test/dummy/node_modules/core-js/modules/library/$.library.js +1 -0
- data/test/dummy/node_modules/core-js/modules/library/$.path.js +1 -0
- data/test/dummy/node_modules/core-js/modules/library/$.redefine.js +1 -0
- data/test/dummy/node_modules/core-js/modules/library/$.set-species.js +13 -0
- data/test/dummy/node_modules/core-js/modules/library/es6.date.to-string.js +0 -0
- data/test/dummy/node_modules/core-js/modules/library/es6.function.name.js +0 -0
- data/test/dummy/node_modules/core-js/modules/library/es6.number.constructor.js +0 -0
- data/test/dummy/node_modules/core-js/modules/library/es6.object.to-string.js +0 -0
- data/test/dummy/node_modules/core-js/modules/library/es6.regexp.constructor.js +1 -0
- data/test/dummy/node_modules/core-js/modules/library/es6.regexp.flags.js +0 -0
- data/test/dummy/node_modules/core-js/modules/library/es6.regexp.match.js +0 -0
- data/test/dummy/node_modules/core-js/modules/library/es6.regexp.replace.js +0 -0
- data/test/dummy/node_modules/core-js/modules/library/es6.regexp.search.js +0 -0
- data/test/dummy/node_modules/core-js/modules/library/es6.regexp.split.js +0 -0
- data/test/dummy/node_modules/core-js/modules/library/web.dom.iterable.js +3 -0
- data/test/dummy/node_modules/core-js/modules/web.dom.iterable.js +12 -0
- data/test/dummy/node_modules/core-js/modules/web.immediate.js +6 -0
- data/test/dummy/node_modules/core-js/modules/web.timers.js +20 -0
- data/test/dummy/node_modules/core-js/package.json +111 -0
- data/test/dummy/node_modules/core-js/shim.js +104 -0
- data/test/dummy/node_modules/core-js/web/dom.js +2 -0
- data/test/dummy/node_modules/core-js/web/immediate.js +2 -0
- data/test/dummy/node_modules/core-js/web/index.js +4 -0
- data/test/dummy/node_modules/core-js/web/timers.js +2 -0
- data/test/dummy/node_modules/debug/History.md +195 -0
- data/test/dummy/node_modules/debug/Makefile +36 -0
- data/test/dummy/node_modules/debug/Readme.md +188 -0
- data/test/dummy/node_modules/debug/browser.js +168 -0
- data/test/dummy/node_modules/debug/component.json +19 -0
- data/test/dummy/node_modules/debug/debug.js +197 -0
- data/test/dummy/node_modules/debug/node.js +209 -0
- data/test/dummy/node_modules/debug/package.json +98 -0
- data/test/dummy/node_modules/detect-indent/cli.js +55 -0
- data/test/dummy/node_modules/detect-indent/index.js +119 -0
- data/test/dummy/node_modules/detect-indent/license +21 -0
- data/test/dummy/node_modules/detect-indent/package.json +102 -0
- data/test/dummy/node_modules/detect-indent/readme.md +120 -0
- data/test/dummy/node_modules/envify/README.md +145 -0
- data/test/dummy/node_modules/envify/bin/envify +17 -0
- data/test/dummy/node_modules/envify/custom.js +38 -0
- data/test/dummy/node_modules/envify/index.js +1 -0
- data/test/dummy/node_modules/envify/package.json +93 -0
- data/test/dummy/node_modules/envify/visitors.js +49 -0
- data/test/dummy/node_modules/escape-string-regexp/index.js +11 -0
- data/test/dummy/node_modules/escape-string-regexp/license +21 -0
- data/test/dummy/node_modules/escape-string-regexp/package.json +95 -0
- data/test/dummy/node_modules/escape-string-regexp/readme.md +27 -0
- data/test/dummy/node_modules/esprima-fb/README.md +32 -0
- data/test/dummy/node_modules/esprima-fb/bin/esparse.js +117 -0
- data/test/dummy/node_modules/esprima-fb/bin/esvalidate.js +199 -0
- data/test/dummy/node_modules/esprima-fb/esprima.js +7704 -0
- data/test/dummy/node_modules/esprima-fb/package.json +120 -0
- data/test/dummy/node_modules/esprima-fb/test/compat.js +244 -0
- data/test/dummy/node_modules/esprima-fb/test/reflect.js +421 -0
- data/test/dummy/node_modules/esprima-fb/test/run.js +66 -0
- data/test/dummy/node_modules/esprima-fb/test/runner.js +515 -0
- data/test/dummy/node_modules/esprima-fb/test/test.js +23151 -0
- data/test/dummy/node_modules/estree-walker/README.md +45 -0
- data/test/dummy/node_modules/estree-walker/dist/estree-walker.es6.js +61 -0
- data/test/dummy/node_modules/estree-walker/dist/estree-walker.es6.js.map +1 -0
- data/test/dummy/node_modules/estree-walker/dist/estree-walker.umd.js +69 -0
- data/test/dummy/node_modules/estree-walker/dist/estree-walker.umd.js.map +1 -0
- data/test/dummy/node_modules/estree-walker/package.json +78 -0
- data/test/dummy/node_modules/estree-walker/src/estree-walker.js +52 -0
- data/test/dummy/node_modules/esutils/LICENSE.BSD +19 -0
- data/test/dummy/node_modules/esutils/README.md +169 -0
- data/test/dummy/node_modules/esutils/lib/ast.js +144 -0
- data/test/dummy/node_modules/esutils/lib/code.js +135 -0
- data/test/dummy/node_modules/esutils/lib/keyword.js +165 -0
- data/test/dummy/node_modules/esutils/lib/utils.js +33 -0
- data/test/dummy/node_modules/esutils/package.json +97 -0
- data/test/dummy/node_modules/fbjs/CHANGELOG.md +21 -0
- data/test/dummy/node_modules/fbjs/LICENSE +31 -0
- data/test/dummy/node_modules/fbjs/PATENTS +33 -0
- data/test/dummy/node_modules/fbjs/README.md +46 -0
- data/test/dummy/node_modules/fbjs/flow/include/CSSCore.js +108 -0
- data/test/dummy/node_modules/fbjs/flow/include/Deferred.js +66 -0
- data/test/dummy/node_modules/fbjs/flow/include/ErrorUtils.js +23 -0
- data/test/dummy/node_modules/fbjs/flow/include/EventListener.js +86 -0
- data/test/dummy/node_modules/fbjs/flow/include/ExecutionEnvironment.js +41 -0
- data/test/dummy/node_modules/fbjs/flow/include/Map.js +12 -0
- data/test/dummy/node_modules/fbjs/flow/include/Promise.js +12 -0
- data/test/dummy/node_modules/fbjs/flow/include/PromiseMap.js +60 -0
- data/test/dummy/node_modules/fbjs/flow/include/TouchEventUtils.js +35 -0
- data/test/dummy/node_modules/fbjs/flow/include/URI.js +18 -0
- data/test/dummy/node_modules/fbjs/flow/include/UserAgent.js +259 -0
- data/test/dummy/node_modules/fbjs/flow/include/UserAgentData.js +84 -0
- data/test/dummy/node_modules/fbjs/flow/include/VersionRange.js +385 -0
- data/test/dummy/node_modules/fbjs/flow/include/areEqual.js +110 -0
- data/test/dummy/node_modules/fbjs/flow/include/camelize.js +30 -0
- data/test/dummy/node_modules/fbjs/flow/include/camelizeStyleName.js +40 -0
- data/test/dummy/node_modules/fbjs/flow/include/containsNode.js +42 -0
- data/test/dummy/node_modules/fbjs/flow/include/crc32.js +72 -0
- data/test/dummy/node_modules/fbjs/flow/include/createArrayFromMixed.js +85 -0
- data/test/dummy/node_modules/fbjs/flow/include/createNodesFromMarkup.js +86 -0
- data/test/dummy/node_modules/fbjs/flow/include/emptyFunction.js +32 -0
- data/test/dummy/node_modules/fbjs/flow/include/emptyObject.js +20 -0
- data/test/dummy/node_modules/fbjs/flow/include/everyObject.js +51 -0
- data/test/dummy/node_modules/fbjs/flow/include/fetch.js +15 -0
- data/test/dummy/node_modules/fbjs/flow/include/fetchWithRetries.js +133 -0
- data/test/dummy/node_modules/fbjs/flow/include/filterObject.js +53 -0
- data/test/dummy/node_modules/fbjs/flow/include/flattenArray.js +47 -0
- data/test/dummy/node_modules/fbjs/flow/include/focusNode.js +27 -0
- data/test/dummy/node_modules/fbjs/flow/include/forEachObject.js +43 -0
- data/test/dummy/node_modules/fbjs/flow/include/getActiveElement.js +31 -0
- data/test/dummy/node_modules/fbjs/flow/include/getMarkupWrap.js +114 -0
- data/test/dummy/node_modules/fbjs/flow/include/getUnboundedScrollPosition.js +38 -0
- data/test/dummy/node_modules/fbjs/flow/include/hyphenate.js +31 -0
- data/test/dummy/node_modules/fbjs/flow/include/hyphenateStyleName.js +39 -0
- data/test/dummy/node_modules/fbjs/flow/include/invariant.js +53 -0
- data/test/dummy/node_modules/fbjs/flow/include/isEmpty.js +30 -0
- data/test/dummy/node_modules/fbjs/flow/include/isNode.js +26 -0
- data/test/dummy/node_modules/fbjs/flow/include/isTextNode.js +23 -0
- data/test/dummy/node_modules/fbjs/flow/include/joinClasses.js +39 -0
- data/test/dummy/node_modules/fbjs/flow/include/keyMirror.js +51 -0
- data/test/dummy/node_modules/fbjs/flow/include/keyOf.js +34 -0
- data/test/dummy/node_modules/fbjs/flow/include/mapObject.js +51 -0
- data/test/dummy/node_modules/fbjs/flow/include/memoizeStringOnly.js +31 -0
- data/test/dummy/node_modules/fbjs/flow/include/monitorCodeUse.js +30 -0
- data/test/dummy/node_modules/fbjs/flow/include/nativeRequestAnimationFrame.js +19 -0
- data/test/dummy/node_modules/fbjs/flow/include/nullthrows.js +20 -0
- data/test/dummy/node_modules/fbjs/flow/include/performance.js +26 -0
- data/test/dummy/node_modules/fbjs/flow/include/performanceNow.js +27 -0
- data/test/dummy/node_modules/fbjs/flow/include/removeFromArray.js +24 -0
- data/test/dummy/node_modules/fbjs/flow/include/requestAnimationFrame.js +31 -0
- data/test/dummy/node_modules/fbjs/flow/include/resolveImmediate.js +30 -0
- data/test/dummy/node_modules/fbjs/flow/include/shallowEqual.js +51 -0
- data/test/dummy/node_modules/fbjs/flow/include/someObject.js +51 -0
- data/test/dummy/node_modules/fbjs/flow/include/sprintf.js +27 -0
- data/test/dummy/node_modules/fbjs/flow/include/toArray.js +66 -0
- data/test/dummy/node_modules/fbjs/flow/include/warning.js +54 -0
- data/test/dummy/node_modules/fbjs/flow/include/xhrSimpleDataSerializer.js +21 -0
- data/test/dummy/node_modules/fbjs/flow/lib/dev.js +10 -0
- data/test/dummy/node_modules/fbjs/index.js +1 -0
- data/test/dummy/node_modules/fbjs/lib/CSSCore.js +97 -0
- data/test/dummy/node_modules/fbjs/lib/Deferred.js +72 -0
- data/test/dummy/node_modules/fbjs/lib/ErrorUtils.js +25 -0
- data/test/dummy/node_modules/fbjs/lib/EventListener.js +84 -0
- data/test/dummy/node_modules/fbjs/lib/ExecutionEnvironment.js +36 -0
- data/test/dummy/node_modules/fbjs/lib/Map.js +14 -0
- data/test/dummy/node_modules/fbjs/lib/Promise.js +14 -0
- data/test/dummy/node_modules/fbjs/lib/PromiseMap.js +59 -0
- data/test/dummy/node_modules/fbjs/lib/TouchEventUtils.js +35 -0
- data/test/dummy/node_modules/fbjs/lib/URI.js +22 -0
- data/test/dummy/node_modules/fbjs/lib/UserAgent.js +238 -0
- data/test/dummy/node_modules/fbjs/lib/UserAgentData.js +83 -0
- data/test/dummy/node_modules/fbjs/lib/VersionRange.js +391 -0
- data/test/dummy/node_modules/fbjs/lib/__mocks__/ErrorUtils.js +22 -0
- data/test/dummy/node_modules/fbjs/lib/__mocks__/crc32.js +12 -0
- data/test/dummy/node_modules/fbjs/lib/__mocks__/fetch.js +26 -0
- data/test/dummy/node_modules/fbjs/lib/__mocks__/fetchWithRetries.js +31 -0
- data/test/dummy/node_modules/fbjs/lib/__mocks__/nullthrows.js +14 -0
- data/test/dummy/node_modules/fbjs/lib/areEqual.js +109 -0
- data/test/dummy/node_modules/fbjs/lib/camelize.js +32 -0
- data/test/dummy/node_modules/fbjs/lib/camelizeStyleName.js +40 -0
- data/test/dummy/node_modules/fbjs/lib/containsNode.js +55 -0
- data/test/dummy/node_modules/fbjs/lib/crc32.js +30 -0
- data/test/dummy/node_modules/fbjs/lib/createArrayFromMixed.js +85 -0
- data/test/dummy/node_modules/fbjs/lib/createNodesFromMarkup.js +84 -0
- data/test/dummy/node_modules/fbjs/lib/emptyFunction.js +38 -0
- data/test/dummy/node_modules/fbjs/lib/emptyObject.js +20 -0
- data/test/dummy/node_modules/fbjs/lib/everyObject.js +47 -0
- data/test/dummy/node_modules/fbjs/lib/fetch.js +15 -0
- data/test/dummy/node_modules/fbjs/lib/fetchWithRetries.js +119 -0
- data/test/dummy/node_modules/fbjs/lib/filterObject.js +52 -0
- data/test/dummy/node_modules/fbjs/lib/flattenArray.js +49 -0
- data/test/dummy/node_modules/fbjs/lib/focusNode.js +26 -0
- data/test/dummy/node_modules/fbjs/lib/forEachObject.js +43 -0
- data/test/dummy/node_modules/fbjs/lib/getActiveElement.js +33 -0
- data/test/dummy/node_modules/fbjs/lib/getMarkupWrap.js +95 -0
- data/test/dummy/node_modules/fbjs/lib/getUnboundedScrollPosition.js +38 -0
- data/test/dummy/node_modules/fbjs/lib/hyphenate.js +33 -0
- data/test/dummy/node_modules/fbjs/lib/hyphenateStyleName.js +39 -0
- data/test/dummy/node_modules/fbjs/lib/invariant.js +49 -0
- data/test/dummy/node_modules/fbjs/lib/isEmpty.js +32 -0
- data/test/dummy/node_modules/fbjs/lib/isNode.js +23 -0
- data/test/dummy/node_modules/fbjs/lib/isTextNode.js +25 -0
- data/test/dummy/node_modules/fbjs/lib/joinClasses.js +39 -0
- data/test/dummy/node_modules/fbjs/lib/keyMirror.js +48 -0
- data/test/dummy/node_modules/fbjs/lib/keyOf.js +35 -0
- data/test/dummy/node_modules/fbjs/lib/mapObject.js +51 -0
- data/test/dummy/node_modules/fbjs/lib/memoizeStringOnly.js +31 -0
- data/test/dummy/node_modules/fbjs/lib/monitorCodeUse.js +27 -0
- data/test/dummy/node_modules/fbjs/lib/nativeRequestAnimationFrame.js +16 -0
- data/test/dummy/node_modules/fbjs/lib/nullthrows.js +22 -0
- data/test/dummy/node_modules/fbjs/lib/performance.js +23 -0
- data/test/dummy/node_modules/fbjs/lib/performanceNow.js +29 -0
- data/test/dummy/node_modules/fbjs/lib/removeFromArray.js +26 -0
- data/test/dummy/node_modules/fbjs/lib/requestAnimationFrame.js +31 -0
- data/test/dummy/node_modules/fbjs/lib/resolveImmediate.js +32 -0
- data/test/dummy/node_modules/fbjs/lib/shallowEqual.js +50 -0
- data/test/dummy/node_modules/fbjs/lib/someObject.js +47 -0
- data/test/dummy/node_modules/fbjs/lib/sprintf.js +35 -0
- data/test/dummy/node_modules/fbjs/lib/toArray.js +57 -0
- data/test/dummy/node_modules/fbjs/lib/warning.js +57 -0
- data/test/dummy/node_modules/fbjs/lib/xhrSimpleDataSerializer.js +23 -0
- data/test/dummy/node_modules/fbjs/module-map.json +59 -0
- data/test/dummy/node_modules/fbjs/package.json +159 -0
- data/test/dummy/node_modules/get-stdin/index.js +49 -0
- data/test/dummy/node_modules/get-stdin/package.json +89 -0
- data/test/dummy/node_modules/get-stdin/readme.md +44 -0
- data/test/dummy/node_modules/globals/globals.json +1216 -0
- data/test/dummy/node_modules/globals/index.js +1 -0
- data/test/dummy/node_modules/globals/license +21 -0
- data/test/dummy/node_modules/globals/package.json +102 -0
- data/test/dummy/node_modules/globals/readme.md +39 -0
- data/test/dummy/node_modules/has-ansi/index.js +4 -0
- data/test/dummy/node_modules/has-ansi/license +21 -0
- data/test/dummy/node_modules/has-ansi/package.json +109 -0
- data/test/dummy/node_modules/has-ansi/readme.md +36 -0
- data/test/dummy/node_modules/home-or-tmp/index.js +5 -0
- data/test/dummy/node_modules/home-or-tmp/license +21 -0
- data/test/dummy/node_modules/home-or-tmp/package.json +95 -0
- data/test/dummy/node_modules/home-or-tmp/readme.md +32 -0
- data/test/dummy/node_modules/invariant/CHANGELOG.md +33 -0
- data/test/dummy/node_modules/invariant/README.md +35 -0
- data/test/dummy/node_modules/invariant/browser.js +51 -0
- data/test/dummy/node_modules/invariant/invariant.js +53 -0
- data/test/dummy/node_modules/invariant/package.json +89 -0
- data/test/dummy/node_modules/is-finite/index.js +6 -0
- data/test/dummy/node_modules/is-finite/license +21 -0
- data/test/dummy/node_modules/is-finite/package.json +93 -0
- data/test/dummy/node_modules/is-finite/readme.md +30 -0
- data/test/dummy/node_modules/is-integer/LICENSE +10 -0
- data/test/dummy/node_modules/is-integer/README.md +31 -0
- data/test/dummy/node_modules/is-integer/index.js +8 -0
- data/test/dummy/node_modules/is-integer/package.json +81 -0
- data/test/dummy/node_modules/is-integer/test.js +72 -0
- data/test/dummy/node_modules/js-tokens/LICENSE +21 -0
- data/test/dummy/node_modules/js-tokens/changelog.md +65 -0
- data/test/dummy/node_modules/js-tokens/index.js +19 -0
- data/test/dummy/node_modules/js-tokens/package.json +88 -0
- data/test/dummy/node_modules/js-tokens/readme.md +204 -0
- data/test/dummy/node_modules/jsesc/LICENSE-MIT.txt +20 -0
- data/test/dummy/node_modules/jsesc/README.md +375 -0
- data/test/dummy/node_modules/jsesc/bin/jsesc +138 -0
- data/test/dummy/node_modules/jsesc/jsesc.js +265 -0
- data/test/dummy/node_modules/jsesc/man/jsesc.1 +90 -0
- data/test/dummy/node_modules/jsesc/package.json +104 -0
- data/test/dummy/node_modules/json5/CHANGELOG.md +144 -0
- data/test/dummy/node_modules/json5/README.md +271 -0
- data/test/dummy/node_modules/json5/lib/cli.js +41 -0
- data/test/dummy/node_modules/json5/lib/json5.js +754 -0
- data/test/dummy/node_modules/json5/lib/require.js +18 -0
- data/test/dummy/node_modules/json5/package.json +89 -0
- data/test/dummy/node_modules/json5/package.json5 +30 -0
- data/test/dummy/node_modules/json5/test/parse-cases/arrays/empty-array.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/arrays/leading-comma-array.js +3 -0
- data/test/dummy/node_modules/json5/test/parse-cases/arrays/lone-trailing-comma-array.js +3 -0
- data/test/dummy/node_modules/json5/test/parse-cases/arrays/no-comma-array.txt +4 -0
- data/test/dummy/node_modules/json5/test/parse-cases/arrays/regular-array.json +5 -0
- data/test/dummy/node_modules/json5/test/parse-cases/arrays/trailing-comma-array.json5 +3 -0
- data/test/dummy/node_modules/json5/test/parse-cases/comments/block-comment-following-array-element.json5 +6 -0
- data/test/dummy/node_modules/json5/test/parse-cases/comments/block-comment-following-top-level-value.json5 +5 -0
- data/test/dummy/node_modules/json5/test/parse-cases/comments/block-comment-in-string.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/comments/block-comment-preceding-top-level-value.json5 +5 -0
- data/test/dummy/node_modules/json5/test/parse-cases/comments/block-comment-with-asterisks.json5 +7 -0
- data/test/dummy/node_modules/json5/test/parse-cases/comments/inline-comment-following-array-element.json5 +3 -0
- data/test/dummy/node_modules/json5/test/parse-cases/comments/inline-comment-following-top-level-value.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/comments/inline-comment-in-string.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/comments/inline-comment-preceding-top-level-value.json5 +2 -0
- data/test/dummy/node_modules/json5/test/parse-cases/comments/top-level-block-comment.txt +4 -0
- data/test/dummy/node_modules/json5/test/parse-cases/comments/top-level-inline-comment.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/comments/unterminated-block-comment.txt +5 -0
- data/test/dummy/node_modules/json5/test/parse-cases/misc/empty.txt +0 -0
- data/test/dummy/node_modules/json5/test/parse-cases/misc/npm-package.json +106 -0
- data/test/dummy/node_modules/json5/test/parse-cases/misc/npm-package.json5 +106 -0
- data/test/dummy/node_modules/json5/test/parse-cases/misc/readme-example.json5 +25 -0
- data/test/dummy/node_modules/json5/test/parse-cases/misc/valid-whitespace.json5 +5 -0
- data/test/dummy/node_modules/json5/test/parse-cases/new-lines/comment-cr.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/new-lines/comment-crlf.json5 +3 -0
- data/test/dummy/node_modules/json5/test/parse-cases/new-lines/comment-lf.json5 +3 -0
- data/test/dummy/node_modules/json5/test/parse-cases/new-lines/escaped-cr.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/new-lines/escaped-crlf.json5 +5 -0
- data/test/dummy/node_modules/json5/test/parse-cases/new-lines/escaped-lf.json5 +5 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/binary-coffeescript.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/float-leading-decimal-point.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/float-leading-zero.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/float-trailing-decimal-point-with-integer-exponent.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/float-trailing-decimal-point.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/float-with-integer-exponent.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/float.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/hexadecimal-empty.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/hexadecimal-lowercase-letter.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/hexadecimal-uppercase-x.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/hexadecimal-with-integer-exponent.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/hexadecimal.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/infinity.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/integer-with-float-exponent.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/integer-with-hexadecimal-exponent.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/integer-with-integer-exponent.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/integer-with-negative-float-exponent.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/integer-with-negative-hexadecimal-exponent.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/integer-with-negative-integer-exponent.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/integer-with-negative-zero-integer-exponent.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/integer-with-positive-float-exponent.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/integer-with-positive-hexadecimal-exponent.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/integer-with-positive-integer-exponent.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/integer-with-positive-zero-integer-exponent.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/integer-with-zero-integer-exponent.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/integer.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/lone-decimal-point.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/nan.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/negative-binary-coffeescript.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/negative-float-leading-decimal-point.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/negative-float-leading-zero.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/negative-float-trailing-decimal-point.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/negative-float.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/negative-hexadecimal.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/negative-infinity.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/negative-integer.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/negative-noctal.js +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/negative-octal-coffeescript.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/negative-octal.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/negative-zero-binary-coffeescript.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/negative-zero-float-leading-decimal-point.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/negative-zero-float-trailing-decimal-point.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/negative-zero-float.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/negative-zero-hexadecimal.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/negative-zero-integer.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/negative-zero-octal-coffeescript.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/negative-zero-octal.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/noctal-with-leading-octal-digit.js +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/noctal.js +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/octal-coffeescript.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/octal.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/positive-binary-coffeescript.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/positive-float-leading-decimal-point.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/positive-float-leading-zero.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/positive-float-trailing-decimal-point.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/positive-float.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/positive-hexadecimal.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/positive-infinity.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/positive-integer.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/positive-noctal.js +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/positive-octal-coffeescript.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/positive-octal.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/positive-zero-binary-coffeescript.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/positive-zero-float-leading-decimal-point.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/positive-zero-float-trailing-decimal-point.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/positive-zero-float.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/positive-zero-hexadecimal.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/positive-zero-integer.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/positive-zero-octal-coffeescript.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/positive-zero-octal.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/zero-binary-coffeescript.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/zero-float-leading-decimal-point.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/zero-float-trailing-decimal-point.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/zero-float.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/zero-hexadecimal.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/zero-integer-with-integer-exponent.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/zero-integer.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/zero-octal-coffeescript.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/numbers/zero-octal.txt +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/objects/duplicate-keys.json +4 -0
- data/test/dummy/node_modules/json5/test/parse-cases/objects/empty-object.json +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/objects/illegal-unquoted-key-number.txt +3 -0
- data/test/dummy/node_modules/json5/test/parse-cases/objects/illegal-unquoted-key-symbol.txt +3 -0
- data/test/dummy/node_modules/json5/test/parse-cases/objects/leading-comma-object.txt +3 -0
- data/test/dummy/node_modules/json5/test/parse-cases/objects/lone-trailing-comma-object.txt +3 -0
- data/test/dummy/node_modules/json5/test/parse-cases/objects/no-comma-object.txt +4 -0
- data/test/dummy/node_modules/json5/test/parse-cases/objects/reserved-unquoted-key.json5 +3 -0
- data/test/dummy/node_modules/json5/test/parse-cases/objects/single-quoted-key.json5 +3 -0
- data/test/dummy/node_modules/json5/test/parse-cases/objects/trailing-comma-object.json5 +3 -0
- data/test/dummy/node_modules/json5/test/parse-cases/objects/unquoted-keys.json5 +8 -0
- data/test/dummy/node_modules/json5/test/parse-cases/strings/escaped-single-quoted-string.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/strings/multi-line-string.json5 +2 -0
- data/test/dummy/node_modules/json5/test/parse-cases/strings/single-quoted-string.json5 +1 -0
- data/test/dummy/node_modules/json5/test/parse-cases/strings/unescaped-multi-line-string.txt +2 -0
- data/test/dummy/node_modules/json5/test/parse-cases/todo/unicode-escaped-unquoted-key.json5 +3 -0
- data/test/dummy/node_modules/json5/test/parse-cases/todo/unicode-unquoted-key.json5 +3 -0
- data/test/dummy/node_modules/json5/test/parse.js +89 -0
- data/test/dummy/node_modules/json5/test/readme.md +23 -0
- data/test/dummy/node_modules/json5/test/require.js +18 -0
- data/test/dummy/node_modules/json5/test/stringify.js +498 -0
- data/test/dummy/node_modules/jstransform/LICENSE +201 -0
- data/test/dummy/node_modules/jstransform/README.md +98 -0
- data/test/dummy/node_modules/jstransform/jestEnvironment.js +1 -0
- data/test/dummy/node_modules/jstransform/jestPreprocessor.js +13 -0
- data/test/dummy/node_modules/jstransform/package.json +114 -0
- data/test/dummy/node_modules/jstransform/polyfill/Object.es6.js +52 -0
- data/test/dummy/node_modules/jstransform/src/__tests__/jstransform-test.js +481 -0
- data/test/dummy/node_modules/jstransform/src/__tests__/jstransform-utils-test.js +66 -0
- data/test/dummy/node_modules/jstransform/src/docblock.js +86 -0
- data/test/dummy/node_modules/jstransform/src/jstransform.js +299 -0
- data/test/dummy/node_modules/jstransform/src/utils.js +708 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/es6-arrow-function-visitors-test.js +239 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/es6-call-spread-visitors-test.js +96 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/es6-class-visitors-test.js +1515 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/es6-destructuring-visitors-test.js +279 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/es6-es7-object-integration-test.js +62 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/es6-object-concise-method-visitors-test.js +133 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/es6-object-short-notation-visitors-test.js +119 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/es6-rest-param-visitors-test.js +328 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/es6-template-visitors-test.js +208 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/es7-rest-property-helpers-test.js +97 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/es7-spread-property-visitors-test.js +160 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/gen/generate-type-syntax-test.js +52 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/gen/type-syntax-test.rec.js +846 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/reserved-words-test.js +74 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/type-alias-syntax-test.js +83 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/type-class-syntax-test.js +298 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/type-function-syntax-test.js +298 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/type-interface-syntax-test.js +72 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/type-object-method-syntax-test.js +186 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/type-pattern-syntax-test.js +91 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/type-syntax-test.js +194 -0
- data/test/dummy/node_modules/jstransform/visitors/__tests__/type-variable-declaration-syntax-test.js +208 -0
- data/test/dummy/node_modules/jstransform/visitors/es6-arrow-function-visitors.js +158 -0
- data/test/dummy/node_modules/jstransform/visitors/es6-call-spread-visitors.js +107 -0
- data/test/dummy/node_modules/jstransform/visitors/es6-class-visitors.js +588 -0
- data/test/dummy/node_modules/jstransform/visitors/es6-destructuring-visitors.js +280 -0
- data/test/dummy/node_modules/jstransform/visitors/es6-object-concise-method-visitors.js +69 -0
- data/test/dummy/node_modules/jstransform/visitors/es6-object-short-notation-visitors.js +53 -0
- data/test/dummy/node_modules/jstransform/visitors/es6-rest-param-visitors.js +106 -0
- data/test/dummy/node_modules/jstransform/visitors/es6-template-visitors.js +156 -0
- data/test/dummy/node_modules/jstransform/visitors/es7-rest-property-helpers.js +80 -0
- data/test/dummy/node_modules/jstransform/visitors/es7-spread-property-visitors.js +108 -0
- data/test/dummy/node_modules/jstransform/visitors/reserved-words-helper.js +74 -0
- data/test/dummy/node_modules/jstransform/visitors/reserved-words-visitors.js +68 -0
- data/test/dummy/node_modules/jstransform/visitors/type-syntax.js +172 -0
- data/test/dummy/node_modules/left-pad/README.md +21 -0
- data/test/dummy/node_modules/left-pad/index.js +17 -0
- data/test/dummy/node_modules/left-pad/package.json +77 -0
- data/test/dummy/node_modules/line-numbers/LICENSE +21 -0
- data/test/dummy/node_modules/line-numbers/changelog.md +11 -0
- data/test/dummy/node_modules/line-numbers/index.js +32 -0
- data/test/dummy/node_modules/line-numbers/package.json +83 -0
- data/test/dummy/node_modules/line-numbers/readme.md +67 -0
- data/test/dummy/node_modules/line-numbers/test/index.js +105 -0
- data/test/dummy/node_modules/lodash/LICENSE +22 -0
- data/test/dummy/node_modules/lodash/README.md +121 -0
- data/test/dummy/node_modules/lodash/array.js +44 -0
- data/test/dummy/node_modules/lodash/array/chunk.js +46 -0
- data/test/dummy/node_modules/lodash/array/compact.js +30 -0
- data/test/dummy/node_modules/lodash/array/difference.js +29 -0
- data/test/dummy/node_modules/lodash/array/drop.js +39 -0
- data/test/dummy/node_modules/lodash/array/dropRight.js +40 -0
- data/test/dummy/node_modules/lodash/array/dropRightWhile.js +59 -0
- data/test/dummy/node_modules/lodash/array/dropWhile.js +59 -0
- data/test/dummy/node_modules/lodash/array/fill.js +44 -0
- data/test/dummy/node_modules/lodash/array/findIndex.js +53 -0
- data/test/dummy/node_modules/lodash/array/findLastIndex.js +53 -0
- data/test/dummy/node_modules/lodash/array/first.js +22 -0
- data/test/dummy/node_modules/lodash/array/flatten.js +32 -0
- data/test/dummy/node_modules/lodash/array/flattenDeep.js +21 -0
- data/test/dummy/node_modules/lodash/array/head.js +1 -0
- data/test/dummy/node_modules/lodash/array/indexOf.js +53 -0
- data/test/dummy/node_modules/lodash/array/initial.js +20 -0
- data/test/dummy/node_modules/lodash/array/intersection.js +58 -0
- data/test/dummy/node_modules/lodash/array/last.js +19 -0
- data/test/dummy/node_modules/lodash/array/lastIndexOf.js +60 -0
- data/test/dummy/node_modules/lodash/array/object.js +1 -0
- data/test/dummy/node_modules/lodash/array/pull.js +52 -0
- data/test/dummy/node_modules/lodash/array/pullAt.js +40 -0
- data/test/dummy/node_modules/lodash/array/remove.js +64 -0
- data/test/dummy/node_modules/lodash/array/rest.js +21 -0
- data/test/dummy/node_modules/lodash/array/slice.js +30 -0
- data/test/dummy/node_modules/lodash/array/sortedIndex.js +53 -0
- data/test/dummy/node_modules/lodash/array/sortedLastIndex.js +25 -0
- data/test/dummy/node_modules/lodash/array/tail.js +1 -0
- data/test/dummy/node_modules/lodash/array/take.js +39 -0
- data/test/dummy/node_modules/lodash/array/takeRight.js +40 -0
- data/test/dummy/node_modules/lodash/array/takeRightWhile.js +59 -0
- data/test/dummy/node_modules/lodash/array/takeWhile.js +59 -0
- data/test/dummy/node_modules/lodash/array/union.js +24 -0
- data/test/dummy/node_modules/lodash/array/uniq.js +71 -0
- data/test/dummy/node_modules/lodash/array/unique.js +1 -0
- data/test/dummy/node_modules/lodash/array/unzip.js +47 -0
- data/test/dummy/node_modules/lodash/array/unzipWith.js +41 -0
- data/test/dummy/node_modules/lodash/array/without.js +27 -0
- data/test/dummy/node_modules/lodash/array/xor.js +35 -0
- data/test/dummy/node_modules/lodash/array/zip.js +21 -0
- data/test/dummy/node_modules/lodash/array/zipObject.js +43 -0
- data/test/dummy/node_modules/lodash/array/zipWith.js +36 -0
- data/test/dummy/node_modules/lodash/chain.js +16 -0
- data/test/dummy/node_modules/lodash/chain/chain.js +35 -0
- data/test/dummy/node_modules/lodash/chain/commit.js +1 -0
- data/test/dummy/node_modules/lodash/chain/concat.js +1 -0
- data/test/dummy/node_modules/lodash/chain/lodash.js +125 -0
- data/test/dummy/node_modules/lodash/chain/plant.js +1 -0
- data/test/dummy/node_modules/lodash/chain/reverse.js +1 -0
- data/test/dummy/node_modules/lodash/chain/run.js +1 -0
- data/test/dummy/node_modules/lodash/chain/tap.js +29 -0
- data/test/dummy/node_modules/lodash/chain/thru.js +26 -0
- data/test/dummy/node_modules/lodash/chain/toJSON.js +1 -0
- data/test/dummy/node_modules/lodash/chain/toString.js +1 -0
- data/test/dummy/node_modules/lodash/chain/value.js +1 -0
- data/test/dummy/node_modules/lodash/chain/valueOf.js +1 -0
- data/test/dummy/node_modules/lodash/chain/wrapperChain.js +32 -0
- data/test/dummy/node_modules/lodash/chain/wrapperCommit.js +32 -0
- data/test/dummy/node_modules/lodash/chain/wrapperConcat.js +34 -0
- data/test/dummy/node_modules/lodash/chain/wrapperPlant.js +45 -0
- data/test/dummy/node_modules/lodash/chain/wrapperReverse.js +43 -0
- data/test/dummy/node_modules/lodash/chain/wrapperToString.js +17 -0
- data/test/dummy/node_modules/lodash/chain/wrapperValue.js +20 -0
- data/test/dummy/node_modules/lodash/collection.js +44 -0
- data/test/dummy/node_modules/lodash/collection/all.js +1 -0
- data/test/dummy/node_modules/lodash/collection/any.js +1 -0
- data/test/dummy/node_modules/lodash/collection/at.js +29 -0
- data/test/dummy/node_modules/lodash/collection/collect.js +1 -0
- data/test/dummy/node_modules/lodash/collection/contains.js +1 -0
- data/test/dummy/node_modules/lodash/collection/countBy.js +54 -0
- data/test/dummy/node_modules/lodash/collection/detect.js +1 -0
- data/test/dummy/node_modules/lodash/collection/each.js +1 -0
- data/test/dummy/node_modules/lodash/collection/eachRight.js +1 -0
- data/test/dummy/node_modules/lodash/collection/every.js +66 -0
- data/test/dummy/node_modules/lodash/collection/filter.js +61 -0
- data/test/dummy/node_modules/lodash/collection/find.js +56 -0
- data/test/dummy/node_modules/lodash/collection/findLast.js +25 -0
- data/test/dummy/node_modules/lodash/collection/findWhere.js +37 -0
- data/test/dummy/node_modules/lodash/collection/foldl.js +1 -0
- data/test/dummy/node_modules/lodash/collection/foldr.js +1 -0
- data/test/dummy/node_modules/lodash/collection/forEach.js +37 -0
- data/test/dummy/node_modules/lodash/collection/forEachRight.js +26 -0
- data/test/dummy/node_modules/lodash/collection/groupBy.js +59 -0
- data/test/dummy/node_modules/lodash/collection/include.js +1 -0
- data/test/dummy/node_modules/lodash/collection/includes.js +57 -0
- data/test/dummy/node_modules/lodash/collection/indexBy.js +53 -0
- data/test/dummy/node_modules/lodash/collection/inject.js +1 -0
- data/test/dummy/node_modules/lodash/collection/invoke.js +42 -0
- data/test/dummy/node_modules/lodash/collection/map.js +68 -0
- data/test/dummy/node_modules/lodash/collection/max.js +1 -0
- data/test/dummy/node_modules/lodash/collection/min.js +1 -0
- data/test/dummy/node_modules/lodash/collection/partition.js +66 -0
- data/test/dummy/node_modules/lodash/collection/pluck.js +31 -0
- data/test/dummy/node_modules/lodash/collection/reduce.js +44 -0
- data/test/dummy/node_modules/lodash/collection/reduceRight.js +29 -0
- data/test/dummy/node_modules/lodash/collection/reject.js +50 -0
- data/test/dummy/node_modules/lodash/collection/sample.js +50 -0
- data/test/dummy/node_modules/lodash/collection/select.js +1 -0
- data/test/dummy/node_modules/lodash/collection/shuffle.js +24 -0
- data/test/dummy/node_modules/lodash/collection/size.js +30 -0
- data/test/dummy/node_modules/lodash/collection/some.js +67 -0
- data/test/dummy/node_modules/lodash/collection/sortBy.js +71 -0
- data/test/dummy/node_modules/lodash/collection/sortByAll.js +52 -0
- data/test/dummy/node_modules/lodash/collection/sortByOrder.js +55 -0
- data/test/dummy/node_modules/lodash/collection/sum.js +1 -0
- data/test/dummy/node_modules/lodash/collection/where.js +37 -0
- data/test/dummy/node_modules/lodash/date.js +3 -0
- data/test/dummy/node_modules/lodash/date/now.js +24 -0
- data/test/dummy/node_modules/lodash/function.js +28 -0
- data/test/dummy/node_modules/lodash/function/after.js +48 -0
- data/test/dummy/node_modules/lodash/function/ary.js +34 -0
- data/test/dummy/node_modules/lodash/function/backflow.js +1 -0
- data/test/dummy/node_modules/lodash/function/before.js +42 -0
- data/test/dummy/node_modules/lodash/function/bind.js +56 -0
- data/test/dummy/node_modules/lodash/function/bindAll.js +50 -0
- data/test/dummy/node_modules/lodash/function/bindKey.js +66 -0
- data/test/dummy/node_modules/lodash/function/compose.js +1 -0
- data/test/dummy/node_modules/lodash/function/curry.js +51 -0
- data/test/dummy/node_modules/lodash/function/curryRight.js +48 -0
- data/test/dummy/node_modules/lodash/function/debounce.js +181 -0
- data/test/dummy/node_modules/lodash/function/defer.js +25 -0
- data/test/dummy/node_modules/lodash/function/delay.js +26 -0
- data/test/dummy/node_modules/lodash/function/flow.js +25 -0
- data/test/dummy/node_modules/lodash/function/flowRight.js +25 -0
- data/test/dummy/node_modules/lodash/function/memoize.js +80 -0
- data/test/dummy/node_modules/lodash/function/modArgs.js +58 -0
- data/test/dummy/node_modules/lodash/function/negate.js +32 -0
- data/test/dummy/node_modules/lodash/function/once.js +24 -0
- data/test/dummy/node_modules/lodash/function/partial.js +43 -0
- data/test/dummy/node_modules/lodash/function/partialRight.js +42 -0
- data/test/dummy/node_modules/lodash/function/rearg.js +40 -0
- data/test/dummy/node_modules/lodash/function/restParam.js +58 -0
- data/test/dummy/node_modules/lodash/function/spread.js +44 -0
- data/test/dummy/node_modules/lodash/function/throttle.js +62 -0
- data/test/dummy/node_modules/lodash/function/wrap.js +33 -0
- data/test/dummy/node_modules/lodash/index.js +12351 -0
- data/test/dummy/node_modules/lodash/internal/LazyWrapper.js +26 -0
- data/test/dummy/node_modules/lodash/internal/LodashWrapper.js +21 -0
- data/test/dummy/node_modules/lodash/internal/MapCache.js +24 -0
- data/test/dummy/node_modules/lodash/internal/SetCache.js +29 -0
- data/test/dummy/node_modules/lodash/internal/arrayConcat.js +25 -0
- data/test/dummy/node_modules/lodash/internal/arrayCopy.js +20 -0
- data/test/dummy/node_modules/lodash/internal/arrayEach.js +22 -0
- data/test/dummy/node_modules/lodash/internal/arrayEachRight.js +21 -0
- data/test/dummy/node_modules/lodash/internal/arrayEvery.js +23 -0
- data/test/dummy/node_modules/lodash/internal/arrayExtremum.js +30 -0
- data/test/dummy/node_modules/lodash/internal/arrayFilter.js +25 -0
- data/test/dummy/node_modules/lodash/internal/arrayMap.js +21 -0
- data/test/dummy/node_modules/lodash/internal/arrayPush.js +20 -0
- data/test/dummy/node_modules/lodash/internal/arrayReduce.js +26 -0
- data/test/dummy/node_modules/lodash/internal/arrayReduceRight.js +24 -0
- data/test/dummy/node_modules/lodash/internal/arraySome.js +23 -0
- data/test/dummy/node_modules/lodash/internal/arraySum.js +20 -0
- data/test/dummy/node_modules/lodash/internal/assignDefaults.js +13 -0
- data/test/dummy/node_modules/lodash/internal/assignOwnDefaults.js +26 -0
- data/test/dummy/node_modules/lodash/internal/assignWith.js +32 -0
- data/test/dummy/node_modules/lodash/internal/baseAssign.js +19 -0
- data/test/dummy/node_modules/lodash/internal/baseAt.js +32 -0
- data/test/dummy/node_modules/lodash/internal/baseCallback.js +35 -0
- data/test/dummy/node_modules/lodash/internal/baseClone.js +128 -0
- data/test/dummy/node_modules/lodash/internal/baseCompareAscending.js +34 -0
- data/test/dummy/node_modules/lodash/internal/baseCopy.js +23 -0
- data/test/dummy/node_modules/lodash/internal/baseCreate.js +23 -0
- data/test/dummy/node_modules/lodash/internal/baseDelay.js +21 -0
- data/test/dummy/node_modules/lodash/internal/baseDifference.js +55 -0
- data/test/dummy/node_modules/lodash/internal/baseEach.js +15 -0
- data/test/dummy/node_modules/lodash/internal/baseEachRight.js +15 -0
- data/test/dummy/node_modules/lodash/internal/baseEvery.js +22 -0
- data/test/dummy/node_modules/lodash/internal/baseExtremum.js +29 -0
- data/test/dummy/node_modules/lodash/internal/baseFill.js +31 -0
- data/test/dummy/node_modules/lodash/internal/baseFilter.js +22 -0
- data/test/dummy/node_modules/lodash/internal/baseFind.js +25 -0
- data/test/dummy/node_modules/lodash/internal/baseFindIndex.js +23 -0
- data/test/dummy/node_modules/lodash/internal/baseFlatten.js +41 -0
- data/test/dummy/node_modules/lodash/internal/baseFor.js +17 -0
- data/test/dummy/node_modules/lodash/internal/baseForIn.js +17 -0
- data/test/dummy/node_modules/lodash/internal/baseForOwn.js +17 -0
- data/test/dummy/node_modules/lodash/internal/baseForOwnRight.js +17 -0
- data/test/dummy/node_modules/lodash/internal/baseForRight.js +15 -0
- data/test/dummy/node_modules/lodash/internal/baseFunctions.js +27 -0
- data/test/dummy/node_modules/lodash/internal/baseGet.js +29 -0
- data/test/dummy/node_modules/lodash/internal/baseIndexOf.js +27 -0
- data/test/dummy/node_modules/lodash/internal/baseIsEqual.js +28 -0
- data/test/dummy/node_modules/lodash/internal/baseIsEqualDeep.js +102 -0
- data/test/dummy/node_modules/lodash/internal/baseIsFunction.js +15 -0
- data/test/dummy/node_modules/lodash/internal/baseIsMatch.js +52 -0
- data/test/dummy/node_modules/lodash/internal/baseLodash.js +10 -0
- data/test/dummy/node_modules/lodash/internal/baseMap.js +23 -0
- data/test/dummy/node_modules/lodash/internal/baseMatches.js +30 -0
- data/test/dummy/node_modules/lodash/internal/baseMatchesProperty.js +45 -0
- data/test/dummy/node_modules/lodash/internal/baseMerge.js +56 -0
- data/test/dummy/node_modules/lodash/internal/baseMergeDeep.js +67 -0
- data/test/dummy/node_modules/lodash/internal/baseProperty.js +14 -0
- data/test/dummy/node_modules/lodash/internal/basePropertyDeep.js +19 -0
- data/test/dummy/node_modules/lodash/internal/basePullAt.js +30 -0
- data/test/dummy/node_modules/lodash/internal/baseRandom.js +18 -0
- data/test/dummy/node_modules/lodash/internal/baseReduce.js +24 -0
- data/test/dummy/node_modules/lodash/internal/baseSetData.js +17 -0
- data/test/dummy/node_modules/lodash/internal/baseSlice.js +32 -0
- data/test/dummy/node_modules/lodash/internal/baseSome.js +23 -0
- data/test/dummy/node_modules/lodash/internal/baseSortBy.js +21 -0
- data/test/dummy/node_modules/lodash/internal/baseSortByOrder.js +31 -0
- data/test/dummy/node_modules/lodash/internal/baseSum.js +20 -0
- data/test/dummy/node_modules/lodash/internal/baseToString.js +13 -0
- data/test/dummy/node_modules/lodash/internal/baseUniq.js +60 -0
- data/test/dummy/node_modules/lodash/internal/baseValues.js +22 -0
- data/test/dummy/node_modules/lodash/internal/baseWhile.js +24 -0
- data/test/dummy/node_modules/lodash/internal/baseWrapperValue.js +29 -0
- data/test/dummy/node_modules/lodash/internal/binaryIndex.js +39 -0
- data/test/dummy/node_modules/lodash/internal/binaryIndexBy.js +57 -0
- data/test/dummy/node_modules/lodash/internal/bindCallback.js +39 -0
- data/test/dummy/node_modules/lodash/internal/bufferClone.js +20 -0
- data/test/dummy/node_modules/lodash/internal/cacheIndexOf.js +19 -0
- data/test/dummy/node_modules/lodash/internal/cachePush.js +20 -0
- data/test/dummy/node_modules/lodash/internal/charsLeftIndex.js +18 -0
- data/test/dummy/node_modules/lodash/internal/charsRightIndex.js +17 -0
- data/test/dummy/node_modules/lodash/internal/compareAscending.js +16 -0
- data/test/dummy/node_modules/lodash/internal/compareMultiple.js +44 -0
- data/test/dummy/node_modules/lodash/internal/composeArgs.js +34 -0
- data/test/dummy/node_modules/lodash/internal/composeArgsRight.js +36 -0
- data/test/dummy/node_modules/lodash/internal/createAggregator.js +35 -0
- data/test/dummy/node_modules/lodash/internal/createAssigner.js +41 -0
- data/test/dummy/node_modules/lodash/internal/createBaseEach.js +31 -0
- data/test/dummy/node_modules/lodash/internal/createBaseFor.js +27 -0
- data/test/dummy/node_modules/lodash/internal/createBindWrapper.js +22 -0
- data/test/dummy/node_modules/lodash/internal/createCache.js +21 -0
- data/test/dummy/node_modules/lodash/internal/createCompounder.js +26 -0
- data/test/dummy/node_modules/lodash/internal/createCtorWrapper.js +37 -0
- data/test/dummy/node_modules/lodash/internal/createCurry.js +23 -0
- data/test/dummy/node_modules/lodash/internal/createDefaults.js +22 -0
- data/test/dummy/node_modules/lodash/internal/createExtremum.js +33 -0
- data/test/dummy/node_modules/lodash/internal/createFind.js +25 -0
- data/test/dummy/node_modules/lodash/internal/createFindIndex.js +21 -0
- data/test/dummy/node_modules/lodash/internal/createFindKey.js +18 -0
- data/test/dummy/node_modules/lodash/internal/createFlow.js +74 -0
- data/test/dummy/node_modules/lodash/internal/createForEach.js +20 -0
- data/test/dummy/node_modules/lodash/internal/createForIn.js +20 -0
- data/test/dummy/node_modules/lodash/internal/createForOwn.js +19 -0
- data/test/dummy/node_modules/lodash/internal/createHybridWrapper.js +111 -0
- data/test/dummy/node_modules/lodash/internal/createObjectMapper.js +26 -0
- data/test/dummy/node_modules/lodash/internal/createPadDir.js +18 -0
- data/test/dummy/node_modules/lodash/internal/createPadding.js +29 -0
- data/test/dummy/node_modules/lodash/internal/createPartial.js +20 -0
- data/test/dummy/node_modules/lodash/internal/createPartialWrapper.js +43 -0
- data/test/dummy/node_modules/lodash/internal/createReduce.js +22 -0
- data/test/dummy/node_modules/lodash/internal/createRound.js +23 -0
- data/test/dummy/node_modules/lodash/internal/createSortedIndex.js +20 -0
- data/test/dummy/node_modules/lodash/internal/createWrapper.js +86 -0
- data/test/dummy/node_modules/lodash/internal/deburrLetter.js +33 -0
- data/test/dummy/node_modules/lodash/internal/equalArrays.js +51 -0
- data/test/dummy/node_modules/lodash/internal/equalByTag.js +48 -0
- data/test/dummy/node_modules/lodash/internal/equalObjects.js +67 -0
- data/test/dummy/node_modules/lodash/internal/escapeHtmlChar.js +22 -0
- data/test/dummy/node_modules/lodash/internal/escapeRegExpChar.js +38 -0
- data/test/dummy/node_modules/lodash/internal/escapeStringChar.js +22 -0
- data/test/dummy/node_modules/lodash/internal/getData.js +15 -0
- data/test/dummy/node_modules/lodash/internal/getFuncName.js +25 -0
- data/test/dummy/node_modules/lodash/internal/getLength.js +15 -0
- data/test/dummy/node_modules/lodash/internal/getMatchData.js +21 -0
- data/test/dummy/node_modules/lodash/internal/getNative.js +16 -0
- data/test/dummy/node_modules/lodash/internal/getView.js +33 -0
- data/test/dummy/node_modules/lodash/internal/indexOfNaN.js +23 -0
- data/test/dummy/node_modules/lodash/internal/initCloneArray.js +26 -0
- data/test/dummy/node_modules/lodash/internal/initCloneByTag.js +63 -0
- data/test/dummy/node_modules/lodash/internal/initCloneObject.js +16 -0
- data/test/dummy/node_modules/lodash/internal/invokePath.js +26 -0
- data/test/dummy/node_modules/lodash/internal/isArrayLike.js +15 -0
- data/test/dummy/node_modules/lodash/internal/isIndex.js +24 -0
- data/test/dummy/node_modules/lodash/internal/isIterateeCall.js +28 -0
- data/test/dummy/node_modules/lodash/internal/isKey.js +28 -0
- data/test/dummy/node_modules/lodash/internal/isLaziable.js +27 -0
- data/test/dummy/node_modules/lodash/internal/isLength.js +20 -0
- data/test/dummy/node_modules/lodash/internal/isObjectLike.js +12 -0
- data/test/dummy/node_modules/lodash/internal/isSpace.js +14 -0
- data/test/dummy/node_modules/lodash/internal/isStrictComparable.js +15 -0
- data/test/dummy/node_modules/lodash/internal/lazyClone.js +23 -0
- data/test/dummy/node_modules/lodash/internal/lazyReverse.js +23 -0
- data/test/dummy/node_modules/lodash/internal/lazyValue.js +72 -0
- data/test/dummy/node_modules/lodash/internal/mapDelete.js +14 -0
- data/test/dummy/node_modules/lodash/internal/mapGet.js +14 -0
- data/test/dummy/node_modules/lodash/internal/mapHas.js +20 -0
- data/test/dummy/node_modules/lodash/internal/mapSet.js +18 -0
- data/test/dummy/node_modules/lodash/internal/mergeData.js +89 -0
- data/test/dummy/node_modules/lodash/internal/mergeDefaults.js +15 -0
- data/test/dummy/node_modules/lodash/internal/metaMap.js +9 -0
- data/test/dummy/node_modules/lodash/internal/pickByArray.js +28 -0
- data/test/dummy/node_modules/lodash/internal/pickByCallback.js +22 -0
- data/test/dummy/node_modules/lodash/internal/reEscape.js +4 -0
- data/test/dummy/node_modules/lodash/internal/reEvaluate.js +4 -0
- data/test/dummy/node_modules/lodash/internal/reInterpolate.js +4 -0
- data/test/dummy/node_modules/lodash/internal/realNames.js +4 -0
- data/test/dummy/node_modules/lodash/internal/reorder.js +29 -0
- data/test/dummy/node_modules/lodash/internal/replaceHolders.js +28 -0
- data/test/dummy/node_modules/lodash/internal/setData.js +41 -0
- data/test/dummy/node_modules/lodash/internal/shimKeys.js +41 -0
- data/test/dummy/node_modules/lodash/internal/sortedUniq.js +29 -0
- data/test/dummy/node_modules/lodash/internal/toIterable.js +22 -0
- data/test/dummy/node_modules/lodash/internal/toObject.js +14 -0
- data/test/dummy/node_modules/lodash/internal/toPath.js +28 -0
- data/test/dummy/node_modules/lodash/internal/trimmedLeftIndex.js +19 -0
- data/test/dummy/node_modules/lodash/internal/trimmedRightIndex.js +18 -0
- data/test/dummy/node_modules/lodash/internal/unescapeHtmlChar.js +22 -0
- data/test/dummy/node_modules/lodash/internal/wrapperClone.js +18 -0
- data/test/dummy/node_modules/lodash/lang.js +32 -0
- data/test/dummy/node_modules/lodash/lang/clone.js +70 -0
- data/test/dummy/node_modules/lodash/lang/cloneDeep.js +55 -0
- data/test/dummy/node_modules/lodash/lang/eq.js +1 -0
- data/test/dummy/node_modules/lodash/lang/gt.js +25 -0
- data/test/dummy/node_modules/lodash/lang/gte.js +25 -0
- data/test/dummy/node_modules/lodash/lang/isArguments.js +34 -0
- data/test/dummy/node_modules/lodash/lang/isArray.js +40 -0
- data/test/dummy/node_modules/lodash/lang/isBoolean.js +35 -0
- data/test/dummy/node_modules/lodash/lang/isDate.js +35 -0
- data/test/dummy/node_modules/lodash/lang/isElement.js +24 -0
- data/test/dummy/node_modules/lodash/lang/isEmpty.js +47 -0
- data/test/dummy/node_modules/lodash/lang/isEqual.js +54 -0
- data/test/dummy/node_modules/lodash/lang/isError.js +36 -0
- data/test/dummy/node_modules/lodash/lang/isFinite.js +35 -0
- data/test/dummy/node_modules/lodash/lang/isFunction.js +38 -0
- data/test/dummy/node_modules/lodash/lang/isMatch.js +49 -0
- data/test/dummy/node_modules/lodash/lang/isNaN.js +34 -0
- data/test/dummy/node_modules/lodash/lang/isNative.js +48 -0
- data/test/dummy/node_modules/lodash/lang/isNull.js +21 -0
- data/test/dummy/node_modules/lodash/lang/isNumber.js +41 -0
- data/test/dummy/node_modules/lodash/lang/isObject.js +28 -0
- data/test/dummy/node_modules/lodash/lang/isPlainObject.js +71 -0
- data/test/dummy/node_modules/lodash/lang/isRegExp.js +35 -0
- data/test/dummy/node_modules/lodash/lang/isString.js +35 -0
- data/test/dummy/node_modules/lodash/lang/isTypedArray.js +74 -0
- data/test/dummy/node_modules/lodash/lang/isUndefined.js +21 -0
- data/test/dummy/node_modules/lodash/lang/lt.js +25 -0
- data/test/dummy/node_modules/lodash/lang/lte.js +25 -0
- data/test/dummy/node_modules/lodash/lang/toArray.js +32 -0
- data/test/dummy/node_modules/lodash/lang/toPlainObject.js +31 -0
- data/test/dummy/node_modules/lodash/math.js +9 -0
- data/test/dummy/node_modules/lodash/math/add.js +19 -0
- data/test/dummy/node_modules/lodash/math/ceil.js +25 -0
- data/test/dummy/node_modules/lodash/math/floor.js +25 -0
- data/test/dummy/node_modules/lodash/math/max.js +56 -0
- data/test/dummy/node_modules/lodash/math/min.js +56 -0
- data/test/dummy/node_modules/lodash/math/round.js +25 -0
- data/test/dummy/node_modules/lodash/math/sum.js +50 -0
- data/test/dummy/node_modules/lodash/number.js +4 -0
- data/test/dummy/node_modules/lodash/number/inRange.js +47 -0
- data/test/dummy/node_modules/lodash/number/random.js +70 -0
- data/test/dummy/node_modules/lodash/object.js +31 -0
- data/test/dummy/node_modules/lodash/object/assign.js +43 -0
- data/test/dummy/node_modules/lodash/object/create.js +47 -0
- data/test/dummy/node_modules/lodash/object/defaults.js +25 -0
- data/test/dummy/node_modules/lodash/object/defaultsDeep.js +25 -0
- data/test/dummy/node_modules/lodash/object/extend.js +1 -0
- data/test/dummy/node_modules/lodash/object/findKey.js +54 -0
- data/test/dummy/node_modules/lodash/object/findLastKey.js +54 -0
- data/test/dummy/node_modules/lodash/object/forIn.js +33 -0
- data/test/dummy/node_modules/lodash/object/forInRight.js +31 -0
- data/test/dummy/node_modules/lodash/object/forOwn.js +33 -0
- data/test/dummy/node_modules/lodash/object/forOwnRight.js +31 -0
- data/test/dummy/node_modules/lodash/object/functions.js +23 -0
- data/test/dummy/node_modules/lodash/object/get.js +33 -0
- data/test/dummy/node_modules/lodash/object/has.js +57 -0
- data/test/dummy/node_modules/lodash/object/invert.js +60 -0
- data/test/dummy/node_modules/lodash/object/keys.js +45 -0
- data/test/dummy/node_modules/lodash/object/keysIn.js +64 -0
- data/test/dummy/node_modules/lodash/object/mapKeys.js +25 -0
- data/test/dummy/node_modules/lodash/object/mapValues.js +46 -0
- data/test/dummy/node_modules/lodash/object/merge.js +54 -0
- data/test/dummy/node_modules/lodash/object/methods.js +1 -0
- data/test/dummy/node_modules/lodash/object/omit.js +47 -0
- data/test/dummy/node_modules/lodash/object/pairs.js +33 -0
- data/test/dummy/node_modules/lodash/object/pick.js +42 -0
- data/test/dummy/node_modules/lodash/object/result.js +49 -0
- data/test/dummy/node_modules/lodash/object/set.js +55 -0
- data/test/dummy/node_modules/lodash/object/transform.js +61 -0
- data/test/dummy/node_modules/lodash/object/values.js +33 -0
- data/test/dummy/node_modules/lodash/object/valuesIn.js +31 -0
- data/test/dummy/node_modules/lodash/package.json +125 -0
- data/test/dummy/node_modules/lodash/string.js +25 -0
- data/test/dummy/node_modules/lodash/string/camelCase.js +27 -0
- data/test/dummy/node_modules/lodash/string/capitalize.js +21 -0
- data/test/dummy/node_modules/lodash/string/deburr.js +29 -0
- data/test/dummy/node_modules/lodash/string/endsWith.js +40 -0
- data/test/dummy/node_modules/lodash/string/escape.js +48 -0
- data/test/dummy/node_modules/lodash/string/escapeRegExp.js +32 -0
- data/test/dummy/node_modules/lodash/string/kebabCase.js +26 -0
- data/test/dummy/node_modules/lodash/string/pad.js +47 -0
- data/test/dummy/node_modules/lodash/string/padLeft.js +27 -0
- data/test/dummy/node_modules/lodash/string/padRight.js +27 -0
- data/test/dummy/node_modules/lodash/string/parseInt.js +46 -0
- data/test/dummy/node_modules/lodash/string/repeat.js +47 -0
- data/test/dummy/node_modules/lodash/string/snakeCase.js +26 -0
- data/test/dummy/node_modules/lodash/string/startCase.js +26 -0
- data/test/dummy/node_modules/lodash/string/startsWith.js +36 -0
- data/test/dummy/node_modules/lodash/string/template.js +226 -0
- data/test/dummy/node_modules/lodash/string/templateSettings.js +67 -0
- data/test/dummy/node_modules/lodash/string/trim.js +42 -0
- data/test/dummy/node_modules/lodash/string/trimLeft.js +36 -0
- data/test/dummy/node_modules/lodash/string/trimRight.js +36 -0
- data/test/dummy/node_modules/lodash/string/trunc.js +105 -0
- data/test/dummy/node_modules/lodash/string/unescape.js +33 -0
- data/test/dummy/node_modules/lodash/string/words.js +38 -0
- data/test/dummy/node_modules/lodash/support.js +10 -0
- data/test/dummy/node_modules/lodash/utility.js +18 -0
- data/test/dummy/node_modules/lodash/utility/attempt.js +32 -0
- data/test/dummy/node_modules/lodash/utility/callback.js +53 -0
- data/test/dummy/node_modules/lodash/utility/constant.js +23 -0
- data/test/dummy/node_modules/lodash/utility/identity.js +20 -0
- data/test/dummy/node_modules/lodash/utility/iteratee.js +1 -0
- data/test/dummy/node_modules/lodash/utility/matches.js +33 -0
- data/test/dummy/node_modules/lodash/utility/matchesProperty.js +32 -0
- data/test/dummy/node_modules/lodash/utility/method.js +33 -0
- data/test/dummy/node_modules/lodash/utility/methodOf.js +32 -0
- data/test/dummy/node_modules/lodash/utility/mixin.js +82 -0
- data/test/dummy/node_modules/lodash/utility/noop.js +19 -0
- data/test/dummy/node_modules/lodash/utility/property.js +31 -0
- data/test/dummy/node_modules/lodash/utility/propertyOf.js +30 -0
- data/test/dummy/node_modules/lodash/utility/range.js +66 -0
- data/test/dummy/node_modules/lodash/utility/times.js +60 -0
- data/test/dummy/node_modules/lodash/utility/uniqueId.js +27 -0
- data/test/dummy/node_modules/loose-envify/README.md +45 -0
- data/test/dummy/node_modules/loose-envify/custom.js +2 -0
- data/test/dummy/node_modules/loose-envify/index.js +1 -0
- data/test/dummy/node_modules/loose-envify/loose-envify.js +36 -0
- data/test/dummy/node_modules/loose-envify/package.json +86 -0
- data/test/dummy/node_modules/loose-envify/replace.js +65 -0
- data/test/dummy/node_modules/magic-string/README.md +227 -0
- data/test/dummy/node_modules/magic-string/dist/magic-string.cjs.js +929 -0
- data/test/dummy/node_modules/magic-string/dist/magic-string.cjs.js.map +1 -0
- data/test/dummy/node_modules/magic-string/dist/magic-string.deps.js +980 -0
- data/test/dummy/node_modules/magic-string/dist/magic-string.deps.js.map +1 -0
- data/test/dummy/node_modules/magic-string/dist/magic-string.es6.js +927 -0
- data/test/dummy/node_modules/magic-string/dist/magic-string.es6.js.map +1 -0
- data/test/dummy/node_modules/magic-string/package.json +105 -0
- data/test/dummy/node_modules/magic-string/src/Bundle/index.js +251 -0
- data/test/dummy/node_modules/magic-string/src/MagicString/encodeMappings.js +130 -0
- data/test/dummy/node_modules/magic-string/src/MagicString/guessIndent.js +25 -0
- data/test/dummy/node_modules/magic-string/src/MagicString/index.js +440 -0
- data/test/dummy/node_modules/magic-string/src/index.js +6 -0
- data/test/dummy/node_modules/magic-string/src/utils/SourceMap.js +23 -0
- data/test/dummy/node_modules/magic-string/src/utils/btoa.js +12 -0
- data/test/dummy/node_modules/magic-string/src/utils/getRelativePath.js +18 -0
- data/test/dummy/node_modules/magic-string/src/utils/hasOwnProp.js +1 -0
- data/test/dummy/node_modules/minimatch/LICENSE +15 -0
- data/test/dummy/node_modules/minimatch/README.md +216 -0
- data/test/dummy/node_modules/minimatch/browser.js +1159 -0
- data/test/dummy/node_modules/minimatch/minimatch.js +912 -0
- data/test/dummy/node_modules/minimatch/package.json +87 -0
- data/test/dummy/node_modules/minimist/LICENSE +18 -0
- data/test/dummy/node_modules/minimist/example/parse.js +2 -0
- data/test/dummy/node_modules/minimist/index.js +236 -0
- data/test/dummy/node_modules/minimist/package.json +97 -0
- data/test/dummy/node_modules/minimist/readme.markdown +91 -0
- data/test/dummy/node_modules/minimist/test/all_bool.js +32 -0
- data/test/dummy/node_modules/minimist/test/bool.js +166 -0
- data/test/dummy/node_modules/minimist/test/dash.js +31 -0
- data/test/dummy/node_modules/minimist/test/default_bool.js +35 -0
- data/test/dummy/node_modules/minimist/test/dotted.js +22 -0
- data/test/dummy/node_modules/minimist/test/kv_short.js +16 -0
- data/test/dummy/node_modules/minimist/test/long.js +31 -0
- data/test/dummy/node_modules/minimist/test/num.js +36 -0
- data/test/dummy/node_modules/minimist/test/parse.js +197 -0
- data/test/dummy/node_modules/minimist/test/parse_modified.js +9 -0
- data/test/dummy/node_modules/minimist/test/short.js +67 -0
- data/test/dummy/node_modules/minimist/test/stop_early.js +15 -0
- data/test/dummy/node_modules/minimist/test/unknown.js +102 -0
- data/test/dummy/node_modules/minimist/test/whitespace.js +8 -0
- data/test/dummy/node_modules/ms/History.md +66 -0
- data/test/dummy/node_modules/ms/LICENSE +20 -0
- data/test/dummy/node_modules/ms/README.md +35 -0
- data/test/dummy/node_modules/ms/index.js +125 -0
- data/test/dummy/node_modules/ms/package.json +73 -0
- data/test/dummy/node_modules/number-is-nan/index.js +4 -0
- data/test/dummy/node_modules/number-is-nan/license +21 -0
- data/test/dummy/node_modules/number-is-nan/package.json +92 -0
- data/test/dummy/node_modules/number-is-nan/readme.md +30 -0
- data/test/dummy/node_modules/object-assign/index.js +39 -0
- data/test/dummy/node_modules/object-assign/license +21 -0
- data/test/dummy/node_modules/object-assign/package.json +103 -0
- data/test/dummy/node_modules/object-assign/readme.md +51 -0
- data/test/dummy/node_modules/os-tmpdir/index.js +25 -0
- data/test/dummy/node_modules/os-tmpdir/license +21 -0
- data/test/dummy/node_modules/os-tmpdir/package.json +95 -0
- data/test/dummy/node_modules/os-tmpdir/readme.md +36 -0
- data/test/dummy/node_modules/path-exists/index.js +21 -0
- data/test/dummy/node_modules/path-exists/license +21 -0
- data/test/dummy/node_modules/path-exists/package.json +92 -0
- data/test/dummy/node_modules/path-exists/readme.md +60 -0
- data/test/dummy/node_modules/path-is-absolute/index.js +20 -0
- data/test/dummy/node_modules/path-is-absolute/license +21 -0
- data/test/dummy/node_modules/path-is-absolute/package.json +96 -0
- data/test/dummy/node_modules/path-is-absolute/readme.md +51 -0
- data/test/dummy/node_modules/private/LICENSE +20 -0
- data/test/dummy/node_modules/private/README.md +246 -0
- data/test/dummy/node_modules/private/package.json +84 -0
- data/test/dummy/node_modules/private/private.js +129 -0
- data/test/dummy/node_modules/private/test/run.js +68 -0
- data/test/dummy/node_modules/promise/LICENSE +19 -0
- data/test/dummy/node_modules/promise/Readme.md +201 -0
- data/test/dummy/node_modules/promise/build.js +69 -0
- data/test/dummy/node_modules/promise/core.js +5 -0
- data/test/dummy/node_modules/promise/domains/core.js +184 -0
- data/test/dummy/node_modules/promise/domains/done.js +13 -0
- data/test/dummy/node_modules/promise/domains/es6-extensions.js +107 -0
- data/test/dummy/node_modules/promise/domains/finally.js +16 -0
- data/test/dummy/node_modules/promise/domains/index.js +7 -0
- data/test/dummy/node_modules/promise/domains/node-extensions.js +71 -0
- data/test/dummy/node_modules/promise/index.js +3 -0
- data/test/dummy/node_modules/promise/lib/core.js +184 -0
- data/test/dummy/node_modules/promise/lib/done.js +13 -0
- data/test/dummy/node_modules/promise/lib/es6-extensions.js +107 -0
- data/test/dummy/node_modules/promise/lib/finally.js +16 -0
- data/test/dummy/node_modules/promise/lib/index.js +7 -0
- data/test/dummy/node_modules/promise/lib/node-extensions.js +71 -0
- data/test/dummy/node_modules/promise/package.json +92 -0
- data/test/dummy/node_modules/promise/polyfill-done.js +12 -0
- data/test/dummy/node_modules/promise/polyfill.js +10 -0
- data/test/dummy/node_modules/promise/setimmediate/core.js +184 -0
- data/test/dummy/node_modules/promise/setimmediate/done.js +13 -0
- data/test/dummy/node_modules/promise/setimmediate/es6-extensions.js +107 -0
- data/test/dummy/node_modules/promise/setimmediate/finally.js +16 -0
- data/test/dummy/node_modules/promise/setimmediate/index.js +7 -0
- data/test/dummy/node_modules/promise/setimmediate/node-extensions.js +71 -0
- data/test/dummy/node_modules/promise/src/core.js +184 -0
- data/test/dummy/node_modules/promise/src/done.js +13 -0
- data/test/dummy/node_modules/promise/src/es6-extensions.js +107 -0
- data/test/dummy/node_modules/promise/src/finally.js +16 -0
- data/test/dummy/node_modules/promise/src/index.js +7 -0
- data/test/dummy/node_modules/promise/src/node-extensions.js +71 -0
- data/test/dummy/node_modules/react/LICENSE +31 -0
- data/test/dummy/node_modules/react/PATENTS +33 -0
- data/test/dummy/node_modules/react/README.md +23 -0
- data/test/dummy/node_modules/react/addons.js +13 -0
- data/test/dummy/node_modules/react/dist/react-with-addons.js +20753 -0
- data/test/dummy/node_modules/react/dist/react-with-addons.min.js +16 -0
- data/test/dummy/node_modules/react/dist/react.js +18794 -0
- data/test/dummy/node_modules/react/dist/react.min.js +16 -0
- data/test/dummy/node_modules/react/lib/AutoFocusUtils.js +36 -0
- data/test/dummy/node_modules/react/lib/BeforeInputEventPlugin.js +405 -0
- data/test/dummy/node_modules/react/lib/CSSProperty.js +139 -0
- data/test/dummy/node_modules/react/lib/CSSPropertyOperations.js +175 -0
- data/test/dummy/node_modules/react/lib/CallbackQueue.js +93 -0
- data/test/dummy/node_modules/react/lib/ChangeEventPlugin.js +321 -0
- data/test/dummy/node_modules/react/lib/ClientReactRootIndex.js +23 -0
- data/test/dummy/node_modules/react/lib/DOMChildrenOperations.js +129 -0
- data/test/dummy/node_modules/react/lib/DOMProperty.js +234 -0
- data/test/dummy/node_modules/react/lib/DOMPropertyOperations.js +225 -0
- data/test/dummy/node_modules/react/lib/Danger.js +145 -0
- data/test/dummy/node_modules/react/lib/DefaultEventPluginOrder.js +27 -0
- data/test/dummy/node_modules/react/lib/EnterLeaveEventPlugin.js +124 -0
- data/test/dummy/node_modules/react/lib/EventConstants.js +92 -0
- data/test/dummy/node_modules/react/lib/EventPluginHub.js +279 -0
- data/test/dummy/node_modules/react/lib/EventPluginRegistry.js +220 -0
- data/test/dummy/node_modules/react/lib/EventPluginUtils.js +202 -0
- data/test/dummy/node_modules/react/lib/EventPropagators.js +135 -0
- data/test/dummy/node_modules/react/lib/FallbackCompositionState.js +95 -0
- data/test/dummy/node_modules/react/lib/HTMLDOMPropertyConfig.js +232 -0
- data/test/dummy/node_modules/react/lib/LinkedStateMixin.js +36 -0
- data/test/dummy/node_modules/react/lib/LinkedValueUtils.js +134 -0
- data/test/dummy/node_modules/react/lib/MetaMatchers.js +118 -0
- data/test/dummy/node_modules/react/lib/Object.assign.js +47 -0
- data/test/dummy/node_modules/react/lib/OrderedMap.js +453 -0
- data/test/dummy/node_modules/react/lib/PooledClass.js +119 -0
- data/test/dummy/node_modules/react/lib/React.js +40 -0
- data/test/dummy/node_modules/react/lib/ReactBrowserComponentMixin.js +36 -0
- data/test/dummy/node_modules/react/lib/ReactBrowserEventEmitter.js +324 -0
- data/test/dummy/node_modules/react/lib/ReactCSSTransitionGroup.js +83 -0
- data/test/dummy/node_modules/react/lib/ReactCSSTransitionGroupChild.js +165 -0
- data/test/dummy/node_modules/react/lib/ReactChildReconciler.js +122 -0
- data/test/dummy/node_modules/react/lib/ReactChildren.js +182 -0
- data/test/dummy/node_modules/react/lib/ReactClass.js +771 -0
- data/test/dummy/node_modules/react/lib/ReactComponent.js +122 -0
- data/test/dummy/node_modules/react/lib/ReactComponentBrowserEnvironment.js +41 -0
- data/test/dummy/node_modules/react/lib/ReactComponentEnvironment.js +51 -0
- data/test/dummy/node_modules/react/lib/ReactComponentWithPureRenderMixin.js +46 -0
- data/test/dummy/node_modules/react/lib/ReactCompositeComponent.js +694 -0
- data/test/dummy/node_modules/react/lib/ReactCurrentOwner.js +30 -0
- data/test/dummy/node_modules/react/lib/ReactDOM.js +92 -0
- data/test/dummy/node_modules/react/lib/ReactDOMButton.js +50 -0
- data/test/dummy/node_modules/react/lib/ReactDOMComponent.js +962 -0
- data/test/dummy/node_modules/react/lib/ReactDOMFactories.js +177 -0
- data/test/dummy/node_modules/react/lib/ReactDOMFeatureFlags.js +18 -0
- data/test/dummy/node_modules/react/lib/ReactDOMIDOperations.js +94 -0
- data/test/dummy/node_modules/react/lib/ReactDOMInput.js +153 -0
- data/test/dummy/node_modules/react/lib/ReactDOMOption.js +86 -0
- data/test/dummy/node_modules/react/lib/ReactDOMSelect.js +188 -0
- data/test/dummy/node_modules/react/lib/ReactDOMSelection.js +212 -0
- data/test/dummy/node_modules/react/lib/ReactDOMServer.js +26 -0
- data/test/dummy/node_modules/react/lib/ReactDOMTextComponent.js +127 -0
- data/test/dummy/node_modules/react/lib/ReactDOMTextarea.js +113 -0
- data/test/dummy/node_modules/react/lib/ReactDefaultBatchingStrategy.js +67 -0
- data/test/dummy/node_modules/react/lib/ReactDefaultInjection.js +97 -0
- data/test/dummy/node_modules/react/lib/ReactDefaultPerf.js +237 -0
- data/test/dummy/node_modules/react/lib/ReactDefaultPerfAnalysis.js +199 -0
- data/test/dummy/node_modules/react/lib/ReactElement.js +247 -0
- data/test/dummy/node_modules/react/lib/ReactElementValidator.js +281 -0
- data/test/dummy/node_modules/react/lib/ReactEmptyComponent.js +51 -0
- data/test/dummy/node_modules/react/lib/ReactEmptyComponentRegistry.js +48 -0
- data/test/dummy/node_modules/react/lib/ReactErrorUtils.js +77 -0
- data/test/dummy/node_modules/react/lib/ReactEventEmitterMixin.js +38 -0
- data/test/dummy/node_modules/react/lib/ReactEventListener.js +211 -0
- data/test/dummy/node_modules/react/lib/ReactFragment.js +64 -0
- data/test/dummy/node_modules/react/lib/ReactInjection.js +38 -0
- data/test/dummy/node_modules/react/lib/ReactInputSelection.js +124 -0
- data/test/dummy/node_modules/react/lib/ReactInstanceHandles.js +302 -0
- data/test/dummy/node_modules/react/lib/ReactInstanceMap.js +47 -0
- data/test/dummy/node_modules/react/lib/ReactIsomorphic.js +74 -0
- data/test/dummy/node_modules/react/lib/ReactLink.js +69 -0
- data/test/dummy/node_modules/react/lib/ReactMarkupChecksum.js +45 -0
- data/test/dummy/node_modules/react/lib/ReactMount.js +850 -0
- data/test/dummy/node_modules/react/lib/ReactMultiChild.js +496 -0
- data/test/dummy/node_modules/react/lib/ReactMultiChildUpdateTypes.js +32 -0
- data/test/dummy/node_modules/react/lib/ReactNativeComponent.js +94 -0
- data/test/dummy/node_modules/react/lib/ReactNoopUpdateQueue.js +118 -0
- data/test/dummy/node_modules/react/lib/ReactOwner.js +91 -0
- data/test/dummy/node_modules/react/lib/ReactPerf.js +96 -0
- data/test/dummy/node_modules/react/lib/ReactPropTransferer.js +108 -0
- data/test/dummy/node_modules/react/lib/ReactPropTypeLocationNames.js +24 -0
- data/test/dummy/node_modules/react/lib/ReactPropTypeLocations.js +22 -0
- data/test/dummy/node_modules/react/lib/ReactPropTypes.js +356 -0
- data/test/dummy/node_modules/react/lib/ReactReconcileTransaction.js +151 -0
- data/test/dummy/node_modules/react/lib/ReactReconciler.js +107 -0
- data/test/dummy/node_modules/react/lib/ReactRef.js +78 -0
- data/test/dummy/node_modules/react/lib/ReactRootIndex.js +29 -0
- data/test/dummy/node_modules/react/lib/ReactServerBatchingStrategy.js +23 -0
- data/test/dummy/node_modules/react/lib/ReactServerRendering.js +83 -0
- data/test/dummy/node_modules/react/lib/ReactServerRenderingTransaction.js +87 -0
- data/test/dummy/node_modules/react/lib/ReactStateSetters.js +104 -0
- data/test/dummy/node_modules/react/lib/ReactTestUtils.js +473 -0
- data/test/dummy/node_modules/react/lib/ReactTransitionChildMapping.js +98 -0
- data/test/dummy/node_modules/react/lib/ReactTransitionEvents.js +109 -0
- data/test/dummy/node_modules/react/lib/ReactTransitionGroup.js +205 -0
- data/test/dummy/node_modules/react/lib/ReactUpdateQueue.js +257 -0
- data/test/dummy/node_modules/react/lib/ReactUpdates.js +223 -0
- data/test/dummy/node_modules/react/lib/ReactVersion.js +14 -0
- data/test/dummy/node_modules/react/lib/ReactWithAddons.js +60 -0
- data/test/dummy/node_modules/react/lib/ResponderEventPlugin.js +514 -0
- data/test/dummy/node_modules/react/lib/ResponderSyntheticEvent.js +40 -0
- data/test/dummy/node_modules/react/lib/ResponderTouchHistoryStore.js +180 -0
- data/test/dummy/node_modules/react/lib/SVGDOMPropertyConfig.js +127 -0
- data/test/dummy/node_modules/react/lib/SelectEventPlugin.js +201 -0
- data/test/dummy/node_modules/react/lib/ServerReactRootIndex.js +29 -0
- data/test/dummy/node_modules/react/lib/SimpleEventPlugin.js +587 -0
- data/test/dummy/node_modules/react/lib/SyntheticClipboardEvent.js +39 -0
- data/test/dummy/node_modules/react/lib/SyntheticCompositionEvent.js +37 -0
- data/test/dummy/node_modules/react/lib/SyntheticDragEvent.js +37 -0
- data/test/dummy/node_modules/react/lib/SyntheticEvent.js +177 -0
- data/test/dummy/node_modules/react/lib/SyntheticFocusEvent.js +37 -0
- data/test/dummy/node_modules/react/lib/SyntheticInputEvent.js +38 -0
- data/test/dummy/node_modules/react/lib/SyntheticKeyboardEvent.js +85 -0
- data/test/dummy/node_modules/react/lib/SyntheticMouseEvent.js +73 -0
- data/test/dummy/node_modules/react/lib/SyntheticTouchEvent.js +46 -0
- data/test/dummy/node_modules/react/lib/SyntheticUIEvent.js +60 -0
- data/test/dummy/node_modules/react/lib/SyntheticWheelEvent.js +55 -0
- data/test/dummy/node_modules/react/lib/TapEventPlugin.js +119 -0
- data/test/dummy/node_modules/react/lib/Transaction.js +231 -0
- data/test/dummy/node_modules/react/lib/ViewportMetrics.js +27 -0
- data/test/dummy/node_modules/react/lib/accumulate.js +44 -0
- data/test/dummy/node_modules/react/lib/accumulateInto.js +59 -0
- data/test/dummy/node_modules/react/lib/adler32.js +42 -0
- data/test/dummy/node_modules/react/lib/canDefineProperty.js +24 -0
- data/test/dummy/node_modules/react/lib/cloneWithProps.js +54 -0
- data/test/dummy/node_modules/react/lib/createHierarchyRenderer.js +85 -0
- data/test/dummy/node_modules/react/lib/dangerousStyleValue.js +55 -0
- data/test/dummy/node_modules/react/lib/deprecated.js +48 -0
- data/test/dummy/node_modules/react/lib/escapeTextContentForBrowser.js +38 -0
- data/test/dummy/node_modules/react/lib/findDOMNode.js +49 -0
- data/test/dummy/node_modules/react/lib/flattenChildren.js +48 -0
- data/test/dummy/node_modules/react/lib/forEachAccumulated.js +29 -0
- data/test/dummy/node_modules/react/lib/getEventCharCode.js +50 -0
- data/test/dummy/node_modules/react/lib/getEventKey.js +103 -0
- data/test/dummy/node_modules/react/lib/getEventModifierState.js +44 -0
- data/test/dummy/node_modules/react/lib/getEventTarget.js +29 -0
- data/test/dummy/node_modules/react/lib/getIteratorFn.js +40 -0
- data/test/dummy/node_modules/react/lib/getNodeForCharacterOffset.js +73 -0
- data/test/dummy/node_modules/react/lib/getTestDocument.js +21 -0
- data/test/dummy/node_modules/react/lib/getTextContentAccessor.js +33 -0
- data/test/dummy/node_modules/react/lib/instantiateReactComponent.js +112 -0
- data/test/dummy/node_modules/react/lib/isEventSupported.js +60 -0
- data/test/dummy/node_modules/react/lib/isTextInputElement.js +40 -0
- data/test/dummy/node_modules/react/lib/onlyChild.js +33 -0
- data/test/dummy/node_modules/react/lib/quoteAttributeValueForBrowser.js +26 -0
- data/test/dummy/node_modules/react/lib/reactComponentExpect.js +216 -0
- data/test/dummy/node_modules/react/lib/renderSubtreeIntoContainer.js +16 -0
- data/test/dummy/node_modules/react/lib/setInnerHTML.js +90 -0
- data/test/dummy/node_modules/react/lib/setTextContent.js +40 -0
- data/test/dummy/node_modules/react/lib/shallowCompare.js +24 -0
- data/test/dummy/node_modules/react/lib/shouldUpdateReactComponent.js +43 -0
- data/test/dummy/node_modules/react/lib/sliceChildren.js +34 -0
- data/test/dummy/node_modules/react/lib/traverseAllChildren.js +189 -0
- data/test/dummy/node_modules/react/lib/update.js +107 -0
- data/test/dummy/node_modules/react/lib/validateDOMNesting.js +363 -0
- data/test/dummy/node_modules/react/lib/webcomponents.js +6379 -0
- data/test/dummy/node_modules/react/package.json +99 -0
- data/test/dummy/node_modules/react/react.js +3 -0
- data/test/dummy/node_modules/recast/LICENSE +20 -0
- data/test/dummy/node_modules/recast/README.md +143 -0
- data/test/dummy/node_modules/recast/example/add-braces +44 -0
- data/test/dummy/node_modules/recast/example/generic-identity +17 -0
- data/test/dummy/node_modules/recast/example/identity +8 -0
- data/test/dummy/node_modules/recast/example/to-while +84 -0
- data/test/dummy/node_modules/recast/lib/comments.js +350 -0
- data/test/dummy/node_modules/recast/lib/fast-path.js +472 -0
- data/test/dummy/node_modules/recast/lib/lines.js +878 -0
- data/test/dummy/node_modules/recast/lib/mapping.js +277 -0
- data/test/dummy/node_modules/recast/lib/options.js +95 -0
- data/test/dummy/node_modules/recast/lib/parser.js +149 -0
- data/test/dummy/node_modules/recast/lib/patcher.js +515 -0
- data/test/dummy/node_modules/recast/lib/printer.js +1786 -0
- data/test/dummy/node_modules/recast/lib/types.js +5 -0
- data/test/dummy/node_modules/recast/lib/util.js +220 -0
- data/test/dummy/node_modules/recast/main.js +99 -0
- data/test/dummy/node_modules/recast/node_modules/esprima-fb/README.md +32 -0
- data/test/dummy/node_modules/recast/node_modules/esprima-fb/bin/esparse.js +117 -0
- data/test/dummy/node_modules/recast/node_modules/esprima-fb/bin/esvalidate.js +199 -0
- data/test/dummy/node_modules/recast/node_modules/esprima-fb/esprima.js +7775 -0
- data/test/dummy/node_modules/recast/node_modules/esprima-fb/package.json +120 -0
- data/test/dummy/node_modules/recast/node_modules/esprima-fb/test/compat.js +244 -0
- data/test/dummy/node_modules/recast/node_modules/esprima-fb/test/reflect.js +421 -0
- data/test/dummy/node_modules/recast/node_modules/esprima-fb/test/run.js +66 -0
- data/test/dummy/node_modules/recast/node_modules/esprima-fb/test/runner.js +515 -0
- data/test/dummy/node_modules/recast/node_modules/esprima-fb/test/test.js +23150 -0
- data/test/dummy/node_modules/recast/node_modules/source-map/README.md +729 -0
- data/test/dummy/node_modules/recast/node_modules/source-map/dist/source-map.debug.js +3006 -0
- data/test/dummy/node_modules/recast/node_modules/source-map/dist/source-map.js +3005 -0
- data/test/dummy/node_modules/recast/node_modules/source-map/dist/source-map.min.js +2 -0
- data/test/dummy/node_modules/recast/node_modules/source-map/dist/source-map.min.js.map +1 -0
- data/test/dummy/node_modules/recast/node_modules/source-map/lib/array-set.js +104 -0
- data/test/dummy/node_modules/recast/node_modules/source-map/lib/base64-vlq.js +141 -0
- data/test/dummy/node_modules/recast/node_modules/source-map/lib/base64.js +68 -0
- data/test/dummy/node_modules/recast/node_modules/source-map/lib/binary-search.js +112 -0
- data/test/dummy/node_modules/recast/node_modules/source-map/lib/mapping-list.js +80 -0
- data/test/dummy/node_modules/recast/node_modules/source-map/lib/quick-sort.js +115 -0
- data/test/dummy/node_modules/recast/node_modules/source-map/lib/source-map-consumer.js +1082 -0
- data/test/dummy/node_modules/recast/node_modules/source-map/lib/source-map-generator.js +396 -0
- data/test/dummy/node_modules/recast/node_modules/source-map/lib/source-node.js +408 -0
- data/test/dummy/node_modules/recast/node_modules/source-map/lib/util.js +369 -0
- data/test/dummy/node_modules/recast/node_modules/source-map/package.json +239 -0
- data/test/dummy/node_modules/recast/node_modules/source-map/source-map.js +8 -0
- data/test/dummy/node_modules/recast/package.json +92 -0
- data/test/dummy/node_modules/regenerate/LICENSE-MIT.txt +20 -0
- data/test/dummy/node_modules/regenerate/README.md +332 -0
- data/test/dummy/node_modules/regenerate/package.json +87 -0
- data/test/dummy/node_modules/regenerate/regenerate.js +1158 -0
- data/test/dummy/node_modules/regenerate/x.js +15 -0
- data/test/dummy/node_modules/regexpu/LICENSE-MIT.txt +20 -0
- data/test/dummy/node_modules/regexpu/README.md +191 -0
- data/test/dummy/node_modules/regexpu/bin/regexpu +112 -0
- data/test/dummy/node_modules/regexpu/data/character-class-escape-sets.js +104 -0
- data/test/dummy/node_modules/regexpu/data/iu-mappings.json +296 -0
- data/test/dummy/node_modules/regexpu/man/regexpu.1 +58 -0
- data/test/dummy/node_modules/regexpu/node_modules/esprima/ChangeLog +159 -0
- data/test/dummy/node_modules/regexpu/node_modules/esprima/LICENSE.BSD +21 -0
- data/test/dummy/node_modules/regexpu/node_modules/esprima/README.md +27 -0
- data/test/dummy/node_modules/regexpu/node_modules/esprima/bin/esparse.js +126 -0
- data/test/dummy/node_modules/regexpu/node_modules/esprima/bin/esvalidate.js +199 -0
- data/test/dummy/node_modules/regexpu/node_modules/esprima/esprima.js +5743 -0
- data/test/dummy/node_modules/regexpu/node_modules/esprima/package.json +140 -0
- data/test/dummy/node_modules/regexpu/package.json +126 -0
- data/test/dummy/node_modules/regexpu/regexpu.js +8 -0
- data/test/dummy/node_modules/regexpu/rewrite-pattern.js +193 -0
- data/test/dummy/node_modules/regexpu/transform-tree.js +41 -0
- data/test/dummy/node_modules/regexpu/transpile-code.js +24 -0
- data/test/dummy/node_modules/regjsgen/LICENSE.txt +20 -0
- data/test/dummy/node_modules/regjsgen/README.md +60 -0
- data/test/dummy/node_modules/regjsgen/package.json +97 -0
- data/test/dummy/node_modules/regjsgen/regjsgen.js +408 -0
- data/test/dummy/node_modules/regjsparser/CHANGELOG +12 -0
- data/test/dummy/node_modules/regjsparser/LICENSE.BSD +19 -0
- data/test/dummy/node_modules/regjsparser/README.md +34 -0
- data/test/dummy/node_modules/regjsparser/bin/parser +50 -0
- data/test/dummy/node_modules/regjsparser/package.json +85 -0
- data/test/dummy/node_modules/regjsparser/parser.js +962 -0
- data/test/dummy/node_modules/repeating/cli.js +36 -0
- data/test/dummy/node_modules/repeating/index.js +24 -0
- data/test/dummy/node_modules/repeating/license +21 -0
- data/test/dummy/node_modules/repeating/package.json +99 -0
- data/test/dummy/node_modules/repeating/readme.md +40 -0
- data/test/dummy/node_modules/require-relative/README.md +26 -0
- data/test/dummy/node_modules/require-relative/index.js +33 -0
- data/test/dummy/node_modules/require-relative/package.json +75 -0
- data/test/dummy/node_modules/resolve/LICENSE +18 -0
- data/test/dummy/node_modules/resolve/example/async.js +5 -0
- data/test/dummy/node_modules/resolve/example/sync.js +3 -0
- data/test/dummy/node_modules/resolve/index.js +5 -0
- data/test/dummy/node_modules/resolve/lib/async.js +192 -0
- data/test/dummy/node_modules/resolve/lib/caller.js +8 -0
- data/test/dummy/node_modules/resolve/lib/core.js +4 -0
- data/test/dummy/node_modules/resolve/lib/core.json +38 -0
- data/test/dummy/node_modules/resolve/lib/node-modules-paths.js +36 -0
- data/test/dummy/node_modules/resolve/lib/sync.js +81 -0
- data/test/dummy/node_modules/resolve/package.json +81 -0
- data/test/dummy/node_modules/resolve/readme.markdown +148 -0
- data/test/dummy/node_modules/resolve/test/core.js +12 -0
- data/test/dummy/node_modules/resolve/test/dotdot.js +29 -0
- data/test/dummy/node_modules/resolve/test/dotdot/abc/index.js +2 -0
- data/test/dummy/node_modules/resolve/test/dotdot/index.js +1 -0
- data/test/dummy/node_modules/resolve/test/faulty_basedir.js +17 -0
- data/test/dummy/node_modules/resolve/test/filter.js +18 -0
- data/test/dummy/node_modules/resolve/test/filter_sync.js +15 -0
- data/test/dummy/node_modules/resolve/test/mock.js +142 -0
- data/test/dummy/node_modules/resolve/test/mock_sync.js +68 -0
- data/test/dummy/node_modules/resolve/test/module_dir.js +56 -0
- data/test/dummy/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +1 -0
- data/test/dummy/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +1 -0
- data/test/dummy/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +1 -0
- data/test/dummy/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +3 -0
- data/test/dummy/node_modules/resolve/test/node_path.js +48 -0
- data/test/dummy/node_modules/resolve/test/node_path/x/aaa/index.js +1 -0
- data/test/dummy/node_modules/resolve/test/node_path/x/ccc/index.js +1 -0
- data/test/dummy/node_modules/resolve/test/node_path/y/bbb/index.js +1 -0
- data/test/dummy/node_modules/resolve/test/node_path/y/ccc/index.js +1 -0
- data/test/dummy/node_modules/resolve/test/nonstring.js +9 -0
- data/test/dummy/node_modules/resolve/test/pathfilter.js +35 -0
- data/test/dummy/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
- data/test/dummy/node_modules/resolve/test/pathfilter/deep_ref/node_modules/deep/alt.js +0 -0
- data/test/dummy/node_modules/resolve/test/pathfilter/deep_ref/node_modules/deep/deeper/ref.js +0 -0
- data/test/dummy/node_modules/resolve/test/pathfilter/deep_ref/node_modules/deep/package.json +4 -0
- data/test/dummy/node_modules/resolve/test/pathfilter/deep_ref/node_modules/deep/ref.js +0 -0
- data/test/dummy/node_modules/resolve/test/precedence.js +23 -0
- data/test/dummy/node_modules/resolve/test/precedence/aaa.js +1 -0
- data/test/dummy/node_modules/resolve/test/precedence/aaa/index.js +1 -0
- data/test/dummy/node_modules/resolve/test/precedence/aaa/main.js +1 -0
- data/test/dummy/node_modules/resolve/test/precedence/bbb.js +1 -0
- data/test/dummy/node_modules/resolve/test/precedence/bbb/main.js +1 -0
- data/test/dummy/node_modules/resolve/test/resolver.js +281 -0
- data/test/dummy/node_modules/resolve/test/resolver/bar/node_modules/foo/index.js +1 -0
- data/test/dummy/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- data/test/dummy/node_modules/resolve/test/resolver/baz/package.json +3 -0
- data/test/dummy/node_modules/resolve/test/resolver/baz/quux.js +1 -0
- data/test/dummy/node_modules/resolve/test/resolver/biz/node_modules/garply/lib/index.js +1 -0
- data/test/dummy/node_modules/resolve/test/resolver/biz/node_modules/garply/package.json +3 -0
- data/test/dummy/node_modules/resolve/test/resolver/biz/node_modules/grux/index.js +1 -0
- data/test/dummy/node_modules/resolve/test/resolver/biz/node_modules/tiv/index.js +1 -0
- data/test/dummy/node_modules/resolve/test/resolver/cup.coffee +1 -0
- data/test/dummy/node_modules/resolve/test/resolver/foo.js +1 -0
- data/test/dummy/node_modules/resolve/test/resolver/incorrect_main/index.js +2 -0
- data/test/dummy/node_modules/resolve/test/resolver/incorrect_main/package.json +3 -0
- data/test/dummy/node_modules/resolve/test/resolver/mug.coffee +0 -0
- data/test/dummy/node_modules/resolve/test/resolver/mug.js +0 -0
- data/test/dummy/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- data/test/dummy/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- data/test/dummy/node_modules/resolve/test/resolver/punycode/node_modules/punycode/index.js +0 -0
- data/test/dummy/node_modules/resolve/test/resolver/quux/foo/index.js +1 -0
- data/test/dummy/node_modules/resolve/test/resolver/without_basedir/main.js +6 -0
- data/test/dummy/node_modules/resolve/test/resolver/without_basedir/node_modules/mymodule.js +1 -0
- data/test/dummy/node_modules/resolve/test/resolver_sync.js +180 -0
- data/test/dummy/node_modules/resolve/test/subdirs.js +13 -0
- data/test/dummy/node_modules/resolve/test/subdirs/node_modules/a/b/c/x.json +1 -0
- data/test/dummy/node_modules/resolve/test/subdirs/node_modules/a/package.json +1 -0
- data/test/dummy/node_modules/rollup-plugin-babel/CHANGELOG.md +23 -0
- data/test/dummy/node_modules/rollup-plugin-babel/README.md +81 -0
- data/test/dummy/node_modules/rollup-plugin-babel/index.js +50 -0
- data/test/dummy/node_modules/rollup-plugin-babel/package.json +91 -0
- data/test/dummy/node_modules/rollup-plugin-babel/test/samples/basic/main.js +2 -0
- data/test/dummy/node_modules/rollup-plugin-babel/test/samples/checks/foo/index.js +1 -0
- data/test/dummy/node_modules/rollup-plugin-babel/test/samples/checks/main.js +3 -0
- data/test/dummy/node_modules/rollup-plugin-babel/test/samples/class/main.js +5 -0
- data/test/dummy/node_modules/rollup-plugin-babel/test/samples/exclusions/foo.js +1 -0
- data/test/dummy/node_modules/rollup-plugin-babel/test/samples/exclusions/main.js +3 -0
- data/test/dummy/node_modules/rollup-plugin-babel/test/test.js +121 -0
- data/test/dummy/node_modules/rollup-plugin-commonjs/CHANGELOG.md +42 -0
- data/test/dummy/node_modules/rollup-plugin-commonjs/README.md +46 -0
- data/test/dummy/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.cjs.js +194 -0
- data/test/dummy/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.es6.js +190 -0
- data/test/dummy/node_modules/rollup-plugin-commonjs/package.json +90 -0
- data/test/dummy/node_modules/rollup-plugin-commonjs/src/ast-utils.js +33 -0
- data/test/dummy/node_modules/rollup-plugin-commonjs/src/index.js +161 -0
- data/test/dummy/node_modules/rollup-plugin-inject/CHANGELOG.md +17 -0
- data/test/dummy/node_modules/rollup-plugin-inject/README.md +50 -0
- data/test/dummy/node_modules/rollup-plugin-inject/dist/rollup-plugin-inject.cjs.js +202 -0
- data/test/dummy/node_modules/rollup-plugin-inject/dist/rollup-plugin-inject.es6.js +198 -0
- data/test/dummy/node_modules/rollup-plugin-inject/package.json +78 -0
- data/test/dummy/node_modules/rollup-plugin-inject/src/index.js +158 -0
- data/test/dummy/node_modules/rollup-plugin-inject/src/makeLegalIdentifier.js +15 -0
- data/test/dummy/node_modules/rollup-plugin-npm/CHANGELOG.md +13 -0
- data/test/dummy/node_modules/rollup-plugin-npm/README.md +58 -0
- data/test/dummy/node_modules/rollup-plugin-npm/dist/rollup-plugin-npm.cjs.js +50 -0
- data/test/dummy/node_modules/rollup-plugin-npm/dist/rollup-plugin-npm.es6.js +46 -0
- data/test/dummy/node_modules/rollup-plugin-npm/package.json +81 -0
- data/test/dummy/node_modules/rollup-plugin-npm/src/index.js +46 -0
- data/test/dummy/node_modules/rollup-pluginutils/CHANGELOG.md +17 -0
- data/test/dummy/node_modules/rollup-pluginutils/README.md +109 -0
- data/test/dummy/node_modules/rollup-pluginutils/dist/pluginutils.cjs.js +252 -0
- data/test/dummy/node_modules/rollup-pluginutils/dist/pluginutils.es6.js +247 -0
- data/test/dummy/node_modules/rollup-pluginutils/node_modules/minimatch/LICENSE +15 -0
- data/test/dummy/node_modules/rollup-pluginutils/node_modules/minimatch/README.md +216 -0
- data/test/dummy/node_modules/rollup-pluginutils/node_modules/minimatch/minimatch.js +912 -0
- data/test/dummy/node_modules/rollup-pluginutils/node_modules/minimatch/package.json +84 -0
- data/test/dummy/node_modules/rollup-pluginutils/package.json +81 -0
- data/test/dummy/node_modules/rollup-pluginutils/src/addExtension.js +14 -0
- data/test/dummy/node_modules/rollup-pluginutils/src/attachScopes.js +145 -0
- data/test/dummy/node_modules/rollup-pluginutils/src/createFilter.js +22 -0
- data/test/dummy/node_modules/rollup-pluginutils/src/index.js +4 -0
- data/test/dummy/node_modules/rollup-pluginutils/src/makeLegalIdentifier.js +15 -0
- data/test/dummy/node_modules/rollup-pluginutils/src/utils/ensureArray.js +5 -0
- data/test/dummy/node_modules/rollup/CHANGELOG.md +376 -0
- data/test/dummy/node_modules/rollup/LICENSE.md +21 -0
- data/test/dummy/node_modules/rollup/README.md +142 -0
- data/test/dummy/node_modules/rollup/bin/handleError.js +45 -0
- data/test/dummy/node_modules/rollup/bin/help.md +37 -0
- data/test/dummy/node_modules/rollup/bin/rollup +37 -0
- data/test/dummy/node_modules/rollup/bin/runRollup.js +134 -0
- data/test/dummy/node_modules/rollup/bin/showHelp.js +13 -0
- data/test/dummy/node_modules/rollup/dist/rollup.browser.js +6715 -0
- data/test/dummy/node_modules/rollup/dist/rollup.browser.js.map +1 -0
- data/test/dummy/node_modules/rollup/dist/rollup.js +7823 -0
- data/test/dummy/node_modules/rollup/dist/rollup.js.map +1 -0
- data/test/dummy/node_modules/rollup/package.json +133 -0
- data/test/dummy/node_modules/rollup/src/Bundle.js +335 -0
- data/test/dummy/node_modules/rollup/src/Declaration.js +236 -0
- data/test/dummy/node_modules/rollup/src/ExternalModule.js +38 -0
- data/test/dummy/node_modules/rollup/src/Module.js +619 -0
- data/test/dummy/node_modules/rollup/src/Statement.js +173 -0
- data/test/dummy/node_modules/rollup/src/ast/Scope.js +84 -0
- data/test/dummy/node_modules/rollup/src/ast/attachScopes.js +78 -0
- data/test/dummy/node_modules/rollup/src/ast/conditions.js +38 -0
- data/test/dummy/node_modules/rollup/src/ast/create.js +7 -0
- data/test/dummy/node_modules/rollup/src/ast/flatten.js +16 -0
- data/test/dummy/node_modules/rollup/src/ast/isFunctionDeclaration.js +6 -0
- data/test/dummy/node_modules/rollup/src/ast/isReference.js +21 -0
- data/test/dummy/node_modules/rollup/src/ast/modifierNodes.js +4 -0
- data/test/dummy/node_modules/rollup/src/banner.js +8 -0
- data/test/dummy/node_modules/rollup/src/finalisers/amd.js +32 -0
- data/test/dummy/node_modules/rollup/src/finalisers/cjs.js +30 -0
- data/test/dummy/node_modules/rollup/src/finalisers/es6.js +58 -0
- data/test/dummy/node_modules/rollup/src/finalisers/iife.js +43 -0
- data/test/dummy/node_modules/rollup/src/finalisers/index.js +7 -0
- data/test/dummy/node_modules/rollup/src/finalisers/shared/getExportBlock.js +21 -0
- data/test/dummy/node_modules/rollup/src/finalisers/shared/getInteropBlock.js +12 -0
- data/test/dummy/node_modules/rollup/src/finalisers/umd.js +59 -0
- data/test/dummy/node_modules/rollup/src/rollup.js +58 -0
- data/test/dummy/node_modules/rollup/src/utils/callIfFunction.js +3 -0
- data/test/dummy/node_modules/rollup/src/utils/collapseSourcemaps.js +72 -0
- data/test/dummy/node_modules/rollup/src/utils/defaults.js +32 -0
- data/test/dummy/node_modules/rollup/src/utils/ensureArray.js +5 -0
- data/test/dummy/node_modules/rollup/src/utils/first.js +13 -0
- data/test/dummy/node_modules/rollup/src/utils/fs.js +39 -0
- data/test/dummy/node_modules/rollup/src/utils/getExportMode.js +35 -0
- data/test/dummy/node_modules/rollup/src/utils/getIndentString.js +7 -0
- data/test/dummy/node_modules/rollup/src/utils/getLocation.js +20 -0
- data/test/dummy/node_modules/rollup/src/utils/makeLegalIdentifier.js +18 -0
- data/test/dummy/node_modules/rollup/src/utils/map-helpers.js +11 -0
- data/test/dummy/node_modules/rollup/src/utils/normalizePlatform.js +3 -0
- data/test/dummy/node_modules/rollup/src/utils/object.js +5 -0
- data/test/dummy/node_modules/rollup/src/utils/path.js +73 -0
- data/test/dummy/node_modules/rollup/src/utils/run.js +141 -0
- data/test/dummy/node_modules/rollup/src/utils/sourceMappingURL.js +6 -0
- data/test/dummy/node_modules/rollup/src/utils/transform.js +39 -0
- data/test/dummy/node_modules/shebang-regex/index.js +2 -0
- data/test/dummy/node_modules/shebang-regex/license +21 -0
- data/test/dummy/node_modules/shebang-regex/package.json +87 -0
- data/test/dummy/node_modules/shebang-regex/readme.md +29 -0
- data/test/dummy/node_modules/slash/index.js +11 -0
- data/test/dummy/node_modules/slash/package.json +87 -0
- data/test/dummy/node_modules/slash/readme.md +44 -0
- data/test/dummy/node_modules/source-map-support/LICENSE.md +21 -0
- data/test/dummy/node_modules/source-map-support/README.md +239 -0
- data/test/dummy/node_modules/source-map-support/amd-test/browser-source-map-support.js +89 -0
- data/test/dummy/node_modules/source-map-support/amd-test/index.html +6 -0
- data/test/dummy/node_modules/source-map-support/amd-test/require.js +36 -0
- data/test/dummy/node_modules/source-map-support/amd-test/script.coffee +13 -0
- data/test/dummy/node_modules/source-map-support/amd-test/script.js +24 -0
- data/test/dummy/node_modules/source-map-support/amd-test/script.map +10 -0
- data/test/dummy/node_modules/source-map-support/browser-source-map-support.js +89 -0
- data/test/dummy/node_modules/source-map-support/browser-test/index.html +6 -0
- data/test/dummy/node_modules/source-map-support/browser-test/script.coffee +12 -0
- data/test/dummy/node_modules/source-map-support/browser-test/script.js +25 -0
- data/test/dummy/node_modules/source-map-support/browser-test/script.map +10 -0
- data/test/dummy/node_modules/source-map-support/build.js +73 -0
- data/test/dummy/node_modules/source-map-support/header-test/index.html +6 -0
- data/test/dummy/node_modules/source-map-support/header-test/script.coffee +12 -0
- data/test/dummy/node_modules/source-map-support/header-test/script.js +25 -0
- data/test/dummy/node_modules/source-map-support/header-test/script.map +10 -0
- data/test/dummy/node_modules/source-map-support/header-test/server.js +45 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/CHANGELOG.md +121 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/LICENSE +28 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/Makefile.dryice.js +166 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/README.md +434 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/build/assert-shim.js +56 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/build/mini-require.js +152 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/build/prefix-source-map.jsm +20 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/build/prefix-utils.jsm +18 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/build/suffix-browser.js +8 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/build/suffix-source-map.jsm +6 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/build/suffix-utils.jsm +21 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/build/test-prefix.js +8 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/build/test-suffix.js +3 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/lib/source-map.js +8 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/lib/source-map/array-set.js +97 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/lib/source-map/base64-vlq.js +144 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/lib/source-map/base64.js +42 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/lib/source-map/binary-search.js +81 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-map-consumer.js +478 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-map-generator.js +380 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-node.js +371 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/lib/source-map/util.js +205 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/package.json +163 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/test/run-tests.js +62 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/test/source-map/test-api.js +26 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/test/source-map/test-array-set.js +104 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/test/source-map/test-base64-vlq.js +24 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/test/source-map/test-base64.js +35 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/test/source-map/test-dog-fooding.js +72 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-map-consumer.js +451 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-map-generator.js +417 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-node.js +365 -0
- data/test/dummy/node_modules/source-map-support/node_modules/source-map/test/source-map/util.js +161 -0
- data/test/dummy/node_modules/source-map-support/package.json +86 -0
- data/test/dummy/node_modules/source-map-support/register.js +1 -0
- data/test/dummy/node_modules/source-map-support/source-map-support.js +444 -0
- data/test/dummy/node_modules/source-map-support/test.js +477 -0
- data/test/dummy/node_modules/source-map/CHANGELOG.md +112 -0
- data/test/dummy/node_modules/source-map/LICENSE +28 -0
- data/test/dummy/node_modules/source-map/Makefile.dryice.js +166 -0
- data/test/dummy/node_modules/source-map/README.md +434 -0
- data/test/dummy/node_modules/source-map/build/assert-shim.js +56 -0
- data/test/dummy/node_modules/source-map/build/mini-require.js +152 -0
- data/test/dummy/node_modules/source-map/build/prefix-source-map.jsm +20 -0
- data/test/dummy/node_modules/source-map/build/prefix-utils.jsm +18 -0
- data/test/dummy/node_modules/source-map/build/suffix-browser.js +8 -0
- data/test/dummy/node_modules/source-map/build/suffix-source-map.jsm +6 -0
- data/test/dummy/node_modules/source-map/build/suffix-utils.jsm +21 -0
- data/test/dummy/node_modules/source-map/build/test-prefix.js +8 -0
- data/test/dummy/node_modules/source-map/build/test-suffix.js +3 -0
- data/test/dummy/node_modules/source-map/lib/source-map.js +8 -0
- data/test/dummy/node_modules/source-map/lib/source-map/array-set.js +97 -0
- data/test/dummy/node_modules/source-map/lib/source-map/base64-vlq.js +144 -0
- data/test/dummy/node_modules/source-map/lib/source-map/base64.js +42 -0
- data/test/dummy/node_modules/source-map/lib/source-map/binary-search.js +81 -0
- data/test/dummy/node_modules/source-map/lib/source-map/source-map-consumer.js +477 -0
- data/test/dummy/node_modules/source-map/lib/source-map/source-map-generator.js +380 -0
- data/test/dummy/node_modules/source-map/lib/source-map/source-node.js +371 -0
- data/test/dummy/node_modules/source-map/lib/source-map/util.js +205 -0
- data/test/dummy/node_modules/source-map/package.json +155 -0
- data/test/dummy/node_modules/source-map/test/run-tests.js +71 -0
- data/test/dummy/node_modules/source-map/test/source-map/test-api.js +26 -0
- data/test/dummy/node_modules/source-map/test/source-map/test-array-set.js +104 -0
- data/test/dummy/node_modules/source-map/test/source-map/test-base64-vlq.js +24 -0
- data/test/dummy/node_modules/source-map/test/source-map/test-base64.js +35 -0
- data/test/dummy/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
- data/test/dummy/node_modules/source-map/test/source-map/test-dog-fooding.js +72 -0
- data/test/dummy/node_modules/source-map/test/source-map/test-source-map-consumer.js +451 -0
- data/test/dummy/node_modules/source-map/test/source-map/test-source-map-generator.js +417 -0
- data/test/dummy/node_modules/source-map/test/source-map/test-source-node.js +365 -0
- data/test/dummy/node_modules/source-map/test/source-map/util.js +161 -0
- data/test/dummy/node_modules/strip-ansi/index.js +6 -0
- data/test/dummy/node_modules/strip-ansi/license +21 -0
- data/test/dummy/node_modules/strip-ansi/package.json +109 -0
- data/test/dummy/node_modules/strip-ansi/readme.md +33 -0
- data/test/dummy/node_modules/supports-color/index.js +50 -0
- data/test/dummy/node_modules/supports-color/license +21 -0
- data/test/dummy/node_modules/supports-color/package.json +104 -0
- data/test/dummy/node_modules/supports-color/readme.md +36 -0
- data/test/dummy/node_modules/through/LICENSE.APACHE2 +15 -0
- data/test/dummy/node_modules/through/LICENSE.MIT +24 -0
- data/test/dummy/node_modules/through/index.js +108 -0
- data/test/dummy/node_modules/through/package.json +91 -0
- data/test/dummy/node_modules/through/readme.markdown +64 -0
- data/test/dummy/node_modules/through/test/async.js +28 -0
- data/test/dummy/node_modules/through/test/auto-destroy.js +30 -0
- data/test/dummy/node_modules/through/test/buffering.js +71 -0
- data/test/dummy/node_modules/through/test/end.js +45 -0
- data/test/dummy/node_modules/through/test/index.js +133 -0
- data/test/dummy/node_modules/to-fast-properties/index.js +9 -0
- data/test/dummy/node_modules/to-fast-properties/license +21 -0
- data/test/dummy/node_modules/to-fast-properties/package.json +90 -0
- data/test/dummy/node_modules/to-fast-properties/readme.md +37 -0
- data/test/dummy/node_modules/trim-right/index.js +10 -0
- data/test/dummy/node_modules/trim-right/license +21 -0
- data/test/dummy/node_modules/trim-right/package.json +92 -0
- data/test/dummy/node_modules/trim-right/readme.md +30 -0
- data/test/dummy/node_modules/ua-parser-js/component.json +24 -0
- data/test/dummy/node_modules/ua-parser-js/dist/ua-parser.min.js +9 -0
- data/test/dummy/node_modules/ua-parser-js/dist/ua-parser.pack.js +9 -0
- data/test/dummy/node_modules/ua-parser-js/package.js +12 -0
- data/test/dummy/node_modules/ua-parser-js/package.json +217 -0
- data/test/dummy/node_modules/ua-parser-js/readme.md +281 -0
- data/test/dummy/node_modules/ua-parser-js/src/ua-parser.js +870 -0
- data/test/dummy/node_modules/ua-parser-js/test/browser&mediaplayer-test.json +1232 -0
- data/test/dummy/node_modules/ua-parser-js/test/browser-test.json +712 -0
- data/test/dummy/node_modules/ua-parser-js/test/cpu-test.json +106 -0
- data/test/dummy/node_modules/ua-parser-js/test/device-test.json +242 -0
- data/test/dummy/node_modules/ua-parser-js/test/engine-test.json +74 -0
- data/test/dummy/node_modules/ua-parser-js/test/os-test.json +605 -0
- data/test/dummy/node_modules/ua-parser-js/test/test.js +74 -0
- data/test/dummy/node_modules/ua-parser-js/ua-parser-js.jquery.json +32 -0
- data/test/dummy/node_modules/user-home/cli.js +26 -0
- data/test/dummy/node_modules/user-home/index.js +15 -0
- data/test/dummy/node_modules/user-home/license +21 -0
- data/test/dummy/node_modules/user-home/package.json +94 -0
- data/test/dummy/node_modules/user-home/readme.md +42 -0
- data/test/dummy/node_modules/vlq/CHANGELOG.md +13 -0
- data/test/dummy/node_modules/vlq/README.md +73 -0
- data/test/dummy/node_modules/vlq/dist/vlq.js +94 -0
- data/test/dummy/node_modules/vlq/package.json +82 -0
- data/test/dummy/node_modules/vlq/src/vlq.js +83 -0
- data/test/dummy/node_modules/whatwg-fetch/LICENSE +20 -0
- data/test/dummy/node_modules/whatwg-fetch/README.md +160 -0
- data/test/dummy/node_modules/whatwg-fetch/fetch.js +330 -0
- data/test/dummy/node_modules/whatwg-fetch/package.json +84 -0
- data/test/dummy/package.json +1 -0
- data/test/es6_tilt_test.rb +16 -6
- metadata +6128 -11
- data/lib/es6_tilt/tags +0 -2
- data/lib/tags +0 -5
@@ -0,0 +1,82 @@
|
|
1
|
+
var fs = require("fs"), path = require("path")
|
2
|
+
var stream = require("stream")
|
3
|
+
|
4
|
+
var browserify = require("browserify")
|
5
|
+
var babel = require('babel-core')
|
6
|
+
var babelify = require("babelify").configure({loose: "all"})
|
7
|
+
|
8
|
+
process.chdir(path.resolve(__dirname, ".."))
|
9
|
+
|
10
|
+
browserify({standalone: "acorn"})
|
11
|
+
.plugin(require('browserify-derequire'))
|
12
|
+
.transform(babelify)
|
13
|
+
.require("./src/index.js", {entry: true})
|
14
|
+
.bundle()
|
15
|
+
.on("error", function (err) { console.log("Error: " + err.message) })
|
16
|
+
.pipe(fs.createWriteStream("dist/acorn.js"))
|
17
|
+
|
18
|
+
var ACORN_PLACEHOLDER = "this_function_call_should_be_replaced_with_a_call_to_load_acorn()";
|
19
|
+
function acornShimPrepare(file) {
|
20
|
+
var tr = new stream.Transform
|
21
|
+
if (file == path.resolve(__dirname, "../src/index.js")) {
|
22
|
+
var sent = false
|
23
|
+
tr._transform = function(chunk, _, callback) {
|
24
|
+
if (!sent) {
|
25
|
+
sent = true
|
26
|
+
callback(null, ACORN_PLACEHOLDER);
|
27
|
+
} else {
|
28
|
+
callback()
|
29
|
+
}
|
30
|
+
}
|
31
|
+
} else {
|
32
|
+
tr._transform = function(chunk, _, callback) { callback(null, chunk) }
|
33
|
+
}
|
34
|
+
return tr
|
35
|
+
}
|
36
|
+
function acornShimComplete() {
|
37
|
+
var tr = new stream.Transform
|
38
|
+
var buffer = "";
|
39
|
+
tr._transform = function(chunk, _, callback) {
|
40
|
+
buffer += chunk.toString("utf8");
|
41
|
+
callback();
|
42
|
+
};
|
43
|
+
tr._flush = function (callback) {
|
44
|
+
tr.push(buffer.replace(ACORN_PLACEHOLDER, "module.exports = typeof acorn != 'undefined' ? acorn : require(\"./acorn\")"));
|
45
|
+
callback(null);
|
46
|
+
};
|
47
|
+
return tr;
|
48
|
+
}
|
49
|
+
|
50
|
+
browserify({standalone: "acorn.loose"})
|
51
|
+
.plugin(require('browserify-derequire'))
|
52
|
+
.transform(acornShimPrepare)
|
53
|
+
.transform(babelify)
|
54
|
+
.require("./src/loose/index.js", {entry: true})
|
55
|
+
.bundle()
|
56
|
+
.on("error", function (err) { console.log("Error: " + err.message) })
|
57
|
+
.pipe(acornShimComplete())
|
58
|
+
.pipe(fs.createWriteStream("dist/acorn_loose.js"))
|
59
|
+
|
60
|
+
browserify({standalone: "acorn.walk"})
|
61
|
+
.plugin(require('browserify-derequire'))
|
62
|
+
.transform(acornShimPrepare)
|
63
|
+
.transform(babelify)
|
64
|
+
.require("./src/walk/index.js", {entry: true})
|
65
|
+
.bundle()
|
66
|
+
.on("error", function (err) { console.log("Error: " + err.message) })
|
67
|
+
.pipe(acornShimComplete())
|
68
|
+
.pipe(fs.createWriteStream("dist/walk.js"))
|
69
|
+
|
70
|
+
babel.transformFile("./src/bin/acorn.js", function (err, result) {
|
71
|
+
if (err) return console.log("Error: " + err.message)
|
72
|
+
fs.writeFile("bin/acorn", result.code, function (err) {
|
73
|
+
if (err) return console.log("Error: " + err.message)
|
74
|
+
|
75
|
+
// Make bin/acorn executable
|
76
|
+
if (process.platform === 'win32')
|
77
|
+
return
|
78
|
+
var stat = fs.statSync("bin/acorn")
|
79
|
+
var newPerm = stat.mode | parseInt('111', 8)
|
80
|
+
fs.chmodSync("bin/acorn", newPerm)
|
81
|
+
})
|
82
|
+
})
|
@@ -0,0 +1,47 @@
|
|
1
|
+
// Note: run `npm install unicode-7.0.0` first.
|
2
|
+
|
3
|
+
// Which Unicode version should be used?
|
4
|
+
var version = '7.0.0';
|
5
|
+
|
6
|
+
var start = require('unicode-' + version + '/properties/ID_Start/code-points')
|
7
|
+
.filter(function(ch) { return ch > 127; });
|
8
|
+
var cont = [0x200c, 0x200d].concat(require('unicode-' + version + '/properties/ID_Continue/code-points')
|
9
|
+
.filter(function(ch) { return ch > 127 && start.indexOf(ch) == -1; }));
|
10
|
+
|
11
|
+
function pad(str, width) {
|
12
|
+
while (str.length < width) str = "0" + str;
|
13
|
+
return str;
|
14
|
+
}
|
15
|
+
|
16
|
+
function esc(code) {
|
17
|
+
var hex = code.toString(16);
|
18
|
+
if (hex.length <= 2) return "\\x" + pad(hex, 2);
|
19
|
+
else return "\\u" + pad(hex, 4);
|
20
|
+
}
|
21
|
+
|
22
|
+
function generate(chars) {
|
23
|
+
var astral = [], re = "";
|
24
|
+
for (var i = 0, at = 0x10000; i < chars.length; i++) {
|
25
|
+
var from = chars[i], to = from;
|
26
|
+
while (i < chars.length - 1 && chars[i + 1] == to + 1) {
|
27
|
+
i++;
|
28
|
+
to++;
|
29
|
+
}
|
30
|
+
if (to <= 0xffff) {
|
31
|
+
if (from == to) re += esc(from);
|
32
|
+
else if (from + 1 == to) re += esc(from) + esc(to);
|
33
|
+
else re += esc(from) + "-" + esc(to);
|
34
|
+
} else {
|
35
|
+
astral.push(from - at, to - from);
|
36
|
+
at = to;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
return {nonASCII: re, astral: astral};
|
40
|
+
}
|
41
|
+
|
42
|
+
var startData = generate(start), contData = generate(cont);
|
43
|
+
|
44
|
+
console.log(" var nonASCIIidentifierStartChars = \"" + startData.nonASCII + "\";");
|
45
|
+
console.log(" var nonASCIIidentifierChars = \"" + contData.nonASCII + "\";");
|
46
|
+
console.log(" var astralIdentifierStartCodes = " + JSON.stringify(startData.astral) + ";");
|
47
|
+
console.log(" var astralIdentifierCodes = " + JSON.stringify(contData.astral) + ";");
|
@@ -0,0 +1,6 @@
|
|
1
|
+
# Combine existing list of authors with everyone known in git, sort, add header.
|
2
|
+
tail --lines=+3 AUTHORS > AUTHORS.tmp
|
3
|
+
git log --format='%aN' | grep -v abraidwood >> AUTHORS.tmp
|
4
|
+
echo -e "List of Acorn contributors. Updated before every release.\n" > AUTHORS
|
5
|
+
sort -u AUTHORS.tmp >> AUTHORS
|
6
|
+
rm -f AUTHORS.tmp
|
@@ -0,0 +1,3330 @@
|
|
1
|
+
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.acorn = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
|
2
|
+
// A recursive descent parser operates by defining functions for all
|
3
|
+
// syntactic elements, and recursively calling those, each function
|
4
|
+
// advancing the input stream and returning an AST node. Precedence
|
5
|
+
// of constructs (for example, the fact that `!x[1]` means `!(x[1])`
|
6
|
+
// instead of `(!x)[1]` is handled by the fact that the parser
|
7
|
+
// function that parses unary prefix operators is called first, and
|
8
|
+
// in turn calls the function that parses `[]` subscripts — that
|
9
|
+
// way, it'll receive the node for `x[1]` already parsed, and wraps
|
10
|
+
// *that* in the unary operator node.
|
11
|
+
//
|
12
|
+
// Acorn uses an [operator precedence parser][opp] to handle binary
|
13
|
+
// operator precedence, because it is much more compact than using
|
14
|
+
// the technique outlined above, which uses different, nesting
|
15
|
+
// functions to specify precedence, for all of the ten binary
|
16
|
+
// precedence levels that JavaScript defines.
|
17
|
+
//
|
18
|
+
// [opp]: http://en.wikipedia.org/wiki/Operator-precedence_parser
|
19
|
+
|
20
|
+
"use strict";
|
21
|
+
|
22
|
+
var _tokentype = _dereq_("./tokentype");
|
23
|
+
|
24
|
+
var _state = _dereq_("./state");
|
25
|
+
|
26
|
+
var pp = _state.Parser.prototype;
|
27
|
+
|
28
|
+
// Check if property name clashes with already added.
|
29
|
+
// Object/class getters and setters are not allowed to clash —
|
30
|
+
// either with each other or with an init property — and in
|
31
|
+
// strict mode, init properties are also not allowed to be repeated.
|
32
|
+
|
33
|
+
pp.checkPropClash = function (prop, propHash) {
|
34
|
+
if (this.options.ecmaVersion >= 6 && (prop.computed || prop.method || prop.shorthand)) return;
|
35
|
+
var key = prop.key;var name = undefined;
|
36
|
+
switch (key.type) {
|
37
|
+
case "Identifier":
|
38
|
+
name = key.name;break;
|
39
|
+
case "Literal":
|
40
|
+
name = String(key.value);break;
|
41
|
+
default:
|
42
|
+
return;
|
43
|
+
}
|
44
|
+
var kind = prop.kind;
|
45
|
+
|
46
|
+
if (this.options.ecmaVersion >= 6) {
|
47
|
+
if (name === "__proto__" && kind === "init") {
|
48
|
+
if (propHash.proto) this.raise(key.start, "Redefinition of __proto__ property");
|
49
|
+
propHash.proto = true;
|
50
|
+
}
|
51
|
+
return;
|
52
|
+
}
|
53
|
+
name = "$" + name;
|
54
|
+
var other = propHash[name];
|
55
|
+
if (other) {
|
56
|
+
var isGetSet = kind !== "init";
|
57
|
+
if ((this.strict || isGetSet) && other[kind] || !(isGetSet ^ other.init)) this.raise(key.start, "Redefinition of property");
|
58
|
+
} else {
|
59
|
+
other = propHash[name] = {
|
60
|
+
init: false,
|
61
|
+
get: false,
|
62
|
+
set: false
|
63
|
+
};
|
64
|
+
}
|
65
|
+
other[kind] = true;
|
66
|
+
};
|
67
|
+
|
68
|
+
// ### Expression parsing
|
69
|
+
|
70
|
+
// These nest, from the most general expression type at the top to
|
71
|
+
// 'atomic', nondivisible expression types at the bottom. Most of
|
72
|
+
// the functions will simply let the function(s) below them parse,
|
73
|
+
// and, *if* the syntactic construct they handle is present, wrap
|
74
|
+
// the AST node that the inner parser gave them in another node.
|
75
|
+
|
76
|
+
// Parse a full expression. The optional arguments are used to
|
77
|
+
// forbid the `in` operator (in for loops initalization expressions)
|
78
|
+
// and provide reference for storing '=' operator inside shorthand
|
79
|
+
// property assignment in contexts where both object expression
|
80
|
+
// and object pattern might appear (so it's possible to raise
|
81
|
+
// delayed syntax error at correct position).
|
82
|
+
|
83
|
+
pp.parseExpression = function (noIn, refDestructuringErrors) {
|
84
|
+
var startPos = this.start,
|
85
|
+
startLoc = this.startLoc;
|
86
|
+
var expr = this.parseMaybeAssign(noIn, refDestructuringErrors);
|
87
|
+
if (this.type === _tokentype.types.comma) {
|
88
|
+
var node = this.startNodeAt(startPos, startLoc);
|
89
|
+
node.expressions = [expr];
|
90
|
+
while (this.eat(_tokentype.types.comma)) node.expressions.push(this.parseMaybeAssign(noIn, refDestructuringErrors));
|
91
|
+
return this.finishNode(node, "SequenceExpression");
|
92
|
+
}
|
93
|
+
return expr;
|
94
|
+
};
|
95
|
+
|
96
|
+
// Parse an assignment expression. This includes applications of
|
97
|
+
// operators like `+=`.
|
98
|
+
|
99
|
+
pp.parseMaybeAssign = function (noIn, refDestructuringErrors, afterLeftParse) {
|
100
|
+
if (this.type == _tokentype.types._yield && this.inGenerator) return this.parseYield();
|
101
|
+
|
102
|
+
var validateDestructuring = false;
|
103
|
+
if (!refDestructuringErrors) {
|
104
|
+
refDestructuringErrors = { shorthandAssign: 0, trailingComma: 0 };
|
105
|
+
validateDestructuring = true;
|
106
|
+
}
|
107
|
+
var startPos = this.start,
|
108
|
+
startLoc = this.startLoc;
|
109
|
+
if (this.type == _tokentype.types.parenL || this.type == _tokentype.types.name) this.potentialArrowAt = this.start;
|
110
|
+
var left = this.parseMaybeConditional(noIn, refDestructuringErrors);
|
111
|
+
if (afterLeftParse) left = afterLeftParse.call(this, left, startPos, startLoc);
|
112
|
+
if (this.type.isAssign) {
|
113
|
+
if (validateDestructuring) this.checkPatternErrors(refDestructuringErrors, true);
|
114
|
+
var node = this.startNodeAt(startPos, startLoc);
|
115
|
+
node.operator = this.value;
|
116
|
+
node.left = this.type === _tokentype.types.eq ? this.toAssignable(left) : left;
|
117
|
+
refDestructuringErrors.shorthandAssign = 0; // reset because shorthand default was used correctly
|
118
|
+
this.checkLVal(left);
|
119
|
+
this.next();
|
120
|
+
node.right = this.parseMaybeAssign(noIn);
|
121
|
+
return this.finishNode(node, "AssignmentExpression");
|
122
|
+
} else {
|
123
|
+
if (validateDestructuring) this.checkExpressionErrors(refDestructuringErrors, true);
|
124
|
+
}
|
125
|
+
return left;
|
126
|
+
};
|
127
|
+
|
128
|
+
// Parse a ternary conditional (`?:`) operator.
|
129
|
+
|
130
|
+
pp.parseMaybeConditional = function (noIn, refDestructuringErrors) {
|
131
|
+
var startPos = this.start,
|
132
|
+
startLoc = this.startLoc;
|
133
|
+
var expr = this.parseExprOps(noIn, refDestructuringErrors);
|
134
|
+
if (this.checkExpressionErrors(refDestructuringErrors)) return expr;
|
135
|
+
if (this.eat(_tokentype.types.question)) {
|
136
|
+
var node = this.startNodeAt(startPos, startLoc);
|
137
|
+
node.test = expr;
|
138
|
+
node.consequent = this.parseMaybeAssign();
|
139
|
+
this.expect(_tokentype.types.colon);
|
140
|
+
node.alternate = this.parseMaybeAssign(noIn);
|
141
|
+
return this.finishNode(node, "ConditionalExpression");
|
142
|
+
}
|
143
|
+
return expr;
|
144
|
+
};
|
145
|
+
|
146
|
+
// Start the precedence parser.
|
147
|
+
|
148
|
+
pp.parseExprOps = function (noIn, refDestructuringErrors) {
|
149
|
+
var startPos = this.start,
|
150
|
+
startLoc = this.startLoc;
|
151
|
+
var expr = this.parseMaybeUnary(refDestructuringErrors);
|
152
|
+
if (this.checkExpressionErrors(refDestructuringErrors)) return expr;
|
153
|
+
return this.parseExprOp(expr, startPos, startLoc, -1, noIn);
|
154
|
+
};
|
155
|
+
|
156
|
+
// Parse binary operators with the operator precedence parsing
|
157
|
+
// algorithm. `left` is the left-hand side of the operator.
|
158
|
+
// `minPrec` provides context that allows the function to stop and
|
159
|
+
// defer further parser to one of its callers when it encounters an
|
160
|
+
// operator that has a lower precedence than the set it is parsing.
|
161
|
+
|
162
|
+
pp.parseExprOp = function (left, leftStartPos, leftStartLoc, minPrec, noIn) {
|
163
|
+
var prec = this.type.binop;
|
164
|
+
if (prec != null && (!noIn || this.type !== _tokentype.types._in)) {
|
165
|
+
if (prec > minPrec) {
|
166
|
+
var node = this.startNodeAt(leftStartPos, leftStartLoc);
|
167
|
+
node.left = left;
|
168
|
+
node.operator = this.value;
|
169
|
+
var op = this.type;
|
170
|
+
this.next();
|
171
|
+
var startPos = this.start,
|
172
|
+
startLoc = this.startLoc;
|
173
|
+
node.right = this.parseExprOp(this.parseMaybeUnary(), startPos, startLoc, prec, noIn);
|
174
|
+
this.finishNode(node, op === _tokentype.types.logicalOR || op === _tokentype.types.logicalAND ? "LogicalExpression" : "BinaryExpression");
|
175
|
+
return this.parseExprOp(node, leftStartPos, leftStartLoc, minPrec, noIn);
|
176
|
+
}
|
177
|
+
}
|
178
|
+
return left;
|
179
|
+
};
|
180
|
+
|
181
|
+
// Parse unary operators, both prefix and postfix.
|
182
|
+
|
183
|
+
pp.parseMaybeUnary = function (refDestructuringErrors) {
|
184
|
+
if (this.type.prefix) {
|
185
|
+
var node = this.startNode(),
|
186
|
+
update = this.type === _tokentype.types.incDec;
|
187
|
+
node.operator = this.value;
|
188
|
+
node.prefix = true;
|
189
|
+
this.next();
|
190
|
+
node.argument = this.parseMaybeUnary();
|
191
|
+
this.checkExpressionErrors(refDestructuringErrors, true);
|
192
|
+
if (update) this.checkLVal(node.argument);else if (this.strict && node.operator === "delete" && node.argument.type === "Identifier") this.raise(node.start, "Deleting local variable in strict mode");
|
193
|
+
return this.finishNode(node, update ? "UpdateExpression" : "UnaryExpression");
|
194
|
+
}
|
195
|
+
var startPos = this.start,
|
196
|
+
startLoc = this.startLoc;
|
197
|
+
var expr = this.parseExprSubscripts(refDestructuringErrors);
|
198
|
+
if (this.checkExpressionErrors(refDestructuringErrors)) return expr;
|
199
|
+
while (this.type.postfix && !this.canInsertSemicolon()) {
|
200
|
+
var node = this.startNodeAt(startPos, startLoc);
|
201
|
+
node.operator = this.value;
|
202
|
+
node.prefix = false;
|
203
|
+
node.argument = expr;
|
204
|
+
this.checkLVal(expr);
|
205
|
+
this.next();
|
206
|
+
expr = this.finishNode(node, "UpdateExpression");
|
207
|
+
}
|
208
|
+
return expr;
|
209
|
+
};
|
210
|
+
|
211
|
+
// Parse call, dot, and `[]`-subscript expressions.
|
212
|
+
|
213
|
+
pp.parseExprSubscripts = function (refDestructuringErrors) {
|
214
|
+
var startPos = this.start,
|
215
|
+
startLoc = this.startLoc;
|
216
|
+
var expr = this.parseExprAtom(refDestructuringErrors);
|
217
|
+
var skipArrowSubscripts = expr.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")";
|
218
|
+
if (this.checkExpressionErrors(refDestructuringErrors) || skipArrowSubscripts) return expr;
|
219
|
+
return this.parseSubscripts(expr, startPos, startLoc);
|
220
|
+
};
|
221
|
+
|
222
|
+
pp.parseSubscripts = function (base, startPos, startLoc, noCalls) {
|
223
|
+
for (;;) {
|
224
|
+
if (this.eat(_tokentype.types.dot)) {
|
225
|
+
var node = this.startNodeAt(startPos, startLoc);
|
226
|
+
node.object = base;
|
227
|
+
node.property = this.parseIdent(true);
|
228
|
+
node.computed = false;
|
229
|
+
base = this.finishNode(node, "MemberExpression");
|
230
|
+
} else if (this.eat(_tokentype.types.bracketL)) {
|
231
|
+
var node = this.startNodeAt(startPos, startLoc);
|
232
|
+
node.object = base;
|
233
|
+
node.property = this.parseExpression();
|
234
|
+
node.computed = true;
|
235
|
+
this.expect(_tokentype.types.bracketR);
|
236
|
+
base = this.finishNode(node, "MemberExpression");
|
237
|
+
} else if (!noCalls && this.eat(_tokentype.types.parenL)) {
|
238
|
+
var node = this.startNodeAt(startPos, startLoc);
|
239
|
+
node.callee = base;
|
240
|
+
node.arguments = this.parseExprList(_tokentype.types.parenR, false);
|
241
|
+
base = this.finishNode(node, "CallExpression");
|
242
|
+
} else if (this.type === _tokentype.types.backQuote) {
|
243
|
+
var node = this.startNodeAt(startPos, startLoc);
|
244
|
+
node.tag = base;
|
245
|
+
node.quasi = this.parseTemplate();
|
246
|
+
base = this.finishNode(node, "TaggedTemplateExpression");
|
247
|
+
} else {
|
248
|
+
return base;
|
249
|
+
}
|
250
|
+
}
|
251
|
+
};
|
252
|
+
|
253
|
+
// Parse an atomic expression — either a single token that is an
|
254
|
+
// expression, an expression started by a keyword like `function` or
|
255
|
+
// `new`, or an expression wrapped in punctuation like `()`, `[]`,
|
256
|
+
// or `{}`.
|
257
|
+
|
258
|
+
pp.parseExprAtom = function (refDestructuringErrors) {
|
259
|
+
var node = undefined,
|
260
|
+
canBeArrow = this.potentialArrowAt == this.start;
|
261
|
+
switch (this.type) {
|
262
|
+
case _tokentype.types._super:
|
263
|
+
if (!this.inFunction) this.raise(this.start, "'super' outside of function or class");
|
264
|
+
case _tokentype.types._this:
|
265
|
+
var type = this.type === _tokentype.types._this ? "ThisExpression" : "Super";
|
266
|
+
node = this.startNode();
|
267
|
+
this.next();
|
268
|
+
return this.finishNode(node, type);
|
269
|
+
|
270
|
+
case _tokentype.types._yield:
|
271
|
+
if (this.inGenerator) this.unexpected();
|
272
|
+
|
273
|
+
case _tokentype.types.name:
|
274
|
+
var startPos = this.start,
|
275
|
+
startLoc = this.startLoc;
|
276
|
+
var id = this.parseIdent(this.type !== _tokentype.types.name);
|
277
|
+
if (canBeArrow && !this.canInsertSemicolon() && this.eat(_tokentype.types.arrow)) return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id]);
|
278
|
+
return id;
|
279
|
+
|
280
|
+
case _tokentype.types.regexp:
|
281
|
+
var value = this.value;
|
282
|
+
node = this.parseLiteral(value.value);
|
283
|
+
node.regex = { pattern: value.pattern, flags: value.flags };
|
284
|
+
return node;
|
285
|
+
|
286
|
+
case _tokentype.types.num:case _tokentype.types.string:
|
287
|
+
return this.parseLiteral(this.value);
|
288
|
+
|
289
|
+
case _tokentype.types._null:case _tokentype.types._true:case _tokentype.types._false:
|
290
|
+
node = this.startNode();
|
291
|
+
node.value = this.type === _tokentype.types._null ? null : this.type === _tokentype.types._true;
|
292
|
+
node.raw = this.type.keyword;
|
293
|
+
this.next();
|
294
|
+
return this.finishNode(node, "Literal");
|
295
|
+
|
296
|
+
case _tokentype.types.parenL:
|
297
|
+
return this.parseParenAndDistinguishExpression(canBeArrow);
|
298
|
+
|
299
|
+
case _tokentype.types.bracketL:
|
300
|
+
node = this.startNode();
|
301
|
+
this.next();
|
302
|
+
// check whether this is array comprehension or regular array
|
303
|
+
if (this.options.ecmaVersion >= 7 && this.type === _tokentype.types._for) {
|
304
|
+
return this.parseComprehension(node, false);
|
305
|
+
}
|
306
|
+
node.elements = this.parseExprList(_tokentype.types.bracketR, true, true, refDestructuringErrors);
|
307
|
+
return this.finishNode(node, "ArrayExpression");
|
308
|
+
|
309
|
+
case _tokentype.types.braceL:
|
310
|
+
return this.parseObj(false, refDestructuringErrors);
|
311
|
+
|
312
|
+
case _tokentype.types._function:
|
313
|
+
node = this.startNode();
|
314
|
+
this.next();
|
315
|
+
return this.parseFunction(node, false);
|
316
|
+
|
317
|
+
case _tokentype.types._class:
|
318
|
+
return this.parseClass(this.startNode(), false);
|
319
|
+
|
320
|
+
case _tokentype.types._new:
|
321
|
+
return this.parseNew();
|
322
|
+
|
323
|
+
case _tokentype.types.backQuote:
|
324
|
+
return this.parseTemplate();
|
325
|
+
|
326
|
+
default:
|
327
|
+
this.unexpected();
|
328
|
+
}
|
329
|
+
};
|
330
|
+
|
331
|
+
pp.parseLiteral = function (value) {
|
332
|
+
var node = this.startNode();
|
333
|
+
node.value = value;
|
334
|
+
node.raw = this.input.slice(this.start, this.end);
|
335
|
+
this.next();
|
336
|
+
return this.finishNode(node, "Literal");
|
337
|
+
};
|
338
|
+
|
339
|
+
pp.parseParenExpression = function () {
|
340
|
+
this.expect(_tokentype.types.parenL);
|
341
|
+
var val = this.parseExpression();
|
342
|
+
this.expect(_tokentype.types.parenR);
|
343
|
+
return val;
|
344
|
+
};
|
345
|
+
|
346
|
+
pp.parseParenAndDistinguishExpression = function (canBeArrow) {
|
347
|
+
var startPos = this.start,
|
348
|
+
startLoc = this.startLoc,
|
349
|
+
val = undefined;
|
350
|
+
if (this.options.ecmaVersion >= 6) {
|
351
|
+
this.next();
|
352
|
+
|
353
|
+
if (this.options.ecmaVersion >= 7 && this.type === _tokentype.types._for) {
|
354
|
+
return this.parseComprehension(this.startNodeAt(startPos, startLoc), true);
|
355
|
+
}
|
356
|
+
|
357
|
+
var innerStartPos = this.start,
|
358
|
+
innerStartLoc = this.startLoc;
|
359
|
+
var exprList = [],
|
360
|
+
first = true;
|
361
|
+
var refDestructuringErrors = { shorthandAssign: 0, trailingComma: 0 },
|
362
|
+
spreadStart = undefined,
|
363
|
+
innerParenStart = undefined;
|
364
|
+
while (this.type !== _tokentype.types.parenR) {
|
365
|
+
first ? first = false : this.expect(_tokentype.types.comma);
|
366
|
+
if (this.type === _tokentype.types.ellipsis) {
|
367
|
+
spreadStart = this.start;
|
368
|
+
exprList.push(this.parseParenItem(this.parseRest()));
|
369
|
+
break;
|
370
|
+
} else {
|
371
|
+
if (this.type === _tokentype.types.parenL && !innerParenStart) {
|
372
|
+
innerParenStart = this.start;
|
373
|
+
}
|
374
|
+
exprList.push(this.parseMaybeAssign(false, refDestructuringErrors, this.parseParenItem));
|
375
|
+
}
|
376
|
+
}
|
377
|
+
var innerEndPos = this.start,
|
378
|
+
innerEndLoc = this.startLoc;
|
379
|
+
this.expect(_tokentype.types.parenR);
|
380
|
+
|
381
|
+
if (canBeArrow && !this.canInsertSemicolon() && this.eat(_tokentype.types.arrow)) {
|
382
|
+
this.checkPatternErrors(refDestructuringErrors, true);
|
383
|
+
if (innerParenStart) this.unexpected(innerParenStart);
|
384
|
+
return this.parseParenArrowList(startPos, startLoc, exprList);
|
385
|
+
}
|
386
|
+
|
387
|
+
if (!exprList.length) this.unexpected(this.lastTokStart);
|
388
|
+
if (spreadStart) this.unexpected(spreadStart);
|
389
|
+
this.checkExpressionErrors(refDestructuringErrors, true);
|
390
|
+
|
391
|
+
if (exprList.length > 1) {
|
392
|
+
val = this.startNodeAt(innerStartPos, innerStartLoc);
|
393
|
+
val.expressions = exprList;
|
394
|
+
this.finishNodeAt(val, "SequenceExpression", innerEndPos, innerEndLoc);
|
395
|
+
} else {
|
396
|
+
val = exprList[0];
|
397
|
+
}
|
398
|
+
} else {
|
399
|
+
val = this.parseParenExpression();
|
400
|
+
}
|
401
|
+
|
402
|
+
if (this.options.preserveParens) {
|
403
|
+
var par = this.startNodeAt(startPos, startLoc);
|
404
|
+
par.expression = val;
|
405
|
+
return this.finishNode(par, "ParenthesizedExpression");
|
406
|
+
} else {
|
407
|
+
return val;
|
408
|
+
}
|
409
|
+
};
|
410
|
+
|
411
|
+
pp.parseParenItem = function (item) {
|
412
|
+
return item;
|
413
|
+
};
|
414
|
+
|
415
|
+
pp.parseParenArrowList = function (startPos, startLoc, exprList) {
|
416
|
+
return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList);
|
417
|
+
};
|
418
|
+
|
419
|
+
// New's precedence is slightly tricky. It must allow its argument
|
420
|
+
// to be a `[]` or dot subscript expression, but not a call — at
|
421
|
+
// least, not without wrapping it in parentheses. Thus, it uses the
|
422
|
+
|
423
|
+
var empty = [];
|
424
|
+
|
425
|
+
pp.parseNew = function () {
|
426
|
+
var node = this.startNode();
|
427
|
+
var meta = this.parseIdent(true);
|
428
|
+
if (this.options.ecmaVersion >= 6 && this.eat(_tokentype.types.dot)) {
|
429
|
+
node.meta = meta;
|
430
|
+
node.property = this.parseIdent(true);
|
431
|
+
if (node.property.name !== "target") this.raise(node.property.start, "The only valid meta property for new is new.target");
|
432
|
+
if (!this.inFunction) this.raise(node.start, "new.target can only be used in functions");
|
433
|
+
return this.finishNode(node, "MetaProperty");
|
434
|
+
}
|
435
|
+
var startPos = this.start,
|
436
|
+
startLoc = this.startLoc;
|
437
|
+
node.callee = this.parseSubscripts(this.parseExprAtom(), startPos, startLoc, true);
|
438
|
+
if (this.eat(_tokentype.types.parenL)) node.arguments = this.parseExprList(_tokentype.types.parenR, false);else node.arguments = empty;
|
439
|
+
return this.finishNode(node, "NewExpression");
|
440
|
+
};
|
441
|
+
|
442
|
+
// Parse template expression.
|
443
|
+
|
444
|
+
pp.parseTemplateElement = function () {
|
445
|
+
var elem = this.startNode();
|
446
|
+
elem.value = {
|
447
|
+
raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, '\n'),
|
448
|
+
cooked: this.value
|
449
|
+
};
|
450
|
+
this.next();
|
451
|
+
elem.tail = this.type === _tokentype.types.backQuote;
|
452
|
+
return this.finishNode(elem, "TemplateElement");
|
453
|
+
};
|
454
|
+
|
455
|
+
pp.parseTemplate = function () {
|
456
|
+
var node = this.startNode();
|
457
|
+
this.next();
|
458
|
+
node.expressions = [];
|
459
|
+
var curElt = this.parseTemplateElement();
|
460
|
+
node.quasis = [curElt];
|
461
|
+
while (!curElt.tail) {
|
462
|
+
this.expect(_tokentype.types.dollarBraceL);
|
463
|
+
node.expressions.push(this.parseExpression());
|
464
|
+
this.expect(_tokentype.types.braceR);
|
465
|
+
node.quasis.push(curElt = this.parseTemplateElement());
|
466
|
+
}
|
467
|
+
this.next();
|
468
|
+
return this.finishNode(node, "TemplateLiteral");
|
469
|
+
};
|
470
|
+
|
471
|
+
// Parse an object literal or binding pattern.
|
472
|
+
|
473
|
+
pp.parseObj = function (isPattern, refDestructuringErrors) {
|
474
|
+
var node = this.startNode(),
|
475
|
+
first = true,
|
476
|
+
propHash = {};
|
477
|
+
node.properties = [];
|
478
|
+
this.next();
|
479
|
+
while (!this.eat(_tokentype.types.braceR)) {
|
480
|
+
if (!first) {
|
481
|
+
this.expect(_tokentype.types.comma);
|
482
|
+
if (this.afterTrailingComma(_tokentype.types.braceR)) break;
|
483
|
+
} else first = false;
|
484
|
+
|
485
|
+
var prop = this.startNode(),
|
486
|
+
isGenerator = undefined,
|
487
|
+
startPos = undefined,
|
488
|
+
startLoc = undefined;
|
489
|
+
if (this.options.ecmaVersion >= 6) {
|
490
|
+
prop.method = false;
|
491
|
+
prop.shorthand = false;
|
492
|
+
if (isPattern || refDestructuringErrors) {
|
493
|
+
startPos = this.start;
|
494
|
+
startLoc = this.startLoc;
|
495
|
+
}
|
496
|
+
if (!isPattern) isGenerator = this.eat(_tokentype.types.star);
|
497
|
+
}
|
498
|
+
this.parsePropertyName(prop);
|
499
|
+
this.parsePropertyValue(prop, isPattern, isGenerator, startPos, startLoc, refDestructuringErrors);
|
500
|
+
this.checkPropClash(prop, propHash);
|
501
|
+
node.properties.push(this.finishNode(prop, "Property"));
|
502
|
+
}
|
503
|
+
return this.finishNode(node, isPattern ? "ObjectPattern" : "ObjectExpression");
|
504
|
+
};
|
505
|
+
|
506
|
+
pp.parsePropertyValue = function (prop, isPattern, isGenerator, startPos, startLoc, refDestructuringErrors) {
|
507
|
+
if (this.eat(_tokentype.types.colon)) {
|
508
|
+
prop.value = isPattern ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(false, refDestructuringErrors);
|
509
|
+
prop.kind = "init";
|
510
|
+
} else if (this.options.ecmaVersion >= 6 && this.type === _tokentype.types.parenL) {
|
511
|
+
if (isPattern) this.unexpected();
|
512
|
+
prop.kind = "init";
|
513
|
+
prop.method = true;
|
514
|
+
prop.value = this.parseMethod(isGenerator);
|
515
|
+
} else if (this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === "Identifier" && (prop.key.name === "get" || prop.key.name === "set") && (this.type != _tokentype.types.comma && this.type != _tokentype.types.braceR)) {
|
516
|
+
if (isGenerator || isPattern) this.unexpected();
|
517
|
+
prop.kind = prop.key.name;
|
518
|
+
this.parsePropertyName(prop);
|
519
|
+
prop.value = this.parseMethod(false);
|
520
|
+
var paramCount = prop.kind === "get" ? 0 : 1;
|
521
|
+
if (prop.value.params.length !== paramCount) {
|
522
|
+
var start = prop.value.start;
|
523
|
+
if (prop.kind === "get") this.raise(start, "getter should have no params");else this.raise(start, "setter should have exactly one param");
|
524
|
+
}
|
525
|
+
} else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === "Identifier") {
|
526
|
+
prop.kind = "init";
|
527
|
+
if (isPattern) {
|
528
|
+
if (this.keywords.test(prop.key.name) || (this.strict ? this.reservedWordsStrictBind : this.reservedWords).test(prop.key.name)) this.raise(prop.key.start, "Binding " + prop.key.name);
|
529
|
+
prop.value = this.parseMaybeDefault(startPos, startLoc, prop.key);
|
530
|
+
} else if (this.type === _tokentype.types.eq && refDestructuringErrors) {
|
531
|
+
if (!refDestructuringErrors.shorthandAssign) refDestructuringErrors.shorthandAssign = this.start;
|
532
|
+
prop.value = this.parseMaybeDefault(startPos, startLoc, prop.key);
|
533
|
+
} else {
|
534
|
+
prop.value = prop.key;
|
535
|
+
}
|
536
|
+
prop.shorthand = true;
|
537
|
+
} else this.unexpected();
|
538
|
+
};
|
539
|
+
|
540
|
+
pp.parsePropertyName = function (prop) {
|
541
|
+
if (this.options.ecmaVersion >= 6) {
|
542
|
+
if (this.eat(_tokentype.types.bracketL)) {
|
543
|
+
prop.computed = true;
|
544
|
+
prop.key = this.parseMaybeAssign();
|
545
|
+
this.expect(_tokentype.types.bracketR);
|
546
|
+
return prop.key;
|
547
|
+
} else {
|
548
|
+
prop.computed = false;
|
549
|
+
}
|
550
|
+
}
|
551
|
+
return prop.key = this.type === _tokentype.types.num || this.type === _tokentype.types.string ? this.parseExprAtom() : this.parseIdent(true);
|
552
|
+
};
|
553
|
+
|
554
|
+
// Initialize empty function node.
|
555
|
+
|
556
|
+
pp.initFunction = function (node) {
|
557
|
+
node.id = null;
|
558
|
+
if (this.options.ecmaVersion >= 6) {
|
559
|
+
node.generator = false;
|
560
|
+
node.expression = false;
|
561
|
+
}
|
562
|
+
};
|
563
|
+
|
564
|
+
// Parse object or class method.
|
565
|
+
|
566
|
+
pp.parseMethod = function (isGenerator) {
|
567
|
+
var node = this.startNode();
|
568
|
+
this.initFunction(node);
|
569
|
+
this.expect(_tokentype.types.parenL);
|
570
|
+
node.params = this.parseBindingList(_tokentype.types.parenR, false, false);
|
571
|
+
if (this.options.ecmaVersion >= 6) node.generator = isGenerator;
|
572
|
+
this.parseFunctionBody(node, false);
|
573
|
+
return this.finishNode(node, "FunctionExpression");
|
574
|
+
};
|
575
|
+
|
576
|
+
// Parse arrow function expression with given parameters.
|
577
|
+
|
578
|
+
pp.parseArrowExpression = function (node, params) {
|
579
|
+
this.initFunction(node);
|
580
|
+
node.params = this.toAssignableList(params, true);
|
581
|
+
this.parseFunctionBody(node, true);
|
582
|
+
return this.finishNode(node, "ArrowFunctionExpression");
|
583
|
+
};
|
584
|
+
|
585
|
+
// Parse function body and check parameters.
|
586
|
+
|
587
|
+
pp.parseFunctionBody = function (node, isArrowFunction) {
|
588
|
+
var isExpression = isArrowFunction && this.type !== _tokentype.types.braceL;
|
589
|
+
|
590
|
+
if (isExpression) {
|
591
|
+
node.body = this.parseMaybeAssign();
|
592
|
+
node.expression = true;
|
593
|
+
} else {
|
594
|
+
// Start a new scope with regard to labels and the `inFunction`
|
595
|
+
// flag (restore them to their old value afterwards).
|
596
|
+
var oldInFunc = this.inFunction,
|
597
|
+
oldInGen = this.inGenerator,
|
598
|
+
oldLabels = this.labels;
|
599
|
+
this.inFunction = true;this.inGenerator = node.generator;this.labels = [];
|
600
|
+
node.body = this.parseBlock(true);
|
601
|
+
node.expression = false;
|
602
|
+
this.inFunction = oldInFunc;this.inGenerator = oldInGen;this.labels = oldLabels;
|
603
|
+
}
|
604
|
+
|
605
|
+
// If this is a strict mode function, verify that argument names
|
606
|
+
// are not repeated, and it does not try to bind the words `eval`
|
607
|
+
// or `arguments`.
|
608
|
+
if (this.strict || !isExpression && node.body.body.length && this.isUseStrict(node.body.body[0])) {
|
609
|
+
var oldStrict = this.strict;
|
610
|
+
this.strict = true;
|
611
|
+
if (node.id) this.checkLVal(node.id, true);
|
612
|
+
this.checkParams(node);
|
613
|
+
this.strict = oldStrict;
|
614
|
+
} else if (isArrowFunction) {
|
615
|
+
this.checkParams(node);
|
616
|
+
}
|
617
|
+
};
|
618
|
+
|
619
|
+
// Checks function params for various disallowed patterns such as using "eval"
|
620
|
+
// or "arguments" and duplicate parameters.
|
621
|
+
|
622
|
+
pp.checkParams = function (node) {
|
623
|
+
var nameHash = {};
|
624
|
+
for (var i = 0; i < node.params.length; i++) {
|
625
|
+
this.checkLVal(node.params[i], true, nameHash);
|
626
|
+
}
|
627
|
+
};
|
628
|
+
|
629
|
+
// Parses a comma-separated list of expressions, and returns them as
|
630
|
+
// an array. `close` is the token type that ends the list, and
|
631
|
+
// `allowEmpty` can be turned on to allow subsequent commas with
|
632
|
+
// nothing in between them to be parsed as `null` (which is needed
|
633
|
+
// for array literals).
|
634
|
+
|
635
|
+
pp.parseExprList = function (close, allowTrailingComma, allowEmpty, refDestructuringErrors) {
|
636
|
+
var elts = [],
|
637
|
+
first = true;
|
638
|
+
while (!this.eat(close)) {
|
639
|
+
if (!first) {
|
640
|
+
this.expect(_tokentype.types.comma);
|
641
|
+
if (this.type === close && refDestructuringErrors && !refDestructuringErrors.trailingComma) {
|
642
|
+
refDestructuringErrors.trailingComma = this.lastTokStart;
|
643
|
+
}
|
644
|
+
if (allowTrailingComma && this.afterTrailingComma(close)) break;
|
645
|
+
} else first = false;
|
646
|
+
|
647
|
+
var elt = undefined;
|
648
|
+
if (allowEmpty && this.type === _tokentype.types.comma) elt = null;else if (this.type === _tokentype.types.ellipsis) elt = this.parseSpread(refDestructuringErrors);else elt = this.parseMaybeAssign(false, refDestructuringErrors);
|
649
|
+
elts.push(elt);
|
650
|
+
}
|
651
|
+
return elts;
|
652
|
+
};
|
653
|
+
|
654
|
+
// Parse the next token as an identifier. If `liberal` is true (used
|
655
|
+
// when parsing properties), it will also convert keywords into
|
656
|
+
// identifiers.
|
657
|
+
|
658
|
+
pp.parseIdent = function (liberal) {
|
659
|
+
var node = this.startNode();
|
660
|
+
if (liberal && this.options.allowReserved == "never") liberal = false;
|
661
|
+
if (this.type === _tokentype.types.name) {
|
662
|
+
if (!liberal && (this.strict ? this.reservedWordsStrict : this.reservedWords).test(this.value) && (this.options.ecmaVersion >= 6 || this.input.slice(this.start, this.end).indexOf("\\") == -1)) this.raise(this.start, "The keyword '" + this.value + "' is reserved");
|
663
|
+
node.name = this.value;
|
664
|
+
} else if (liberal && this.type.keyword) {
|
665
|
+
node.name = this.type.keyword;
|
666
|
+
} else {
|
667
|
+
this.unexpected();
|
668
|
+
}
|
669
|
+
this.next();
|
670
|
+
return this.finishNode(node, "Identifier");
|
671
|
+
};
|
672
|
+
|
673
|
+
// Parses yield expression inside generator.
|
674
|
+
|
675
|
+
pp.parseYield = function () {
|
676
|
+
var node = this.startNode();
|
677
|
+
this.next();
|
678
|
+
if (this.type == _tokentype.types.semi || this.canInsertSemicolon() || this.type != _tokentype.types.star && !this.type.startsExpr) {
|
679
|
+
node.delegate = false;
|
680
|
+
node.argument = null;
|
681
|
+
} else {
|
682
|
+
node.delegate = this.eat(_tokentype.types.star);
|
683
|
+
node.argument = this.parseMaybeAssign();
|
684
|
+
}
|
685
|
+
return this.finishNode(node, "YieldExpression");
|
686
|
+
};
|
687
|
+
|
688
|
+
// Parses array and generator comprehensions.
|
689
|
+
|
690
|
+
pp.parseComprehension = function (node, isGenerator) {
|
691
|
+
node.blocks = [];
|
692
|
+
while (this.type === _tokentype.types._for) {
|
693
|
+
var block = this.startNode();
|
694
|
+
this.next();
|
695
|
+
this.expect(_tokentype.types.parenL);
|
696
|
+
block.left = this.parseBindingAtom();
|
697
|
+
this.checkLVal(block.left, true);
|
698
|
+
this.expectContextual("of");
|
699
|
+
block.right = this.parseExpression();
|
700
|
+
this.expect(_tokentype.types.parenR);
|
701
|
+
node.blocks.push(this.finishNode(block, "ComprehensionBlock"));
|
702
|
+
}
|
703
|
+
node.filter = this.eat(_tokentype.types._if) ? this.parseParenExpression() : null;
|
704
|
+
node.body = this.parseExpression();
|
705
|
+
this.expect(isGenerator ? _tokentype.types.parenR : _tokentype.types.bracketR);
|
706
|
+
node.generator = isGenerator;
|
707
|
+
return this.finishNode(node, "ComprehensionExpression");
|
708
|
+
};
|
709
|
+
|
710
|
+
},{"./state":10,"./tokentype":14}],2:[function(_dereq_,module,exports){
|
711
|
+
// This is a trick taken from Esprima. It turns out that, on
|
712
|
+
// non-Chrome browsers, to check whether a string is in a set, a
|
713
|
+
// predicate containing a big ugly `switch` statement is faster than
|
714
|
+
// a regular expression, and on Chrome the two are about on par.
|
715
|
+
// This function uses `eval` (non-lexical) to produce such a
|
716
|
+
// predicate from a space-separated string of words.
|
717
|
+
//
|
718
|
+
// It starts by sorting the words by length.
|
719
|
+
|
720
|
+
// Reserved word lists for various dialects of the language
|
721
|
+
|
722
|
+
"use strict";
|
723
|
+
|
724
|
+
exports.__esModule = true;
|
725
|
+
exports.isIdentifierStart = isIdentifierStart;
|
726
|
+
exports.isIdentifierChar = isIdentifierChar;
|
727
|
+
var reservedWords = {
|
728
|
+
3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
|
729
|
+
5: "class enum extends super const export import",
|
730
|
+
6: "enum",
|
731
|
+
strict: "implements interface let package private protected public static yield",
|
732
|
+
strictBind: "eval arguments"
|
733
|
+
};
|
734
|
+
|
735
|
+
exports.reservedWords = reservedWords;
|
736
|
+
// And the keywords
|
737
|
+
|
738
|
+
var ecma5AndLessKeywords = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this";
|
739
|
+
|
740
|
+
var keywords = {
|
741
|
+
5: ecma5AndLessKeywords,
|
742
|
+
6: ecma5AndLessKeywords + " let const class extends export import yield super"
|
743
|
+
};
|
744
|
+
|
745
|
+
exports.keywords = keywords;
|
746
|
+
// ## Character categories
|
747
|
+
|
748
|
+
// Big ugly regular expressions that match characters in the
|
749
|
+
// whitespace, identifier, and identifier-start categories. These
|
750
|
+
// are only applied when a character is found to actually have a
|
751
|
+
// code point above 128.
|
752
|
+
// Generated by `bin/generate-identifier-regex.js`.
|
753
|
+
|
754
|
+
var nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢲऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
|
755
|
+
var nonASCIIidentifierChars = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏ᦰ-ᧀᧈᧉ᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷼-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︭︳︴﹍-﹏0-9_";
|
756
|
+
|
757
|
+
var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
758
|
+
var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
759
|
+
|
760
|
+
nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
|
761
|
+
|
762
|
+
// These are a run-length and offset encoded representation of the
|
763
|
+
// >0xffff code points that are a valid part of identifiers. The
|
764
|
+
// offset starts at 0x10000, and each pair of numbers represents an
|
765
|
+
// offset to the next range, and then a size of the range. They were
|
766
|
+
// generated by tools/generate-identifier-regex.js
|
767
|
+
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 17, 26, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 99, 39, 9, 51, 157, 310, 10, 21, 11, 7, 153, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 98, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 26, 45, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 955, 52, 76, 44, 33, 24, 27, 35, 42, 34, 4, 0, 13, 47, 15, 3, 22, 0, 38, 17, 2, 24, 133, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 32, 4, 287, 47, 21, 1, 2, 0, 185, 46, 82, 47, 21, 0, 60, 42, 502, 63, 32, 0, 449, 56, 1288, 920, 104, 110, 2962, 1070, 13266, 568, 8, 30, 114, 29, 19, 47, 17, 3, 32, 20, 6, 18, 881, 68, 12, 0, 67, 12, 16481, 1, 3071, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 4149, 196, 1340, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42710, 42, 4148, 12, 221, 16355, 541];
|
768
|
+
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 1306, 2, 54, 14, 32, 9, 16, 3, 46, 10, 54, 9, 7, 2, 37, 13, 2, 9, 52, 0, 13, 2, 49, 13, 16, 9, 83, 11, 168, 11, 6, 9, 8, 2, 57, 0, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 316, 19, 13, 9, 214, 6, 3, 8, 112, 16, 16, 9, 82, 12, 9, 9, 535, 9, 20855, 9, 135, 4, 60, 6, 26, 9, 1016, 45, 17, 3, 19723, 1, 5319, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 4305, 6, 792618, 239];
|
769
|
+
|
770
|
+
// This has a complexity linear to the value of the code. The
|
771
|
+
// assumption is that looking up astral identifier characters is
|
772
|
+
// rare.
|
773
|
+
function isInAstralSet(code, set) {
|
774
|
+
var pos = 0x10000;
|
775
|
+
for (var i = 0; i < set.length; i += 2) {
|
776
|
+
pos += set[i];
|
777
|
+
if (pos > code) return false;
|
778
|
+
pos += set[i + 1];
|
779
|
+
if (pos >= code) return true;
|
780
|
+
}
|
781
|
+
}
|
782
|
+
|
783
|
+
// Test whether a given character code starts an identifier.
|
784
|
+
|
785
|
+
function isIdentifierStart(code, astral) {
|
786
|
+
if (code < 65) return code === 36;
|
787
|
+
if (code < 91) return true;
|
788
|
+
if (code < 97) return code === 95;
|
789
|
+
if (code < 123) return true;
|
790
|
+
if (code <= 0xffff) return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code));
|
791
|
+
if (astral === false) return false;
|
792
|
+
return isInAstralSet(code, astralIdentifierStartCodes);
|
793
|
+
}
|
794
|
+
|
795
|
+
// Test whether a given character is part of an identifier.
|
796
|
+
|
797
|
+
function isIdentifierChar(code, astral) {
|
798
|
+
if (code < 48) return code === 36;
|
799
|
+
if (code < 58) return true;
|
800
|
+
if (code < 65) return false;
|
801
|
+
if (code < 91) return true;
|
802
|
+
if (code < 97) return code === 95;
|
803
|
+
if (code < 123) return true;
|
804
|
+
if (code <= 0xffff) return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code));
|
805
|
+
if (astral === false) return false;
|
806
|
+
return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
|
807
|
+
}
|
808
|
+
|
809
|
+
},{}],3:[function(_dereq_,module,exports){
|
810
|
+
// Acorn is a tiny, fast JavaScript parser written in JavaScript.
|
811
|
+
//
|
812
|
+
// Acorn was written by Marijn Haverbeke, Ingvar Stepanyan, and
|
813
|
+
// various contributors and released under an MIT license.
|
814
|
+
//
|
815
|
+
// Git repositories for Acorn are available at
|
816
|
+
//
|
817
|
+
// http://marijnhaverbeke.nl/git/acorn
|
818
|
+
// https://github.com/ternjs/acorn.git
|
819
|
+
//
|
820
|
+
// Please use the [github bug tracker][ghbt] to report issues.
|
821
|
+
//
|
822
|
+
// [ghbt]: https://github.com/ternjs/acorn/issues
|
823
|
+
//
|
824
|
+
// This file defines the main parser interface. The library also comes
|
825
|
+
// with a [error-tolerant parser][dammit] and an
|
826
|
+
// [abstract syntax tree walker][walk], defined in other files.
|
827
|
+
//
|
828
|
+
// [dammit]: acorn_loose.js
|
829
|
+
// [walk]: util/walk.js
|
830
|
+
|
831
|
+
"use strict";
|
832
|
+
|
833
|
+
exports.__esModule = true;
|
834
|
+
exports.parse = parse;
|
835
|
+
exports.parseExpressionAt = parseExpressionAt;
|
836
|
+
exports.tokenizer = tokenizer;
|
837
|
+
|
838
|
+
var _state = _dereq_("./state");
|
839
|
+
|
840
|
+
_dereq_("./parseutil");
|
841
|
+
|
842
|
+
_dereq_("./statement");
|
843
|
+
|
844
|
+
_dereq_("./lval");
|
845
|
+
|
846
|
+
_dereq_("./expression");
|
847
|
+
|
848
|
+
_dereq_("./location");
|
849
|
+
|
850
|
+
exports.Parser = _state.Parser;
|
851
|
+
exports.plugins = _state.plugins;
|
852
|
+
|
853
|
+
var _options = _dereq_("./options");
|
854
|
+
|
855
|
+
exports.defaultOptions = _options.defaultOptions;
|
856
|
+
|
857
|
+
var _locutil = _dereq_("./locutil");
|
858
|
+
|
859
|
+
exports.Position = _locutil.Position;
|
860
|
+
exports.SourceLocation = _locutil.SourceLocation;
|
861
|
+
exports.getLineInfo = _locutil.getLineInfo;
|
862
|
+
|
863
|
+
var _node = _dereq_("./node");
|
864
|
+
|
865
|
+
exports.Node = _node.Node;
|
866
|
+
|
867
|
+
var _tokentype = _dereq_("./tokentype");
|
868
|
+
|
869
|
+
exports.TokenType = _tokentype.TokenType;
|
870
|
+
exports.tokTypes = _tokentype.types;
|
871
|
+
|
872
|
+
var _tokencontext = _dereq_("./tokencontext");
|
873
|
+
|
874
|
+
exports.TokContext = _tokencontext.TokContext;
|
875
|
+
exports.tokContexts = _tokencontext.types;
|
876
|
+
|
877
|
+
var _identifier = _dereq_("./identifier");
|
878
|
+
|
879
|
+
exports.isIdentifierChar = _identifier.isIdentifierChar;
|
880
|
+
exports.isIdentifierStart = _identifier.isIdentifierStart;
|
881
|
+
|
882
|
+
var _tokenize = _dereq_("./tokenize");
|
883
|
+
|
884
|
+
exports.Token = _tokenize.Token;
|
885
|
+
|
886
|
+
var _whitespace = _dereq_("./whitespace");
|
887
|
+
|
888
|
+
exports.isNewLine = _whitespace.isNewLine;
|
889
|
+
exports.lineBreak = _whitespace.lineBreak;
|
890
|
+
exports.lineBreakG = _whitespace.lineBreakG;
|
891
|
+
var version = "2.6.4";
|
892
|
+
|
893
|
+
exports.version = version;
|
894
|
+
// The main exported interface (under `self.acorn` when in the
|
895
|
+
// browser) is a `parse` function that takes a code string and
|
896
|
+
// returns an abstract syntax tree as specified by [Mozilla parser
|
897
|
+
// API][api].
|
898
|
+
//
|
899
|
+
// [api]: https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API
|
900
|
+
|
901
|
+
function parse(input, options) {
|
902
|
+
return new _state.Parser(options, input).parse();
|
903
|
+
}
|
904
|
+
|
905
|
+
// This function tries to parse a single expression at a given
|
906
|
+
// offset in a string. Useful for parsing mixed-language formats
|
907
|
+
// that embed JavaScript expressions.
|
908
|
+
|
909
|
+
function parseExpressionAt(input, pos, options) {
|
910
|
+
var p = new _state.Parser(options, input, pos);
|
911
|
+
p.nextToken();
|
912
|
+
return p.parseExpression();
|
913
|
+
}
|
914
|
+
|
915
|
+
// Acorn is organized as a tokenizer and a recursive-descent parser.
|
916
|
+
// The `tokenizer` export provides an interface to the tokenizer.
|
917
|
+
|
918
|
+
function tokenizer(input, options) {
|
919
|
+
return new _state.Parser(options, input);
|
920
|
+
}
|
921
|
+
|
922
|
+
},{"./expression":1,"./identifier":2,"./location":4,"./locutil":5,"./lval":6,"./node":7,"./options":8,"./parseutil":9,"./state":10,"./statement":11,"./tokencontext":12,"./tokenize":13,"./tokentype":14,"./whitespace":16}],4:[function(_dereq_,module,exports){
|
923
|
+
"use strict";
|
924
|
+
|
925
|
+
var _state = _dereq_("./state");
|
926
|
+
|
927
|
+
var _locutil = _dereq_("./locutil");
|
928
|
+
|
929
|
+
var pp = _state.Parser.prototype;
|
930
|
+
|
931
|
+
// This function is used to raise exceptions on parse errors. It
|
932
|
+
// takes an offset integer (into the current `input`) to indicate
|
933
|
+
// the location of the error, attaches the position to the end
|
934
|
+
// of the error message, and then raises a `SyntaxError` with that
|
935
|
+
// message.
|
936
|
+
|
937
|
+
pp.raise = function (pos, message) {
|
938
|
+
var loc = _locutil.getLineInfo(this.input, pos);
|
939
|
+
message += " (" + loc.line + ":" + loc.column + ")";
|
940
|
+
var err = new SyntaxError(message);
|
941
|
+
err.pos = pos;err.loc = loc;err.raisedAt = this.pos;
|
942
|
+
throw err;
|
943
|
+
};
|
944
|
+
|
945
|
+
pp.curPosition = function () {
|
946
|
+
if (this.options.locations) {
|
947
|
+
return new _locutil.Position(this.curLine, this.pos - this.lineStart);
|
948
|
+
}
|
949
|
+
};
|
950
|
+
|
951
|
+
},{"./locutil":5,"./state":10}],5:[function(_dereq_,module,exports){
|
952
|
+
"use strict";
|
953
|
+
|
954
|
+
exports.__esModule = true;
|
955
|
+
exports.getLineInfo = getLineInfo;
|
956
|
+
|
957
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
958
|
+
|
959
|
+
var _whitespace = _dereq_("./whitespace");
|
960
|
+
|
961
|
+
// These are used when `options.locations` is on, for the
|
962
|
+
// `startLoc` and `endLoc` properties.
|
963
|
+
|
964
|
+
var Position = (function () {
|
965
|
+
function Position(line, col) {
|
966
|
+
_classCallCheck(this, Position);
|
967
|
+
|
968
|
+
this.line = line;
|
969
|
+
this.column = col;
|
970
|
+
}
|
971
|
+
|
972
|
+
Position.prototype.offset = function offset(n) {
|
973
|
+
return new Position(this.line, this.column + n);
|
974
|
+
};
|
975
|
+
|
976
|
+
return Position;
|
977
|
+
})();
|
978
|
+
|
979
|
+
exports.Position = Position;
|
980
|
+
|
981
|
+
var SourceLocation = function SourceLocation(p, start, end) {
|
982
|
+
_classCallCheck(this, SourceLocation);
|
983
|
+
|
984
|
+
this.start = start;
|
985
|
+
this.end = end;
|
986
|
+
if (p.sourceFile !== null) this.source = p.sourceFile;
|
987
|
+
}
|
988
|
+
|
989
|
+
// The `getLineInfo` function is mostly useful when the
|
990
|
+
// `locations` option is off (for performance reasons) and you
|
991
|
+
// want to find the line/column position for a given character
|
992
|
+
// offset. `input` should be the code string that the offset refers
|
993
|
+
// into.
|
994
|
+
|
995
|
+
;
|
996
|
+
|
997
|
+
exports.SourceLocation = SourceLocation;
|
998
|
+
|
999
|
+
function getLineInfo(input, offset) {
|
1000
|
+
for (var line = 1, cur = 0;;) {
|
1001
|
+
_whitespace.lineBreakG.lastIndex = cur;
|
1002
|
+
var match = _whitespace.lineBreakG.exec(input);
|
1003
|
+
if (match && match.index < offset) {
|
1004
|
+
++line;
|
1005
|
+
cur = match.index + match[0].length;
|
1006
|
+
} else {
|
1007
|
+
return new Position(line, offset - cur);
|
1008
|
+
}
|
1009
|
+
}
|
1010
|
+
}
|
1011
|
+
|
1012
|
+
},{"./whitespace":16}],6:[function(_dereq_,module,exports){
|
1013
|
+
"use strict";
|
1014
|
+
|
1015
|
+
var _tokentype = _dereq_("./tokentype");
|
1016
|
+
|
1017
|
+
var _state = _dereq_("./state");
|
1018
|
+
|
1019
|
+
var _util = _dereq_("./util");
|
1020
|
+
|
1021
|
+
var pp = _state.Parser.prototype;
|
1022
|
+
|
1023
|
+
// Convert existing expression atom to assignable pattern
|
1024
|
+
// if possible.
|
1025
|
+
|
1026
|
+
pp.toAssignable = function (node, isBinding) {
|
1027
|
+
if (this.options.ecmaVersion >= 6 && node) {
|
1028
|
+
switch (node.type) {
|
1029
|
+
case "Identifier":
|
1030
|
+
case "ObjectPattern":
|
1031
|
+
case "ArrayPattern":
|
1032
|
+
break;
|
1033
|
+
|
1034
|
+
case "ObjectExpression":
|
1035
|
+
node.type = "ObjectPattern";
|
1036
|
+
for (var i = 0; i < node.properties.length; i++) {
|
1037
|
+
var prop = node.properties[i];
|
1038
|
+
if (prop.kind !== "init") this.raise(prop.key.start, "Object pattern can't contain getter or setter");
|
1039
|
+
this.toAssignable(prop.value, isBinding);
|
1040
|
+
}
|
1041
|
+
break;
|
1042
|
+
|
1043
|
+
case "ArrayExpression":
|
1044
|
+
node.type = "ArrayPattern";
|
1045
|
+
this.toAssignableList(node.elements, isBinding);
|
1046
|
+
break;
|
1047
|
+
|
1048
|
+
case "AssignmentExpression":
|
1049
|
+
if (node.operator === "=") {
|
1050
|
+
node.type = "AssignmentPattern";
|
1051
|
+
delete node.operator;
|
1052
|
+
// falls through to AssignmentPattern
|
1053
|
+
} else {
|
1054
|
+
this.raise(node.left.end, "Only '=' operator can be used for specifying default value.");
|
1055
|
+
break;
|
1056
|
+
}
|
1057
|
+
|
1058
|
+
case "AssignmentPattern":
|
1059
|
+
if (node.right.type === "YieldExpression") this.raise(node.right.start, "Yield expression cannot be a default value");
|
1060
|
+
break;
|
1061
|
+
|
1062
|
+
case "ParenthesizedExpression":
|
1063
|
+
node.expression = this.toAssignable(node.expression, isBinding);
|
1064
|
+
break;
|
1065
|
+
|
1066
|
+
case "MemberExpression":
|
1067
|
+
if (!isBinding) break;
|
1068
|
+
|
1069
|
+
default:
|
1070
|
+
this.raise(node.start, "Assigning to rvalue");
|
1071
|
+
}
|
1072
|
+
}
|
1073
|
+
return node;
|
1074
|
+
};
|
1075
|
+
|
1076
|
+
// Convert list of expression atoms to binding list.
|
1077
|
+
|
1078
|
+
pp.toAssignableList = function (exprList, isBinding) {
|
1079
|
+
var end = exprList.length;
|
1080
|
+
if (end) {
|
1081
|
+
var last = exprList[end - 1];
|
1082
|
+
if (last && last.type == "RestElement") {
|
1083
|
+
--end;
|
1084
|
+
} else if (last && last.type == "SpreadElement") {
|
1085
|
+
last.type = "RestElement";
|
1086
|
+
var arg = last.argument;
|
1087
|
+
this.toAssignable(arg, isBinding);
|
1088
|
+
if (arg.type !== "Identifier" && arg.type !== "MemberExpression" && arg.type !== "ArrayPattern") this.unexpected(arg.start);
|
1089
|
+
--end;
|
1090
|
+
}
|
1091
|
+
|
1092
|
+
if (isBinding && last.type === "RestElement" && last.argument.type !== "Identifier") this.unexpected(last.argument.start);
|
1093
|
+
}
|
1094
|
+
for (var i = 0; i < end; i++) {
|
1095
|
+
var elt = exprList[i];
|
1096
|
+
if (elt) this.toAssignable(elt, isBinding);
|
1097
|
+
}
|
1098
|
+
return exprList;
|
1099
|
+
};
|
1100
|
+
|
1101
|
+
// Parses spread element.
|
1102
|
+
|
1103
|
+
pp.parseSpread = function (refDestructuringErrors) {
|
1104
|
+
var node = this.startNode();
|
1105
|
+
this.next();
|
1106
|
+
node.argument = this.parseMaybeAssign(refDestructuringErrors);
|
1107
|
+
return this.finishNode(node, "SpreadElement");
|
1108
|
+
};
|
1109
|
+
|
1110
|
+
pp.parseRest = function (allowNonIdent) {
|
1111
|
+
var node = this.startNode();
|
1112
|
+
this.next();
|
1113
|
+
|
1114
|
+
// RestElement inside of a function parameter must be an identifier
|
1115
|
+
if (allowNonIdent) node.argument = this.type === _tokentype.types.name ? this.parseIdent() : this.unexpected();else node.argument = this.type === _tokentype.types.name || this.type === _tokentype.types.bracketL ? this.parseBindingAtom() : this.unexpected();
|
1116
|
+
|
1117
|
+
return this.finishNode(node, "RestElement");
|
1118
|
+
};
|
1119
|
+
|
1120
|
+
// Parses lvalue (assignable) atom.
|
1121
|
+
|
1122
|
+
pp.parseBindingAtom = function () {
|
1123
|
+
if (this.options.ecmaVersion < 6) return this.parseIdent();
|
1124
|
+
switch (this.type) {
|
1125
|
+
case _tokentype.types.name:
|
1126
|
+
return this.parseIdent();
|
1127
|
+
|
1128
|
+
case _tokentype.types.bracketL:
|
1129
|
+
var node = this.startNode();
|
1130
|
+
this.next();
|
1131
|
+
node.elements = this.parseBindingList(_tokentype.types.bracketR, true, true);
|
1132
|
+
return this.finishNode(node, "ArrayPattern");
|
1133
|
+
|
1134
|
+
case _tokentype.types.braceL:
|
1135
|
+
return this.parseObj(true);
|
1136
|
+
|
1137
|
+
default:
|
1138
|
+
this.unexpected();
|
1139
|
+
}
|
1140
|
+
};
|
1141
|
+
|
1142
|
+
pp.parseBindingList = function (close, allowEmpty, allowTrailingComma, allowNonIdent) {
|
1143
|
+
var elts = [],
|
1144
|
+
first = true;
|
1145
|
+
while (!this.eat(close)) {
|
1146
|
+
if (first) first = false;else this.expect(_tokentype.types.comma);
|
1147
|
+
if (allowEmpty && this.type === _tokentype.types.comma) {
|
1148
|
+
elts.push(null);
|
1149
|
+
} else if (allowTrailingComma && this.afterTrailingComma(close)) {
|
1150
|
+
break;
|
1151
|
+
} else if (this.type === _tokentype.types.ellipsis) {
|
1152
|
+
var rest = this.parseRest(allowNonIdent);
|
1153
|
+
this.parseBindingListItem(rest);
|
1154
|
+
elts.push(rest);
|
1155
|
+
this.expect(close);
|
1156
|
+
break;
|
1157
|
+
} else {
|
1158
|
+
var elem = this.parseMaybeDefault(this.start, this.startLoc);
|
1159
|
+
this.parseBindingListItem(elem);
|
1160
|
+
elts.push(elem);
|
1161
|
+
}
|
1162
|
+
}
|
1163
|
+
return elts;
|
1164
|
+
};
|
1165
|
+
|
1166
|
+
pp.parseBindingListItem = function (param) {
|
1167
|
+
return param;
|
1168
|
+
};
|
1169
|
+
|
1170
|
+
// Parses assignment pattern around given atom if possible.
|
1171
|
+
|
1172
|
+
pp.parseMaybeDefault = function (startPos, startLoc, left) {
|
1173
|
+
left = left || this.parseBindingAtom();
|
1174
|
+
if (this.options.ecmaVersion < 6 || !this.eat(_tokentype.types.eq)) return left;
|
1175
|
+
var node = this.startNodeAt(startPos, startLoc);
|
1176
|
+
node.left = left;
|
1177
|
+
node.right = this.parseMaybeAssign();
|
1178
|
+
return this.finishNode(node, "AssignmentPattern");
|
1179
|
+
};
|
1180
|
+
|
1181
|
+
// Verify that a node is an lval — something that can be assigned
|
1182
|
+
// to.
|
1183
|
+
|
1184
|
+
pp.checkLVal = function (expr, isBinding, checkClashes) {
|
1185
|
+
switch (expr.type) {
|
1186
|
+
case "Identifier":
|
1187
|
+
if (this.strict && this.reservedWordsStrictBind.test(expr.name)) this.raise(expr.start, (isBinding ? "Binding " : "Assigning to ") + expr.name + " in strict mode");
|
1188
|
+
if (checkClashes) {
|
1189
|
+
if (_util.has(checkClashes, expr.name)) this.raise(expr.start, "Argument name clash");
|
1190
|
+
checkClashes[expr.name] = true;
|
1191
|
+
}
|
1192
|
+
break;
|
1193
|
+
|
1194
|
+
case "MemberExpression":
|
1195
|
+
if (isBinding) this.raise(expr.start, (isBinding ? "Binding" : "Assigning to") + " member expression");
|
1196
|
+
break;
|
1197
|
+
|
1198
|
+
case "ObjectPattern":
|
1199
|
+
for (var i = 0; i < expr.properties.length; i++) {
|
1200
|
+
this.checkLVal(expr.properties[i].value, isBinding, checkClashes);
|
1201
|
+
}break;
|
1202
|
+
|
1203
|
+
case "ArrayPattern":
|
1204
|
+
for (var i = 0; i < expr.elements.length; i++) {
|
1205
|
+
var elem = expr.elements[i];
|
1206
|
+
if (elem) this.checkLVal(elem, isBinding, checkClashes);
|
1207
|
+
}
|
1208
|
+
break;
|
1209
|
+
|
1210
|
+
case "AssignmentPattern":
|
1211
|
+
this.checkLVal(expr.left, isBinding, checkClashes);
|
1212
|
+
break;
|
1213
|
+
|
1214
|
+
case "RestElement":
|
1215
|
+
this.checkLVal(expr.argument, isBinding, checkClashes);
|
1216
|
+
break;
|
1217
|
+
|
1218
|
+
case "ParenthesizedExpression":
|
1219
|
+
this.checkLVal(expr.expression, isBinding, checkClashes);
|
1220
|
+
break;
|
1221
|
+
|
1222
|
+
default:
|
1223
|
+
this.raise(expr.start, (isBinding ? "Binding" : "Assigning to") + " rvalue");
|
1224
|
+
}
|
1225
|
+
};
|
1226
|
+
|
1227
|
+
},{"./state":10,"./tokentype":14,"./util":15}],7:[function(_dereq_,module,exports){
|
1228
|
+
"use strict";
|
1229
|
+
|
1230
|
+
exports.__esModule = true;
|
1231
|
+
|
1232
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
1233
|
+
|
1234
|
+
var _state = _dereq_("./state");
|
1235
|
+
|
1236
|
+
var _locutil = _dereq_("./locutil");
|
1237
|
+
|
1238
|
+
var Node = function Node(parser, pos, loc) {
|
1239
|
+
_classCallCheck(this, Node);
|
1240
|
+
|
1241
|
+
this.type = "";
|
1242
|
+
this.start = pos;
|
1243
|
+
this.end = 0;
|
1244
|
+
if (parser.options.locations) this.loc = new _locutil.SourceLocation(parser, loc);
|
1245
|
+
if (parser.options.directSourceFile) this.sourceFile = parser.options.directSourceFile;
|
1246
|
+
if (parser.options.ranges) this.range = [pos, 0];
|
1247
|
+
}
|
1248
|
+
|
1249
|
+
// Start an AST node, attaching a start offset.
|
1250
|
+
|
1251
|
+
;
|
1252
|
+
|
1253
|
+
exports.Node = Node;
|
1254
|
+
var pp = _state.Parser.prototype;
|
1255
|
+
|
1256
|
+
pp.startNode = function () {
|
1257
|
+
return new Node(this, this.start, this.startLoc);
|
1258
|
+
};
|
1259
|
+
|
1260
|
+
pp.startNodeAt = function (pos, loc) {
|
1261
|
+
return new Node(this, pos, loc);
|
1262
|
+
};
|
1263
|
+
|
1264
|
+
// Finish an AST node, adding `type` and `end` properties.
|
1265
|
+
|
1266
|
+
function finishNodeAt(node, type, pos, loc) {
|
1267
|
+
node.type = type;
|
1268
|
+
node.end = pos;
|
1269
|
+
if (this.options.locations) node.loc.end = loc;
|
1270
|
+
if (this.options.ranges) node.range[1] = pos;
|
1271
|
+
return node;
|
1272
|
+
}
|
1273
|
+
|
1274
|
+
pp.finishNode = function (node, type) {
|
1275
|
+
return finishNodeAt.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc);
|
1276
|
+
};
|
1277
|
+
|
1278
|
+
// Finish node at given position
|
1279
|
+
|
1280
|
+
pp.finishNodeAt = function (node, type, pos, loc) {
|
1281
|
+
return finishNodeAt.call(this, node, type, pos, loc);
|
1282
|
+
};
|
1283
|
+
|
1284
|
+
},{"./locutil":5,"./state":10}],8:[function(_dereq_,module,exports){
|
1285
|
+
"use strict";
|
1286
|
+
|
1287
|
+
exports.__esModule = true;
|
1288
|
+
exports.getOptions = getOptions;
|
1289
|
+
|
1290
|
+
var _util = _dereq_("./util");
|
1291
|
+
|
1292
|
+
var _locutil = _dereq_("./locutil");
|
1293
|
+
|
1294
|
+
// A second optional argument can be given to further configure
|
1295
|
+
// the parser process. These options are recognized:
|
1296
|
+
|
1297
|
+
var defaultOptions = {
|
1298
|
+
// `ecmaVersion` indicates the ECMAScript version to parse. Must
|
1299
|
+
// be either 3, or 5, or 6. This influences support for strict
|
1300
|
+
// mode, the set of reserved words, support for getters and
|
1301
|
+
// setters and other features.
|
1302
|
+
ecmaVersion: 5,
|
1303
|
+
// Source type ("script" or "module") for different semantics
|
1304
|
+
sourceType: "script",
|
1305
|
+
// `onInsertedSemicolon` can be a callback that will be called
|
1306
|
+
// when a semicolon is automatically inserted. It will be passed
|
1307
|
+
// th position of the comma as an offset, and if `locations` is
|
1308
|
+
// enabled, it is given the location as a `{line, column}` object
|
1309
|
+
// as second argument.
|
1310
|
+
onInsertedSemicolon: null,
|
1311
|
+
// `onTrailingComma` is similar to `onInsertedSemicolon`, but for
|
1312
|
+
// trailing commas.
|
1313
|
+
onTrailingComma: null,
|
1314
|
+
// By default, reserved words are only enforced if ecmaVersion >= 5.
|
1315
|
+
// Set `allowReserved` to a boolean value to explicitly turn this on
|
1316
|
+
// an off. When this option has the value "never", reserved words
|
1317
|
+
// and keywords can also not be used as property names.
|
1318
|
+
allowReserved: null,
|
1319
|
+
// When enabled, a return at the top level is not considered an
|
1320
|
+
// error.
|
1321
|
+
allowReturnOutsideFunction: false,
|
1322
|
+
// When enabled, import/export statements are not constrained to
|
1323
|
+
// appearing at the top of the program.
|
1324
|
+
allowImportExportEverywhere: false,
|
1325
|
+
// When enabled, hashbang directive in the beginning of file
|
1326
|
+
// is allowed and treated as a line comment.
|
1327
|
+
allowHashBang: false,
|
1328
|
+
// When `locations` is on, `loc` properties holding objects with
|
1329
|
+
// `start` and `end` properties in `{line, column}` form (with
|
1330
|
+
// line being 1-based and column 0-based) will be attached to the
|
1331
|
+
// nodes.
|
1332
|
+
locations: false,
|
1333
|
+
// A function can be passed as `onToken` option, which will
|
1334
|
+
// cause Acorn to call that function with object in the same
|
1335
|
+
// format as tokens returned from `tokenizer().getToken()`. Note
|
1336
|
+
// that you are not allowed to call the parser from the
|
1337
|
+
// callback—that will corrupt its internal state.
|
1338
|
+
onToken: null,
|
1339
|
+
// A function can be passed as `onComment` option, which will
|
1340
|
+
// cause Acorn to call that function with `(block, text, start,
|
1341
|
+
// end)` parameters whenever a comment is skipped. `block` is a
|
1342
|
+
// boolean indicating whether this is a block (`/* */`) comment,
|
1343
|
+
// `text` is the content of the comment, and `start` and `end` are
|
1344
|
+
// character offsets that denote the start and end of the comment.
|
1345
|
+
// When the `locations` option is on, two more parameters are
|
1346
|
+
// passed, the full `{line, column}` locations of the start and
|
1347
|
+
// end of the comments. Note that you are not allowed to call the
|
1348
|
+
// parser from the callback—that will corrupt its internal state.
|
1349
|
+
onComment: null,
|
1350
|
+
// Nodes have their start and end characters offsets recorded in
|
1351
|
+
// `start` and `end` properties (directly on the node, rather than
|
1352
|
+
// the `loc` object, which holds line/column data. To also add a
|
1353
|
+
// [semi-standardized][range] `range` property holding a `[start,
|
1354
|
+
// end]` array with the same numbers, set the `ranges` option to
|
1355
|
+
// `true`.
|
1356
|
+
//
|
1357
|
+
// [range]: https://bugzilla.mozilla.org/show_bug.cgi?id=745678
|
1358
|
+
ranges: false,
|
1359
|
+
// It is possible to parse multiple files into a single AST by
|
1360
|
+
// passing the tree produced by parsing the first file as
|
1361
|
+
// `program` option in subsequent parses. This will add the
|
1362
|
+
// toplevel forms of the parsed file to the `Program` (top) node
|
1363
|
+
// of an existing parse tree.
|
1364
|
+
program: null,
|
1365
|
+
// When `locations` is on, you can pass this to record the source
|
1366
|
+
// file in every node's `loc` object.
|
1367
|
+
sourceFile: null,
|
1368
|
+
// This value, if given, is stored in every node, whether
|
1369
|
+
// `locations` is on or off.
|
1370
|
+
directSourceFile: null,
|
1371
|
+
// When enabled, parenthesized expressions are represented by
|
1372
|
+
// (non-standard) ParenthesizedExpression nodes
|
1373
|
+
preserveParens: false,
|
1374
|
+
plugins: {}
|
1375
|
+
};
|
1376
|
+
|
1377
|
+
exports.defaultOptions = defaultOptions;
|
1378
|
+
// Interpret and default an options object
|
1379
|
+
|
1380
|
+
function getOptions(opts) {
|
1381
|
+
var options = {};
|
1382
|
+
for (var opt in defaultOptions) {
|
1383
|
+
options[opt] = opts && _util.has(opts, opt) ? opts[opt] : defaultOptions[opt];
|
1384
|
+
}if (options.allowReserved == null) options.allowReserved = options.ecmaVersion < 5;
|
1385
|
+
|
1386
|
+
if (_util.isArray(options.onToken)) {
|
1387
|
+
(function () {
|
1388
|
+
var tokens = options.onToken;
|
1389
|
+
options.onToken = function (token) {
|
1390
|
+
return tokens.push(token);
|
1391
|
+
};
|
1392
|
+
})();
|
1393
|
+
}
|
1394
|
+
if (_util.isArray(options.onComment)) options.onComment = pushComment(options, options.onComment);
|
1395
|
+
|
1396
|
+
return options;
|
1397
|
+
}
|
1398
|
+
|
1399
|
+
function pushComment(options, array) {
|
1400
|
+
return function (block, text, start, end, startLoc, endLoc) {
|
1401
|
+
var comment = {
|
1402
|
+
type: block ? 'Block' : 'Line',
|
1403
|
+
value: text,
|
1404
|
+
start: start,
|
1405
|
+
end: end
|
1406
|
+
};
|
1407
|
+
if (options.locations) comment.loc = new _locutil.SourceLocation(this, startLoc, endLoc);
|
1408
|
+
if (options.ranges) comment.range = [start, end];
|
1409
|
+
array.push(comment);
|
1410
|
+
};
|
1411
|
+
}
|
1412
|
+
|
1413
|
+
},{"./locutil":5,"./util":15}],9:[function(_dereq_,module,exports){
|
1414
|
+
"use strict";
|
1415
|
+
|
1416
|
+
var _tokentype = _dereq_("./tokentype");
|
1417
|
+
|
1418
|
+
var _state = _dereq_("./state");
|
1419
|
+
|
1420
|
+
var _whitespace = _dereq_("./whitespace");
|
1421
|
+
|
1422
|
+
var pp = _state.Parser.prototype;
|
1423
|
+
|
1424
|
+
// ## Parser utilities
|
1425
|
+
|
1426
|
+
// Test whether a statement node is the string literal `"use strict"`.
|
1427
|
+
|
1428
|
+
pp.isUseStrict = function (stmt) {
|
1429
|
+
return this.options.ecmaVersion >= 5 && stmt.type === "ExpressionStatement" && stmt.expression.type === "Literal" && stmt.expression.raw.slice(1, -1) === "use strict";
|
1430
|
+
};
|
1431
|
+
|
1432
|
+
// Predicate that tests whether the next token is of the given
|
1433
|
+
// type, and if yes, consumes it as a side effect.
|
1434
|
+
|
1435
|
+
pp.eat = function (type) {
|
1436
|
+
if (this.type === type) {
|
1437
|
+
this.next();
|
1438
|
+
return true;
|
1439
|
+
} else {
|
1440
|
+
return false;
|
1441
|
+
}
|
1442
|
+
};
|
1443
|
+
|
1444
|
+
// Tests whether parsed token is a contextual keyword.
|
1445
|
+
|
1446
|
+
pp.isContextual = function (name) {
|
1447
|
+
return this.type === _tokentype.types.name && this.value === name;
|
1448
|
+
};
|
1449
|
+
|
1450
|
+
// Consumes contextual keyword if possible.
|
1451
|
+
|
1452
|
+
pp.eatContextual = function (name) {
|
1453
|
+
return this.value === name && this.eat(_tokentype.types.name);
|
1454
|
+
};
|
1455
|
+
|
1456
|
+
// Asserts that following token is given contextual keyword.
|
1457
|
+
|
1458
|
+
pp.expectContextual = function (name) {
|
1459
|
+
if (!this.eatContextual(name)) this.unexpected();
|
1460
|
+
};
|
1461
|
+
|
1462
|
+
// Test whether a semicolon can be inserted at the current position.
|
1463
|
+
|
1464
|
+
pp.canInsertSemicolon = function () {
|
1465
|
+
return this.type === _tokentype.types.eof || this.type === _tokentype.types.braceR || _whitespace.lineBreak.test(this.input.slice(this.lastTokEnd, this.start));
|
1466
|
+
};
|
1467
|
+
|
1468
|
+
pp.insertSemicolon = function () {
|
1469
|
+
if (this.canInsertSemicolon()) {
|
1470
|
+
if (this.options.onInsertedSemicolon) this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc);
|
1471
|
+
return true;
|
1472
|
+
}
|
1473
|
+
};
|
1474
|
+
|
1475
|
+
// Consume a semicolon, or, failing that, see if we are allowed to
|
1476
|
+
// pretend that there is a semicolon at this position.
|
1477
|
+
|
1478
|
+
pp.semicolon = function () {
|
1479
|
+
if (!this.eat(_tokentype.types.semi) && !this.insertSemicolon()) this.unexpected();
|
1480
|
+
};
|
1481
|
+
|
1482
|
+
pp.afterTrailingComma = function (tokType) {
|
1483
|
+
if (this.type == tokType) {
|
1484
|
+
if (this.options.onTrailingComma) this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc);
|
1485
|
+
this.next();
|
1486
|
+
return true;
|
1487
|
+
}
|
1488
|
+
};
|
1489
|
+
|
1490
|
+
// Expect a token of a given type. If found, consume it, otherwise,
|
1491
|
+
// raise an unexpected token error.
|
1492
|
+
|
1493
|
+
pp.expect = function (type) {
|
1494
|
+
this.eat(type) || this.unexpected();
|
1495
|
+
};
|
1496
|
+
|
1497
|
+
// Raise an unexpected token error.
|
1498
|
+
|
1499
|
+
pp.unexpected = function (pos) {
|
1500
|
+
this.raise(pos != null ? pos : this.start, "Unexpected token");
|
1501
|
+
};
|
1502
|
+
|
1503
|
+
pp.checkPatternErrors = function (refDestructuringErrors, andThrow) {
|
1504
|
+
var pos = refDestructuringErrors && refDestructuringErrors.trailingComma;
|
1505
|
+
if (!andThrow) return !!pos;
|
1506
|
+
if (pos) this.raise(pos, "Trailing comma is not permitted in destructuring patterns");
|
1507
|
+
};
|
1508
|
+
|
1509
|
+
pp.checkExpressionErrors = function (refDestructuringErrors, andThrow) {
|
1510
|
+
var pos = refDestructuringErrors && refDestructuringErrors.shorthandAssign;
|
1511
|
+
if (!andThrow) return !!pos;
|
1512
|
+
if (pos) this.raise(pos, "Shorthand property assignments are valid only in destructuring patterns");
|
1513
|
+
};
|
1514
|
+
|
1515
|
+
},{"./state":10,"./tokentype":14,"./whitespace":16}],10:[function(_dereq_,module,exports){
|
1516
|
+
"use strict";
|
1517
|
+
|
1518
|
+
exports.__esModule = true;
|
1519
|
+
|
1520
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
1521
|
+
|
1522
|
+
var _identifier = _dereq_("./identifier");
|
1523
|
+
|
1524
|
+
var _tokentype = _dereq_("./tokentype");
|
1525
|
+
|
1526
|
+
var _whitespace = _dereq_("./whitespace");
|
1527
|
+
|
1528
|
+
var _options = _dereq_("./options");
|
1529
|
+
|
1530
|
+
// Registered plugins
|
1531
|
+
var plugins = {};
|
1532
|
+
|
1533
|
+
exports.plugins = plugins;
|
1534
|
+
function keywordRegexp(words) {
|
1535
|
+
return new RegExp("^(" + words.replace(/ /g, "|") + ")$");
|
1536
|
+
}
|
1537
|
+
|
1538
|
+
var Parser = (function () {
|
1539
|
+
function Parser(options, input, startPos) {
|
1540
|
+
_classCallCheck(this, Parser);
|
1541
|
+
|
1542
|
+
this.options = options = _options.getOptions(options);
|
1543
|
+
this.sourceFile = options.sourceFile;
|
1544
|
+
this.keywords = keywordRegexp(_identifier.keywords[options.ecmaVersion >= 6 ? 6 : 5]);
|
1545
|
+
var reserved = options.allowReserved ? "" : _identifier.reservedWords[options.ecmaVersion] + (options.sourceType == "module" ? " await" : "");
|
1546
|
+
this.reservedWords = keywordRegexp(reserved);
|
1547
|
+
var reservedStrict = (reserved ? reserved + " " : "") + _identifier.reservedWords.strict;
|
1548
|
+
this.reservedWordsStrict = keywordRegexp(reservedStrict);
|
1549
|
+
this.reservedWordsStrictBind = keywordRegexp(reservedStrict + " " + _identifier.reservedWords.strictBind);
|
1550
|
+
this.input = String(input);
|
1551
|
+
|
1552
|
+
// Used to signal to callers of `readWord1` whether the word
|
1553
|
+
// contained any escape sequences. This is needed because words with
|
1554
|
+
// escape sequences must not be interpreted as keywords.
|
1555
|
+
this.containsEsc = false;
|
1556
|
+
|
1557
|
+
// Load plugins
|
1558
|
+
this.loadPlugins(options.plugins);
|
1559
|
+
|
1560
|
+
// Set up token state
|
1561
|
+
|
1562
|
+
// The current position of the tokenizer in the input.
|
1563
|
+
if (startPos) {
|
1564
|
+
this.pos = startPos;
|
1565
|
+
this.lineStart = Math.max(0, this.input.lastIndexOf("\n", startPos));
|
1566
|
+
this.curLine = this.input.slice(0, this.lineStart).split(_whitespace.lineBreak).length;
|
1567
|
+
} else {
|
1568
|
+
this.pos = this.lineStart = 0;
|
1569
|
+
this.curLine = 1;
|
1570
|
+
}
|
1571
|
+
|
1572
|
+
// Properties of the current token:
|
1573
|
+
// Its type
|
1574
|
+
this.type = _tokentype.types.eof;
|
1575
|
+
// For tokens that include more information than their type, the value
|
1576
|
+
this.value = null;
|
1577
|
+
// Its start and end offset
|
1578
|
+
this.start = this.end = this.pos;
|
1579
|
+
// And, if locations are used, the {line, column} object
|
1580
|
+
// corresponding to those offsets
|
1581
|
+
this.startLoc = this.endLoc = this.curPosition();
|
1582
|
+
|
1583
|
+
// Position information for the previous token
|
1584
|
+
this.lastTokEndLoc = this.lastTokStartLoc = null;
|
1585
|
+
this.lastTokStart = this.lastTokEnd = this.pos;
|
1586
|
+
|
1587
|
+
// The context stack is used to superficially track syntactic
|
1588
|
+
// context to predict whether a regular expression is allowed in a
|
1589
|
+
// given position.
|
1590
|
+
this.context = this.initialContext();
|
1591
|
+
this.exprAllowed = true;
|
1592
|
+
|
1593
|
+
// Figure out if it's a module code.
|
1594
|
+
this.strict = this.inModule = options.sourceType === "module";
|
1595
|
+
|
1596
|
+
// Used to signify the start of a potential arrow function
|
1597
|
+
this.potentialArrowAt = -1;
|
1598
|
+
|
1599
|
+
// Flags to track whether we are in a function, a generator.
|
1600
|
+
this.inFunction = this.inGenerator = false;
|
1601
|
+
// Labels in scope.
|
1602
|
+
this.labels = [];
|
1603
|
+
|
1604
|
+
// If enabled, skip leading hashbang line.
|
1605
|
+
if (this.pos === 0 && options.allowHashBang && this.input.slice(0, 2) === '#!') this.skipLineComment(2);
|
1606
|
+
}
|
1607
|
+
|
1608
|
+
// DEPRECATED Kept for backwards compatibility until 3.0 in case a plugin uses them
|
1609
|
+
|
1610
|
+
Parser.prototype.isKeyword = function isKeyword(word) {
|
1611
|
+
return this.keywords.test(word);
|
1612
|
+
};
|
1613
|
+
|
1614
|
+
Parser.prototype.isReservedWord = function isReservedWord(word) {
|
1615
|
+
return this.reservedWords.test(word);
|
1616
|
+
};
|
1617
|
+
|
1618
|
+
Parser.prototype.extend = function extend(name, f) {
|
1619
|
+
this[name] = f(this[name]);
|
1620
|
+
};
|
1621
|
+
|
1622
|
+
Parser.prototype.loadPlugins = function loadPlugins(pluginConfigs) {
|
1623
|
+
for (var _name in pluginConfigs) {
|
1624
|
+
var plugin = plugins[_name];
|
1625
|
+
if (!plugin) throw new Error("Plugin '" + _name + "' not found");
|
1626
|
+
plugin(this, pluginConfigs[_name]);
|
1627
|
+
}
|
1628
|
+
};
|
1629
|
+
|
1630
|
+
Parser.prototype.parse = function parse() {
|
1631
|
+
var node = this.options.program || this.startNode();
|
1632
|
+
this.nextToken();
|
1633
|
+
return this.parseTopLevel(node);
|
1634
|
+
};
|
1635
|
+
|
1636
|
+
return Parser;
|
1637
|
+
})();
|
1638
|
+
|
1639
|
+
exports.Parser = Parser;
|
1640
|
+
|
1641
|
+
},{"./identifier":2,"./options":8,"./tokentype":14,"./whitespace":16}],11:[function(_dereq_,module,exports){
|
1642
|
+
"use strict";
|
1643
|
+
|
1644
|
+
var _tokentype = _dereq_("./tokentype");
|
1645
|
+
|
1646
|
+
var _state = _dereq_("./state");
|
1647
|
+
|
1648
|
+
var _whitespace = _dereq_("./whitespace");
|
1649
|
+
|
1650
|
+
var pp = _state.Parser.prototype;
|
1651
|
+
|
1652
|
+
// ### Statement parsing
|
1653
|
+
|
1654
|
+
// Parse a program. Initializes the parser, reads any number of
|
1655
|
+
// statements, and wraps them in a Program node. Optionally takes a
|
1656
|
+
// `program` argument. If present, the statements will be appended
|
1657
|
+
// to its body instead of creating a new node.
|
1658
|
+
|
1659
|
+
pp.parseTopLevel = function (node) {
|
1660
|
+
var first = true;
|
1661
|
+
if (!node.body) node.body = [];
|
1662
|
+
while (this.type !== _tokentype.types.eof) {
|
1663
|
+
var stmt = this.parseStatement(true, true);
|
1664
|
+
node.body.push(stmt);
|
1665
|
+
if (first) {
|
1666
|
+
if (this.isUseStrict(stmt)) this.setStrict(true);
|
1667
|
+
first = false;
|
1668
|
+
}
|
1669
|
+
}
|
1670
|
+
this.next();
|
1671
|
+
if (this.options.ecmaVersion >= 6) {
|
1672
|
+
node.sourceType = this.options.sourceType;
|
1673
|
+
}
|
1674
|
+
return this.finishNode(node, "Program");
|
1675
|
+
};
|
1676
|
+
|
1677
|
+
var loopLabel = { kind: "loop" },
|
1678
|
+
switchLabel = { kind: "switch" };
|
1679
|
+
|
1680
|
+
// Parse a single statement.
|
1681
|
+
//
|
1682
|
+
// If expecting a statement and finding a slash operator, parse a
|
1683
|
+
// regular expression literal. This is to handle cases like
|
1684
|
+
// `if (foo) /blah/.exec(foo)`, where looking at the previous token
|
1685
|
+
// does not help.
|
1686
|
+
|
1687
|
+
pp.parseStatement = function (declaration, topLevel) {
|
1688
|
+
var starttype = this.type,
|
1689
|
+
node = this.startNode();
|
1690
|
+
|
1691
|
+
// Most types of statements are recognized by the keyword they
|
1692
|
+
// start with. Many are trivial to parse, some require a bit of
|
1693
|
+
// complexity.
|
1694
|
+
|
1695
|
+
switch (starttype) {
|
1696
|
+
case _tokentype.types._break:case _tokentype.types._continue:
|
1697
|
+
return this.parseBreakContinueStatement(node, starttype.keyword);
|
1698
|
+
case _tokentype.types._debugger:
|
1699
|
+
return this.parseDebuggerStatement(node);
|
1700
|
+
case _tokentype.types._do:
|
1701
|
+
return this.parseDoStatement(node);
|
1702
|
+
case _tokentype.types._for:
|
1703
|
+
return this.parseForStatement(node);
|
1704
|
+
case _tokentype.types._function:
|
1705
|
+
if (!declaration && this.options.ecmaVersion >= 6) this.unexpected();
|
1706
|
+
return this.parseFunctionStatement(node);
|
1707
|
+
case _tokentype.types._class:
|
1708
|
+
if (!declaration) this.unexpected();
|
1709
|
+
return this.parseClass(node, true);
|
1710
|
+
case _tokentype.types._if:
|
1711
|
+
return this.parseIfStatement(node);
|
1712
|
+
case _tokentype.types._return:
|
1713
|
+
return this.parseReturnStatement(node);
|
1714
|
+
case _tokentype.types._switch:
|
1715
|
+
return this.parseSwitchStatement(node);
|
1716
|
+
case _tokentype.types._throw:
|
1717
|
+
return this.parseThrowStatement(node);
|
1718
|
+
case _tokentype.types._try:
|
1719
|
+
return this.parseTryStatement(node);
|
1720
|
+
case _tokentype.types._let:case _tokentype.types._const:
|
1721
|
+
if (!declaration) this.unexpected(); // NOTE: falls through to _var
|
1722
|
+
case _tokentype.types._var:
|
1723
|
+
return this.parseVarStatement(node, starttype);
|
1724
|
+
case _tokentype.types._while:
|
1725
|
+
return this.parseWhileStatement(node);
|
1726
|
+
case _tokentype.types._with:
|
1727
|
+
return this.parseWithStatement(node);
|
1728
|
+
case _tokentype.types.braceL:
|
1729
|
+
return this.parseBlock();
|
1730
|
+
case _tokentype.types.semi:
|
1731
|
+
return this.parseEmptyStatement(node);
|
1732
|
+
case _tokentype.types._export:
|
1733
|
+
case _tokentype.types._import:
|
1734
|
+
if (!this.options.allowImportExportEverywhere) {
|
1735
|
+
if (!topLevel) this.raise(this.start, "'import' and 'export' may only appear at the top level");
|
1736
|
+
if (!this.inModule) this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'");
|
1737
|
+
}
|
1738
|
+
return starttype === _tokentype.types._import ? this.parseImport(node) : this.parseExport(node);
|
1739
|
+
|
1740
|
+
// If the statement does not start with a statement keyword or a
|
1741
|
+
// brace, it's an ExpressionStatement or LabeledStatement. We
|
1742
|
+
// simply start parsing an expression, and afterwards, if the
|
1743
|
+
// next token is a colon and the expression was a simple
|
1744
|
+
// Identifier node, we switch to interpreting it as a label.
|
1745
|
+
default:
|
1746
|
+
var maybeName = this.value,
|
1747
|
+
expr = this.parseExpression();
|
1748
|
+
if (starttype === _tokentype.types.name && expr.type === "Identifier" && this.eat(_tokentype.types.colon)) return this.parseLabeledStatement(node, maybeName, expr);else return this.parseExpressionStatement(node, expr);
|
1749
|
+
}
|
1750
|
+
};
|
1751
|
+
|
1752
|
+
pp.parseBreakContinueStatement = function (node, keyword) {
|
1753
|
+
var isBreak = keyword == "break";
|
1754
|
+
this.next();
|
1755
|
+
if (this.eat(_tokentype.types.semi) || this.insertSemicolon()) node.label = null;else if (this.type !== _tokentype.types.name) this.unexpected();else {
|
1756
|
+
node.label = this.parseIdent();
|
1757
|
+
this.semicolon();
|
1758
|
+
}
|
1759
|
+
|
1760
|
+
// Verify that there is an actual destination to break or
|
1761
|
+
// continue to.
|
1762
|
+
for (var i = 0; i < this.labels.length; ++i) {
|
1763
|
+
var lab = this.labels[i];
|
1764
|
+
if (node.label == null || lab.name === node.label.name) {
|
1765
|
+
if (lab.kind != null && (isBreak || lab.kind === "loop")) break;
|
1766
|
+
if (node.label && isBreak) break;
|
1767
|
+
}
|
1768
|
+
}
|
1769
|
+
if (i === this.labels.length) this.raise(node.start, "Unsyntactic " + keyword);
|
1770
|
+
return this.finishNode(node, isBreak ? "BreakStatement" : "ContinueStatement");
|
1771
|
+
};
|
1772
|
+
|
1773
|
+
pp.parseDebuggerStatement = function (node) {
|
1774
|
+
this.next();
|
1775
|
+
this.semicolon();
|
1776
|
+
return this.finishNode(node, "DebuggerStatement");
|
1777
|
+
};
|
1778
|
+
|
1779
|
+
pp.parseDoStatement = function (node) {
|
1780
|
+
this.next();
|
1781
|
+
this.labels.push(loopLabel);
|
1782
|
+
node.body = this.parseStatement(false);
|
1783
|
+
this.labels.pop();
|
1784
|
+
this.expect(_tokentype.types._while);
|
1785
|
+
node.test = this.parseParenExpression();
|
1786
|
+
if (this.options.ecmaVersion >= 6) this.eat(_tokentype.types.semi);else this.semicolon();
|
1787
|
+
return this.finishNode(node, "DoWhileStatement");
|
1788
|
+
};
|
1789
|
+
|
1790
|
+
// Disambiguating between a `for` and a `for`/`in` or `for`/`of`
|
1791
|
+
// loop is non-trivial. Basically, we have to parse the init `var`
|
1792
|
+
// statement or expression, disallowing the `in` operator (see
|
1793
|
+
// the second parameter to `parseExpression`), and then check
|
1794
|
+
// whether the next token is `in` or `of`. When there is no init
|
1795
|
+
// part (semicolon immediately after the opening parenthesis), it
|
1796
|
+
// is a regular `for` loop.
|
1797
|
+
|
1798
|
+
pp.parseForStatement = function (node) {
|
1799
|
+
this.next();
|
1800
|
+
this.labels.push(loopLabel);
|
1801
|
+
this.expect(_tokentype.types.parenL);
|
1802
|
+
if (this.type === _tokentype.types.semi) return this.parseFor(node, null);
|
1803
|
+
if (this.type === _tokentype.types._var || this.type === _tokentype.types._let || this.type === _tokentype.types._const) {
|
1804
|
+
var _init = this.startNode(),
|
1805
|
+
varKind = this.type;
|
1806
|
+
this.next();
|
1807
|
+
this.parseVar(_init, true, varKind);
|
1808
|
+
this.finishNode(_init, "VariableDeclaration");
|
1809
|
+
if ((this.type === _tokentype.types._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && _init.declarations.length === 1 && !(varKind !== _tokentype.types._var && _init.declarations[0].init)) return this.parseForIn(node, _init);
|
1810
|
+
return this.parseFor(node, _init);
|
1811
|
+
}
|
1812
|
+
var refDestructuringErrors = { shorthandAssign: 0, trailingComma: 0 };
|
1813
|
+
var init = this.parseExpression(true, refDestructuringErrors);
|
1814
|
+
if (this.type === _tokentype.types._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) {
|
1815
|
+
this.checkPatternErrors(refDestructuringErrors, true);
|
1816
|
+
this.toAssignable(init);
|
1817
|
+
this.checkLVal(init);
|
1818
|
+
return this.parseForIn(node, init);
|
1819
|
+
} else {
|
1820
|
+
this.checkExpressionErrors(refDestructuringErrors, true);
|
1821
|
+
}
|
1822
|
+
return this.parseFor(node, init);
|
1823
|
+
};
|
1824
|
+
|
1825
|
+
pp.parseFunctionStatement = function (node) {
|
1826
|
+
this.next();
|
1827
|
+
return this.parseFunction(node, true);
|
1828
|
+
};
|
1829
|
+
|
1830
|
+
pp.parseIfStatement = function (node) {
|
1831
|
+
this.next();
|
1832
|
+
node.test = this.parseParenExpression();
|
1833
|
+
node.consequent = this.parseStatement(false);
|
1834
|
+
node.alternate = this.eat(_tokentype.types._else) ? this.parseStatement(false) : null;
|
1835
|
+
return this.finishNode(node, "IfStatement");
|
1836
|
+
};
|
1837
|
+
|
1838
|
+
pp.parseReturnStatement = function (node) {
|
1839
|
+
if (!this.inFunction && !this.options.allowReturnOutsideFunction) this.raise(this.start, "'return' outside of function");
|
1840
|
+
this.next();
|
1841
|
+
|
1842
|
+
// In `return` (and `break`/`continue`), the keywords with
|
1843
|
+
// optional arguments, we eagerly look for a semicolon or the
|
1844
|
+
// possibility to insert one.
|
1845
|
+
|
1846
|
+
if (this.eat(_tokentype.types.semi) || this.insertSemicolon()) node.argument = null;else {
|
1847
|
+
node.argument = this.parseExpression();this.semicolon();
|
1848
|
+
}
|
1849
|
+
return this.finishNode(node, "ReturnStatement");
|
1850
|
+
};
|
1851
|
+
|
1852
|
+
pp.parseSwitchStatement = function (node) {
|
1853
|
+
this.next();
|
1854
|
+
node.discriminant = this.parseParenExpression();
|
1855
|
+
node.cases = [];
|
1856
|
+
this.expect(_tokentype.types.braceL);
|
1857
|
+
this.labels.push(switchLabel);
|
1858
|
+
|
1859
|
+
// Statements under must be grouped (by label) in SwitchCase
|
1860
|
+
// nodes. `cur` is used to keep the node that we are currently
|
1861
|
+
// adding statements to.
|
1862
|
+
|
1863
|
+
for (var cur, sawDefault = false; this.type != _tokentype.types.braceR;) {
|
1864
|
+
if (this.type === _tokentype.types._case || this.type === _tokentype.types._default) {
|
1865
|
+
var isCase = this.type === _tokentype.types._case;
|
1866
|
+
if (cur) this.finishNode(cur, "SwitchCase");
|
1867
|
+
node.cases.push(cur = this.startNode());
|
1868
|
+
cur.consequent = [];
|
1869
|
+
this.next();
|
1870
|
+
if (isCase) {
|
1871
|
+
cur.test = this.parseExpression();
|
1872
|
+
} else {
|
1873
|
+
if (sawDefault) this.raise(this.lastTokStart, "Multiple default clauses");
|
1874
|
+
sawDefault = true;
|
1875
|
+
cur.test = null;
|
1876
|
+
}
|
1877
|
+
this.expect(_tokentype.types.colon);
|
1878
|
+
} else {
|
1879
|
+
if (!cur) this.unexpected();
|
1880
|
+
cur.consequent.push(this.parseStatement(true));
|
1881
|
+
}
|
1882
|
+
}
|
1883
|
+
if (cur) this.finishNode(cur, "SwitchCase");
|
1884
|
+
this.next(); // Closing brace
|
1885
|
+
this.labels.pop();
|
1886
|
+
return this.finishNode(node, "SwitchStatement");
|
1887
|
+
};
|
1888
|
+
|
1889
|
+
pp.parseThrowStatement = function (node) {
|
1890
|
+
this.next();
|
1891
|
+
if (_whitespace.lineBreak.test(this.input.slice(this.lastTokEnd, this.start))) this.raise(this.lastTokEnd, "Illegal newline after throw");
|
1892
|
+
node.argument = this.parseExpression();
|
1893
|
+
this.semicolon();
|
1894
|
+
return this.finishNode(node, "ThrowStatement");
|
1895
|
+
};
|
1896
|
+
|
1897
|
+
// Reused empty array added for node fields that are always empty.
|
1898
|
+
|
1899
|
+
var empty = [];
|
1900
|
+
|
1901
|
+
pp.parseTryStatement = function (node) {
|
1902
|
+
this.next();
|
1903
|
+
node.block = this.parseBlock();
|
1904
|
+
node.handler = null;
|
1905
|
+
if (this.type === _tokentype.types._catch) {
|
1906
|
+
var clause = this.startNode();
|
1907
|
+
this.next();
|
1908
|
+
this.expect(_tokentype.types.parenL);
|
1909
|
+
clause.param = this.parseBindingAtom();
|
1910
|
+
this.checkLVal(clause.param, true);
|
1911
|
+
this.expect(_tokentype.types.parenR);
|
1912
|
+
clause.body = this.parseBlock();
|
1913
|
+
node.handler = this.finishNode(clause, "CatchClause");
|
1914
|
+
}
|
1915
|
+
node.finalizer = this.eat(_tokentype.types._finally) ? this.parseBlock() : null;
|
1916
|
+
if (!node.handler && !node.finalizer) this.raise(node.start, "Missing catch or finally clause");
|
1917
|
+
return this.finishNode(node, "TryStatement");
|
1918
|
+
};
|
1919
|
+
|
1920
|
+
pp.parseVarStatement = function (node, kind) {
|
1921
|
+
this.next();
|
1922
|
+
this.parseVar(node, false, kind);
|
1923
|
+
this.semicolon();
|
1924
|
+
return this.finishNode(node, "VariableDeclaration");
|
1925
|
+
};
|
1926
|
+
|
1927
|
+
pp.parseWhileStatement = function (node) {
|
1928
|
+
this.next();
|
1929
|
+
node.test = this.parseParenExpression();
|
1930
|
+
this.labels.push(loopLabel);
|
1931
|
+
node.body = this.parseStatement(false);
|
1932
|
+
this.labels.pop();
|
1933
|
+
return this.finishNode(node, "WhileStatement");
|
1934
|
+
};
|
1935
|
+
|
1936
|
+
pp.parseWithStatement = function (node) {
|
1937
|
+
if (this.strict) this.raise(this.start, "'with' in strict mode");
|
1938
|
+
this.next();
|
1939
|
+
node.object = this.parseParenExpression();
|
1940
|
+
node.body = this.parseStatement(false);
|
1941
|
+
return this.finishNode(node, "WithStatement");
|
1942
|
+
};
|
1943
|
+
|
1944
|
+
pp.parseEmptyStatement = function (node) {
|
1945
|
+
this.next();
|
1946
|
+
return this.finishNode(node, "EmptyStatement");
|
1947
|
+
};
|
1948
|
+
|
1949
|
+
pp.parseLabeledStatement = function (node, maybeName, expr) {
|
1950
|
+
for (var i = 0; i < this.labels.length; ++i) {
|
1951
|
+
if (this.labels[i].name === maybeName) this.raise(expr.start, "Label '" + maybeName + "' is already declared");
|
1952
|
+
}var kind = this.type.isLoop ? "loop" : this.type === _tokentype.types._switch ? "switch" : null;
|
1953
|
+
for (var i = this.labels.length - 1; i >= 0; i--) {
|
1954
|
+
var label = this.labels[i];
|
1955
|
+
if (label.statementStart == node.start) {
|
1956
|
+
label.statementStart = this.start;
|
1957
|
+
label.kind = kind;
|
1958
|
+
} else break;
|
1959
|
+
}
|
1960
|
+
this.labels.push({ name: maybeName, kind: kind, statementStart: this.start });
|
1961
|
+
node.body = this.parseStatement(true);
|
1962
|
+
this.labels.pop();
|
1963
|
+
node.label = expr;
|
1964
|
+
return this.finishNode(node, "LabeledStatement");
|
1965
|
+
};
|
1966
|
+
|
1967
|
+
pp.parseExpressionStatement = function (node, expr) {
|
1968
|
+
node.expression = expr;
|
1969
|
+
this.semicolon();
|
1970
|
+
return this.finishNode(node, "ExpressionStatement");
|
1971
|
+
};
|
1972
|
+
|
1973
|
+
// Parse a semicolon-enclosed block of statements, handling `"use
|
1974
|
+
// strict"` declarations when `allowStrict` is true (used for
|
1975
|
+
// function bodies).
|
1976
|
+
|
1977
|
+
pp.parseBlock = function (allowStrict) {
|
1978
|
+
var node = this.startNode(),
|
1979
|
+
first = true,
|
1980
|
+
oldStrict = undefined;
|
1981
|
+
node.body = [];
|
1982
|
+
this.expect(_tokentype.types.braceL);
|
1983
|
+
while (!this.eat(_tokentype.types.braceR)) {
|
1984
|
+
var stmt = this.parseStatement(true);
|
1985
|
+
node.body.push(stmt);
|
1986
|
+
if (first && allowStrict && this.isUseStrict(stmt)) {
|
1987
|
+
oldStrict = this.strict;
|
1988
|
+
this.setStrict(this.strict = true);
|
1989
|
+
}
|
1990
|
+
first = false;
|
1991
|
+
}
|
1992
|
+
if (oldStrict === false) this.setStrict(false);
|
1993
|
+
return this.finishNode(node, "BlockStatement");
|
1994
|
+
};
|
1995
|
+
|
1996
|
+
// Parse a regular `for` loop. The disambiguation code in
|
1997
|
+
// `parseStatement` will already have parsed the init statement or
|
1998
|
+
// expression.
|
1999
|
+
|
2000
|
+
pp.parseFor = function (node, init) {
|
2001
|
+
node.init = init;
|
2002
|
+
this.expect(_tokentype.types.semi);
|
2003
|
+
node.test = this.type === _tokentype.types.semi ? null : this.parseExpression();
|
2004
|
+
this.expect(_tokentype.types.semi);
|
2005
|
+
node.update = this.type === _tokentype.types.parenR ? null : this.parseExpression();
|
2006
|
+
this.expect(_tokentype.types.parenR);
|
2007
|
+
node.body = this.parseStatement(false);
|
2008
|
+
this.labels.pop();
|
2009
|
+
return this.finishNode(node, "ForStatement");
|
2010
|
+
};
|
2011
|
+
|
2012
|
+
// Parse a `for`/`in` and `for`/`of` loop, which are almost
|
2013
|
+
// same from parser's perspective.
|
2014
|
+
|
2015
|
+
pp.parseForIn = function (node, init) {
|
2016
|
+
var type = this.type === _tokentype.types._in ? "ForInStatement" : "ForOfStatement";
|
2017
|
+
this.next();
|
2018
|
+
node.left = init;
|
2019
|
+
node.right = this.parseExpression();
|
2020
|
+
this.expect(_tokentype.types.parenR);
|
2021
|
+
node.body = this.parseStatement(false);
|
2022
|
+
this.labels.pop();
|
2023
|
+
return this.finishNode(node, type);
|
2024
|
+
};
|
2025
|
+
|
2026
|
+
// Parse a list of variable declarations.
|
2027
|
+
|
2028
|
+
pp.parseVar = function (node, isFor, kind) {
|
2029
|
+
node.declarations = [];
|
2030
|
+
node.kind = kind.keyword;
|
2031
|
+
for (;;) {
|
2032
|
+
var decl = this.startNode();
|
2033
|
+
this.parseVarId(decl);
|
2034
|
+
if (this.eat(_tokentype.types.eq)) {
|
2035
|
+
decl.init = this.parseMaybeAssign(isFor);
|
2036
|
+
} else if (kind === _tokentype.types._const && !(this.type === _tokentype.types._in || this.options.ecmaVersion >= 6 && this.isContextual("of"))) {
|
2037
|
+
this.unexpected();
|
2038
|
+
} else if (decl.id.type != "Identifier" && !(isFor && (this.type === _tokentype.types._in || this.isContextual("of")))) {
|
2039
|
+
this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value");
|
2040
|
+
} else {
|
2041
|
+
decl.init = null;
|
2042
|
+
}
|
2043
|
+
node.declarations.push(this.finishNode(decl, "VariableDeclarator"));
|
2044
|
+
if (!this.eat(_tokentype.types.comma)) break;
|
2045
|
+
}
|
2046
|
+
return node;
|
2047
|
+
};
|
2048
|
+
|
2049
|
+
pp.parseVarId = function (decl) {
|
2050
|
+
decl.id = this.parseBindingAtom();
|
2051
|
+
this.checkLVal(decl.id, true);
|
2052
|
+
};
|
2053
|
+
|
2054
|
+
// Parse a function declaration or literal (depending on the
|
2055
|
+
// `isStatement` parameter).
|
2056
|
+
|
2057
|
+
pp.parseFunction = function (node, isStatement, allowExpressionBody) {
|
2058
|
+
this.initFunction(node);
|
2059
|
+
if (this.options.ecmaVersion >= 6) node.generator = this.eat(_tokentype.types.star);
|
2060
|
+
if (isStatement || this.type === _tokentype.types.name) node.id = this.parseIdent();
|
2061
|
+
this.parseFunctionParams(node);
|
2062
|
+
this.parseFunctionBody(node, allowExpressionBody);
|
2063
|
+
return this.finishNode(node, isStatement ? "FunctionDeclaration" : "FunctionExpression");
|
2064
|
+
};
|
2065
|
+
|
2066
|
+
pp.parseFunctionParams = function (node) {
|
2067
|
+
this.expect(_tokentype.types.parenL);
|
2068
|
+
node.params = this.parseBindingList(_tokentype.types.parenR, false, false, true);
|
2069
|
+
};
|
2070
|
+
|
2071
|
+
// Parse a class declaration or literal (depending on the
|
2072
|
+
// `isStatement` parameter).
|
2073
|
+
|
2074
|
+
pp.parseClass = function (node, isStatement) {
|
2075
|
+
this.next();
|
2076
|
+
this.parseClassId(node, isStatement);
|
2077
|
+
this.parseClassSuper(node);
|
2078
|
+
var classBody = this.startNode();
|
2079
|
+
var hadConstructor = false;
|
2080
|
+
classBody.body = [];
|
2081
|
+
this.expect(_tokentype.types.braceL);
|
2082
|
+
while (!this.eat(_tokentype.types.braceR)) {
|
2083
|
+
if (this.eat(_tokentype.types.semi)) continue;
|
2084
|
+
var method = this.startNode();
|
2085
|
+
var isGenerator = this.eat(_tokentype.types.star);
|
2086
|
+
var isMaybeStatic = this.type === _tokentype.types.name && this.value === "static";
|
2087
|
+
this.parsePropertyName(method);
|
2088
|
+
method["static"] = isMaybeStatic && this.type !== _tokentype.types.parenL;
|
2089
|
+
if (method["static"]) {
|
2090
|
+
if (isGenerator) this.unexpected();
|
2091
|
+
isGenerator = this.eat(_tokentype.types.star);
|
2092
|
+
this.parsePropertyName(method);
|
2093
|
+
}
|
2094
|
+
method.kind = "method";
|
2095
|
+
var isGetSet = false;
|
2096
|
+
if (!method.computed) {
|
2097
|
+
var key = method.key;
|
2098
|
+
|
2099
|
+
if (!isGenerator && key.type === "Identifier" && this.type !== _tokentype.types.parenL && (key.name === "get" || key.name === "set")) {
|
2100
|
+
isGetSet = true;
|
2101
|
+
method.kind = key.name;
|
2102
|
+
key = this.parsePropertyName(method);
|
2103
|
+
}
|
2104
|
+
if (!method["static"] && (key.type === "Identifier" && key.name === "constructor" || key.type === "Literal" && key.value === "constructor")) {
|
2105
|
+
if (hadConstructor) this.raise(key.start, "Duplicate constructor in the same class");
|
2106
|
+
if (isGetSet) this.raise(key.start, "Constructor can't have get/set modifier");
|
2107
|
+
if (isGenerator) this.raise(key.start, "Constructor can't be a generator");
|
2108
|
+
method.kind = "constructor";
|
2109
|
+
hadConstructor = true;
|
2110
|
+
}
|
2111
|
+
}
|
2112
|
+
this.parseClassMethod(classBody, method, isGenerator);
|
2113
|
+
if (isGetSet) {
|
2114
|
+
var paramCount = method.kind === "get" ? 0 : 1;
|
2115
|
+
if (method.value.params.length !== paramCount) {
|
2116
|
+
var start = method.value.start;
|
2117
|
+
if (method.kind === "get") this.raise(start, "getter should have no params");else this.raise(start, "setter should have exactly one param");
|
2118
|
+
}
|
2119
|
+
}
|
2120
|
+
}
|
2121
|
+
node.body = this.finishNode(classBody, "ClassBody");
|
2122
|
+
return this.finishNode(node, isStatement ? "ClassDeclaration" : "ClassExpression");
|
2123
|
+
};
|
2124
|
+
|
2125
|
+
pp.parseClassMethod = function (classBody, method, isGenerator) {
|
2126
|
+
method.value = this.parseMethod(isGenerator);
|
2127
|
+
classBody.body.push(this.finishNode(method, "MethodDefinition"));
|
2128
|
+
};
|
2129
|
+
|
2130
|
+
pp.parseClassId = function (node, isStatement) {
|
2131
|
+
node.id = this.type === _tokentype.types.name ? this.parseIdent() : isStatement ? this.unexpected() : null;
|
2132
|
+
};
|
2133
|
+
|
2134
|
+
pp.parseClassSuper = function (node) {
|
2135
|
+
node.superClass = this.eat(_tokentype.types._extends) ? this.parseExprSubscripts() : null;
|
2136
|
+
};
|
2137
|
+
|
2138
|
+
// Parses module export declaration.
|
2139
|
+
|
2140
|
+
pp.parseExport = function (node) {
|
2141
|
+
this.next();
|
2142
|
+
// export * from '...'
|
2143
|
+
if (this.eat(_tokentype.types.star)) {
|
2144
|
+
this.expectContextual("from");
|
2145
|
+
node.source = this.type === _tokentype.types.string ? this.parseExprAtom() : this.unexpected();
|
2146
|
+
this.semicolon();
|
2147
|
+
return this.finishNode(node, "ExportAllDeclaration");
|
2148
|
+
}
|
2149
|
+
if (this.eat(_tokentype.types._default)) {
|
2150
|
+
// export default ...
|
2151
|
+
var expr = this.parseMaybeAssign();
|
2152
|
+
var needsSemi = true;
|
2153
|
+
if (expr.type == "FunctionExpression" || expr.type == "ClassExpression") {
|
2154
|
+
needsSemi = false;
|
2155
|
+
if (expr.id) {
|
2156
|
+
expr.type = expr.type == "FunctionExpression" ? "FunctionDeclaration" : "ClassDeclaration";
|
2157
|
+
}
|
2158
|
+
}
|
2159
|
+
node.declaration = expr;
|
2160
|
+
if (needsSemi) this.semicolon();
|
2161
|
+
return this.finishNode(node, "ExportDefaultDeclaration");
|
2162
|
+
}
|
2163
|
+
// export var|const|let|function|class ...
|
2164
|
+
if (this.shouldParseExportStatement()) {
|
2165
|
+
node.declaration = this.parseStatement(true);
|
2166
|
+
node.specifiers = [];
|
2167
|
+
node.source = null;
|
2168
|
+
} else {
|
2169
|
+
// export { x, y as z } [from '...']
|
2170
|
+
node.declaration = null;
|
2171
|
+
node.specifiers = this.parseExportSpecifiers();
|
2172
|
+
if (this.eatContextual("from")) {
|
2173
|
+
node.source = this.type === _tokentype.types.string ? this.parseExprAtom() : this.unexpected();
|
2174
|
+
} else {
|
2175
|
+
// check for keywords used as local names
|
2176
|
+
for (var i = 0; i < node.specifiers.length; i++) {
|
2177
|
+
if (this.keywords.test(node.specifiers[i].local.name) || this.reservedWords.test(node.specifiers[i].local.name)) {
|
2178
|
+
this.unexpected(node.specifiers[i].local.start);
|
2179
|
+
}
|
2180
|
+
}
|
2181
|
+
|
2182
|
+
node.source = null;
|
2183
|
+
}
|
2184
|
+
this.semicolon();
|
2185
|
+
}
|
2186
|
+
return this.finishNode(node, "ExportNamedDeclaration");
|
2187
|
+
};
|
2188
|
+
|
2189
|
+
pp.shouldParseExportStatement = function () {
|
2190
|
+
return this.type.keyword;
|
2191
|
+
};
|
2192
|
+
|
2193
|
+
// Parses a comma-separated list of module exports.
|
2194
|
+
|
2195
|
+
pp.parseExportSpecifiers = function () {
|
2196
|
+
var nodes = [],
|
2197
|
+
first = true;
|
2198
|
+
// export { x, y as z } [from '...']
|
2199
|
+
this.expect(_tokentype.types.braceL);
|
2200
|
+
while (!this.eat(_tokentype.types.braceR)) {
|
2201
|
+
if (!first) {
|
2202
|
+
this.expect(_tokentype.types.comma);
|
2203
|
+
if (this.afterTrailingComma(_tokentype.types.braceR)) break;
|
2204
|
+
} else first = false;
|
2205
|
+
|
2206
|
+
var node = this.startNode();
|
2207
|
+
node.local = this.parseIdent(this.type === _tokentype.types._default);
|
2208
|
+
node.exported = this.eatContextual("as") ? this.parseIdent(true) : node.local;
|
2209
|
+
nodes.push(this.finishNode(node, "ExportSpecifier"));
|
2210
|
+
}
|
2211
|
+
return nodes;
|
2212
|
+
};
|
2213
|
+
|
2214
|
+
// Parses import declaration.
|
2215
|
+
|
2216
|
+
pp.parseImport = function (node) {
|
2217
|
+
this.next();
|
2218
|
+
// import '...'
|
2219
|
+
if (this.type === _tokentype.types.string) {
|
2220
|
+
node.specifiers = empty;
|
2221
|
+
node.source = this.parseExprAtom();
|
2222
|
+
} else {
|
2223
|
+
node.specifiers = this.parseImportSpecifiers();
|
2224
|
+
this.expectContextual("from");
|
2225
|
+
node.source = this.type === _tokentype.types.string ? this.parseExprAtom() : this.unexpected();
|
2226
|
+
}
|
2227
|
+
this.semicolon();
|
2228
|
+
return this.finishNode(node, "ImportDeclaration");
|
2229
|
+
};
|
2230
|
+
|
2231
|
+
// Parses a comma-separated list of module imports.
|
2232
|
+
|
2233
|
+
pp.parseImportSpecifiers = function () {
|
2234
|
+
var nodes = [],
|
2235
|
+
first = true;
|
2236
|
+
if (this.type === _tokentype.types.name) {
|
2237
|
+
// import defaultObj, { x, y as z } from '...'
|
2238
|
+
var node = this.startNode();
|
2239
|
+
node.local = this.parseIdent();
|
2240
|
+
this.checkLVal(node.local, true);
|
2241
|
+
nodes.push(this.finishNode(node, "ImportDefaultSpecifier"));
|
2242
|
+
if (!this.eat(_tokentype.types.comma)) return nodes;
|
2243
|
+
}
|
2244
|
+
if (this.type === _tokentype.types.star) {
|
2245
|
+
var node = this.startNode();
|
2246
|
+
this.next();
|
2247
|
+
this.expectContextual("as");
|
2248
|
+
node.local = this.parseIdent();
|
2249
|
+
this.checkLVal(node.local, true);
|
2250
|
+
nodes.push(this.finishNode(node, "ImportNamespaceSpecifier"));
|
2251
|
+
return nodes;
|
2252
|
+
}
|
2253
|
+
this.expect(_tokentype.types.braceL);
|
2254
|
+
while (!this.eat(_tokentype.types.braceR)) {
|
2255
|
+
if (!first) {
|
2256
|
+
this.expect(_tokentype.types.comma);
|
2257
|
+
if (this.afterTrailingComma(_tokentype.types.braceR)) break;
|
2258
|
+
} else first = false;
|
2259
|
+
|
2260
|
+
var node = this.startNode();
|
2261
|
+
node.imported = this.parseIdent(true);
|
2262
|
+
node.local = this.eatContextual("as") ? this.parseIdent() : node.imported;
|
2263
|
+
this.checkLVal(node.local, true);
|
2264
|
+
nodes.push(this.finishNode(node, "ImportSpecifier"));
|
2265
|
+
}
|
2266
|
+
return nodes;
|
2267
|
+
};
|
2268
|
+
|
2269
|
+
},{"./state":10,"./tokentype":14,"./whitespace":16}],12:[function(_dereq_,module,exports){
|
2270
|
+
// The algorithm used to determine whether a regexp can appear at a
|
2271
|
+
// given point in the program is loosely based on sweet.js' approach.
|
2272
|
+
// See https://github.com/mozilla/sweet.js/wiki/design
|
2273
|
+
|
2274
|
+
"use strict";
|
2275
|
+
|
2276
|
+
exports.__esModule = true;
|
2277
|
+
|
2278
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2279
|
+
|
2280
|
+
var _state = _dereq_("./state");
|
2281
|
+
|
2282
|
+
var _tokentype = _dereq_("./tokentype");
|
2283
|
+
|
2284
|
+
var _whitespace = _dereq_("./whitespace");
|
2285
|
+
|
2286
|
+
var TokContext = function TokContext(token, isExpr, preserveSpace, override) {
|
2287
|
+
_classCallCheck(this, TokContext);
|
2288
|
+
|
2289
|
+
this.token = token;
|
2290
|
+
this.isExpr = !!isExpr;
|
2291
|
+
this.preserveSpace = !!preserveSpace;
|
2292
|
+
this.override = override;
|
2293
|
+
};
|
2294
|
+
|
2295
|
+
exports.TokContext = TokContext;
|
2296
|
+
var types = {
|
2297
|
+
b_stat: new TokContext("{", false),
|
2298
|
+
b_expr: new TokContext("{", true),
|
2299
|
+
b_tmpl: new TokContext("${", true),
|
2300
|
+
p_stat: new TokContext("(", false),
|
2301
|
+
p_expr: new TokContext("(", true),
|
2302
|
+
q_tmpl: new TokContext("`", true, true, function (p) {
|
2303
|
+
return p.readTmplToken();
|
2304
|
+
}),
|
2305
|
+
f_expr: new TokContext("function", true)
|
2306
|
+
};
|
2307
|
+
|
2308
|
+
exports.types = types;
|
2309
|
+
var pp = _state.Parser.prototype;
|
2310
|
+
|
2311
|
+
pp.initialContext = function () {
|
2312
|
+
return [types.b_stat];
|
2313
|
+
};
|
2314
|
+
|
2315
|
+
pp.braceIsBlock = function (prevType) {
|
2316
|
+
if (prevType === _tokentype.types.colon) {
|
2317
|
+
var _parent = this.curContext();
|
2318
|
+
if (_parent === types.b_stat || _parent === types.b_expr) return !_parent.isExpr;
|
2319
|
+
}
|
2320
|
+
if (prevType === _tokentype.types._return) return _whitespace.lineBreak.test(this.input.slice(this.lastTokEnd, this.start));
|
2321
|
+
if (prevType === _tokentype.types._else || prevType === _tokentype.types.semi || prevType === _tokentype.types.eof || prevType === _tokentype.types.parenR) return true;
|
2322
|
+
if (prevType == _tokentype.types.braceL) return this.curContext() === types.b_stat;
|
2323
|
+
return !this.exprAllowed;
|
2324
|
+
};
|
2325
|
+
|
2326
|
+
pp.updateContext = function (prevType) {
|
2327
|
+
var update = undefined,
|
2328
|
+
type = this.type;
|
2329
|
+
if (type.keyword && prevType == _tokentype.types.dot) this.exprAllowed = false;else if (update = type.updateContext) update.call(this, prevType);else this.exprAllowed = type.beforeExpr;
|
2330
|
+
};
|
2331
|
+
|
2332
|
+
// Token-specific context update code
|
2333
|
+
|
2334
|
+
_tokentype.types.parenR.updateContext = _tokentype.types.braceR.updateContext = function () {
|
2335
|
+
if (this.context.length == 1) {
|
2336
|
+
this.exprAllowed = true;
|
2337
|
+
return;
|
2338
|
+
}
|
2339
|
+
var out = this.context.pop();
|
2340
|
+
if (out === types.b_stat && this.curContext() === types.f_expr) {
|
2341
|
+
this.context.pop();
|
2342
|
+
this.exprAllowed = false;
|
2343
|
+
} else if (out === types.b_tmpl) {
|
2344
|
+
this.exprAllowed = true;
|
2345
|
+
} else {
|
2346
|
+
this.exprAllowed = !out.isExpr;
|
2347
|
+
}
|
2348
|
+
};
|
2349
|
+
|
2350
|
+
_tokentype.types.braceL.updateContext = function (prevType) {
|
2351
|
+
this.context.push(this.braceIsBlock(prevType) ? types.b_stat : types.b_expr);
|
2352
|
+
this.exprAllowed = true;
|
2353
|
+
};
|
2354
|
+
|
2355
|
+
_tokentype.types.dollarBraceL.updateContext = function () {
|
2356
|
+
this.context.push(types.b_tmpl);
|
2357
|
+
this.exprAllowed = true;
|
2358
|
+
};
|
2359
|
+
|
2360
|
+
_tokentype.types.parenL.updateContext = function (prevType) {
|
2361
|
+
var statementParens = prevType === _tokentype.types._if || prevType === _tokentype.types._for || prevType === _tokentype.types._with || prevType === _tokentype.types._while;
|
2362
|
+
this.context.push(statementParens ? types.p_stat : types.p_expr);
|
2363
|
+
this.exprAllowed = true;
|
2364
|
+
};
|
2365
|
+
|
2366
|
+
_tokentype.types.incDec.updateContext = function () {
|
2367
|
+
// tokExprAllowed stays unchanged
|
2368
|
+
};
|
2369
|
+
|
2370
|
+
_tokentype.types._function.updateContext = function () {
|
2371
|
+
if (this.curContext() !== types.b_stat) this.context.push(types.f_expr);
|
2372
|
+
this.exprAllowed = false;
|
2373
|
+
};
|
2374
|
+
|
2375
|
+
_tokentype.types.backQuote.updateContext = function () {
|
2376
|
+
if (this.curContext() === types.q_tmpl) this.context.pop();else this.context.push(types.q_tmpl);
|
2377
|
+
this.exprAllowed = false;
|
2378
|
+
};
|
2379
|
+
|
2380
|
+
},{"./state":10,"./tokentype":14,"./whitespace":16}],13:[function(_dereq_,module,exports){
|
2381
|
+
"use strict";
|
2382
|
+
|
2383
|
+
exports.__esModule = true;
|
2384
|
+
|
2385
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2386
|
+
|
2387
|
+
var _identifier = _dereq_("./identifier");
|
2388
|
+
|
2389
|
+
var _tokentype = _dereq_("./tokentype");
|
2390
|
+
|
2391
|
+
var _state = _dereq_("./state");
|
2392
|
+
|
2393
|
+
var _locutil = _dereq_("./locutil");
|
2394
|
+
|
2395
|
+
var _whitespace = _dereq_("./whitespace");
|
2396
|
+
|
2397
|
+
// Object type used to represent tokens. Note that normally, tokens
|
2398
|
+
// simply exist as properties on the parser object. This is only
|
2399
|
+
// used for the onToken callback and the external tokenizer.
|
2400
|
+
|
2401
|
+
var Token = function Token(p) {
|
2402
|
+
_classCallCheck(this, Token);
|
2403
|
+
|
2404
|
+
this.type = p.type;
|
2405
|
+
this.value = p.value;
|
2406
|
+
this.start = p.start;
|
2407
|
+
this.end = p.end;
|
2408
|
+
if (p.options.locations) this.loc = new _locutil.SourceLocation(p, p.startLoc, p.endLoc);
|
2409
|
+
if (p.options.ranges) this.range = [p.start, p.end];
|
2410
|
+
}
|
2411
|
+
|
2412
|
+
// ## Tokenizer
|
2413
|
+
|
2414
|
+
;
|
2415
|
+
|
2416
|
+
exports.Token = Token;
|
2417
|
+
var pp = _state.Parser.prototype;
|
2418
|
+
|
2419
|
+
// Are we running under Rhino?
|
2420
|
+
var isRhino = typeof Packages == "object" && Object.prototype.toString.call(Packages) == "[object JavaPackage]";
|
2421
|
+
|
2422
|
+
// Move to the next token
|
2423
|
+
|
2424
|
+
pp.next = function () {
|
2425
|
+
if (this.options.onToken) this.options.onToken(new Token(this));
|
2426
|
+
|
2427
|
+
this.lastTokEnd = this.end;
|
2428
|
+
this.lastTokStart = this.start;
|
2429
|
+
this.lastTokEndLoc = this.endLoc;
|
2430
|
+
this.lastTokStartLoc = this.startLoc;
|
2431
|
+
this.nextToken();
|
2432
|
+
};
|
2433
|
+
|
2434
|
+
pp.getToken = function () {
|
2435
|
+
this.next();
|
2436
|
+
return new Token(this);
|
2437
|
+
};
|
2438
|
+
|
2439
|
+
// If we're in an ES6 environment, make parsers iterable
|
2440
|
+
if (typeof Symbol !== "undefined") pp[Symbol.iterator] = function () {
|
2441
|
+
var self = this;
|
2442
|
+
return { next: function next() {
|
2443
|
+
var token = self.getToken();
|
2444
|
+
return {
|
2445
|
+
done: token.type === _tokentype.types.eof,
|
2446
|
+
value: token
|
2447
|
+
};
|
2448
|
+
} };
|
2449
|
+
};
|
2450
|
+
|
2451
|
+
// Toggle strict mode. Re-reads the next number or string to please
|
2452
|
+
// pedantic tests (`"use strict"; 010;` should fail).
|
2453
|
+
|
2454
|
+
pp.setStrict = function (strict) {
|
2455
|
+
this.strict = strict;
|
2456
|
+
if (this.type !== _tokentype.types.num && this.type !== _tokentype.types.string) return;
|
2457
|
+
this.pos = this.start;
|
2458
|
+
if (this.options.locations) {
|
2459
|
+
while (this.pos < this.lineStart) {
|
2460
|
+
this.lineStart = this.input.lastIndexOf("\n", this.lineStart - 2) + 1;
|
2461
|
+
--this.curLine;
|
2462
|
+
}
|
2463
|
+
}
|
2464
|
+
this.nextToken();
|
2465
|
+
};
|
2466
|
+
|
2467
|
+
pp.curContext = function () {
|
2468
|
+
return this.context[this.context.length - 1];
|
2469
|
+
};
|
2470
|
+
|
2471
|
+
// Read a single token, updating the parser object's token-related
|
2472
|
+
// properties.
|
2473
|
+
|
2474
|
+
pp.nextToken = function () {
|
2475
|
+
var curContext = this.curContext();
|
2476
|
+
if (!curContext || !curContext.preserveSpace) this.skipSpace();
|
2477
|
+
|
2478
|
+
this.start = this.pos;
|
2479
|
+
if (this.options.locations) this.startLoc = this.curPosition();
|
2480
|
+
if (this.pos >= this.input.length) return this.finishToken(_tokentype.types.eof);
|
2481
|
+
|
2482
|
+
if (curContext.override) return curContext.override(this);else this.readToken(this.fullCharCodeAtPos());
|
2483
|
+
};
|
2484
|
+
|
2485
|
+
pp.readToken = function (code) {
|
2486
|
+
// Identifier or keyword. '\uXXXX' sequences are allowed in
|
2487
|
+
// identifiers, so '\' also dispatches to that.
|
2488
|
+
if (_identifier.isIdentifierStart(code, this.options.ecmaVersion >= 6) || code === 92 /* '\' */) return this.readWord();
|
2489
|
+
|
2490
|
+
return this.getTokenFromCode(code);
|
2491
|
+
};
|
2492
|
+
|
2493
|
+
pp.fullCharCodeAtPos = function () {
|
2494
|
+
var code = this.input.charCodeAt(this.pos);
|
2495
|
+
if (code <= 0xd7ff || code >= 0xe000) return code;
|
2496
|
+
var next = this.input.charCodeAt(this.pos + 1);
|
2497
|
+
return (code << 10) + next - 0x35fdc00;
|
2498
|
+
};
|
2499
|
+
|
2500
|
+
pp.skipBlockComment = function () {
|
2501
|
+
var startLoc = this.options.onComment && this.curPosition();
|
2502
|
+
var start = this.pos,
|
2503
|
+
end = this.input.indexOf("*/", this.pos += 2);
|
2504
|
+
if (end === -1) this.raise(this.pos - 2, "Unterminated comment");
|
2505
|
+
this.pos = end + 2;
|
2506
|
+
if (this.options.locations) {
|
2507
|
+
_whitespace.lineBreakG.lastIndex = start;
|
2508
|
+
var match = undefined;
|
2509
|
+
while ((match = _whitespace.lineBreakG.exec(this.input)) && match.index < this.pos) {
|
2510
|
+
++this.curLine;
|
2511
|
+
this.lineStart = match.index + match[0].length;
|
2512
|
+
}
|
2513
|
+
}
|
2514
|
+
if (this.options.onComment) this.options.onComment(true, this.input.slice(start + 2, end), start, this.pos, startLoc, this.curPosition());
|
2515
|
+
};
|
2516
|
+
|
2517
|
+
pp.skipLineComment = function (startSkip) {
|
2518
|
+
var start = this.pos;
|
2519
|
+
var startLoc = this.options.onComment && this.curPosition();
|
2520
|
+
var ch = this.input.charCodeAt(this.pos += startSkip);
|
2521
|
+
while (this.pos < this.input.length && ch !== 10 && ch !== 13 && ch !== 8232 && ch !== 8233) {
|
2522
|
+
++this.pos;
|
2523
|
+
ch = this.input.charCodeAt(this.pos);
|
2524
|
+
}
|
2525
|
+
if (this.options.onComment) this.options.onComment(false, this.input.slice(start + startSkip, this.pos), start, this.pos, startLoc, this.curPosition());
|
2526
|
+
};
|
2527
|
+
|
2528
|
+
// Called at the start of the parse and after every token. Skips
|
2529
|
+
// whitespace and comments, and.
|
2530
|
+
|
2531
|
+
pp.skipSpace = function () {
|
2532
|
+
loop: while (this.pos < this.input.length) {
|
2533
|
+
var ch = this.input.charCodeAt(this.pos);
|
2534
|
+
switch (ch) {
|
2535
|
+
case 32:case 160:
|
2536
|
+
// ' '
|
2537
|
+
++this.pos;
|
2538
|
+
break;
|
2539
|
+
case 13:
|
2540
|
+
if (this.input.charCodeAt(this.pos + 1) === 10) {
|
2541
|
+
++this.pos;
|
2542
|
+
}
|
2543
|
+
case 10:case 8232:case 8233:
|
2544
|
+
++this.pos;
|
2545
|
+
if (this.options.locations) {
|
2546
|
+
++this.curLine;
|
2547
|
+
this.lineStart = this.pos;
|
2548
|
+
}
|
2549
|
+
break;
|
2550
|
+
case 47:
|
2551
|
+
// '/'
|
2552
|
+
switch (this.input.charCodeAt(this.pos + 1)) {
|
2553
|
+
case 42:
|
2554
|
+
// '*'
|
2555
|
+
this.skipBlockComment();
|
2556
|
+
break;
|
2557
|
+
case 47:
|
2558
|
+
this.skipLineComment(2);
|
2559
|
+
break;
|
2560
|
+
default:
|
2561
|
+
break loop;
|
2562
|
+
}
|
2563
|
+
break;
|
2564
|
+
default:
|
2565
|
+
if (ch > 8 && ch < 14 || ch >= 5760 && _whitespace.nonASCIIwhitespace.test(String.fromCharCode(ch))) {
|
2566
|
+
++this.pos;
|
2567
|
+
} else {
|
2568
|
+
break loop;
|
2569
|
+
}
|
2570
|
+
}
|
2571
|
+
}
|
2572
|
+
};
|
2573
|
+
|
2574
|
+
// Called at the end of every token. Sets `end`, `val`, and
|
2575
|
+
// maintains `context` and `exprAllowed`, and skips the space after
|
2576
|
+
// the token, so that the next one's `start` will point at the
|
2577
|
+
// right position.
|
2578
|
+
|
2579
|
+
pp.finishToken = function (type, val) {
|
2580
|
+
this.end = this.pos;
|
2581
|
+
if (this.options.locations) this.endLoc = this.curPosition();
|
2582
|
+
var prevType = this.type;
|
2583
|
+
this.type = type;
|
2584
|
+
this.value = val;
|
2585
|
+
|
2586
|
+
this.updateContext(prevType);
|
2587
|
+
};
|
2588
|
+
|
2589
|
+
// ### Token reading
|
2590
|
+
|
2591
|
+
// This is the function that is called to fetch the next token. It
|
2592
|
+
// is somewhat obscure, because it works in character codes rather
|
2593
|
+
// than characters, and because operator parsing has been inlined
|
2594
|
+
// into it.
|
2595
|
+
//
|
2596
|
+
// All in the name of speed.
|
2597
|
+
//
|
2598
|
+
pp.readToken_dot = function () {
|
2599
|
+
var next = this.input.charCodeAt(this.pos + 1);
|
2600
|
+
if (next >= 48 && next <= 57) return this.readNumber(true);
|
2601
|
+
var next2 = this.input.charCodeAt(this.pos + 2);
|
2602
|
+
if (this.options.ecmaVersion >= 6 && next === 46 && next2 === 46) {
|
2603
|
+
// 46 = dot '.'
|
2604
|
+
this.pos += 3;
|
2605
|
+
return this.finishToken(_tokentype.types.ellipsis);
|
2606
|
+
} else {
|
2607
|
+
++this.pos;
|
2608
|
+
return this.finishToken(_tokentype.types.dot);
|
2609
|
+
}
|
2610
|
+
};
|
2611
|
+
|
2612
|
+
pp.readToken_slash = function () {
|
2613
|
+
// '/'
|
2614
|
+
var next = this.input.charCodeAt(this.pos + 1);
|
2615
|
+
if (this.exprAllowed) {
|
2616
|
+
++this.pos;return this.readRegexp();
|
2617
|
+
}
|
2618
|
+
if (next === 61) return this.finishOp(_tokentype.types.assign, 2);
|
2619
|
+
return this.finishOp(_tokentype.types.slash, 1);
|
2620
|
+
};
|
2621
|
+
|
2622
|
+
pp.readToken_mult_modulo = function (code) {
|
2623
|
+
// '%*'
|
2624
|
+
var next = this.input.charCodeAt(this.pos + 1);
|
2625
|
+
if (next === 61) return this.finishOp(_tokentype.types.assign, 2);
|
2626
|
+
return this.finishOp(code === 42 ? _tokentype.types.star : _tokentype.types.modulo, 1);
|
2627
|
+
};
|
2628
|
+
|
2629
|
+
pp.readToken_pipe_amp = function (code) {
|
2630
|
+
// '|&'
|
2631
|
+
var next = this.input.charCodeAt(this.pos + 1);
|
2632
|
+
if (next === code) return this.finishOp(code === 124 ? _tokentype.types.logicalOR : _tokentype.types.logicalAND, 2);
|
2633
|
+
if (next === 61) return this.finishOp(_tokentype.types.assign, 2);
|
2634
|
+
return this.finishOp(code === 124 ? _tokentype.types.bitwiseOR : _tokentype.types.bitwiseAND, 1);
|
2635
|
+
};
|
2636
|
+
|
2637
|
+
pp.readToken_caret = function () {
|
2638
|
+
// '^'
|
2639
|
+
var next = this.input.charCodeAt(this.pos + 1);
|
2640
|
+
if (next === 61) return this.finishOp(_tokentype.types.assign, 2);
|
2641
|
+
return this.finishOp(_tokentype.types.bitwiseXOR, 1);
|
2642
|
+
};
|
2643
|
+
|
2644
|
+
pp.readToken_plus_min = function (code) {
|
2645
|
+
// '+-'
|
2646
|
+
var next = this.input.charCodeAt(this.pos + 1);
|
2647
|
+
if (next === code) {
|
2648
|
+
if (next == 45 && this.input.charCodeAt(this.pos + 2) == 62 && _whitespace.lineBreak.test(this.input.slice(this.lastTokEnd, this.pos))) {
|
2649
|
+
// A `-->` line comment
|
2650
|
+
this.skipLineComment(3);
|
2651
|
+
this.skipSpace();
|
2652
|
+
return this.nextToken();
|
2653
|
+
}
|
2654
|
+
return this.finishOp(_tokentype.types.incDec, 2);
|
2655
|
+
}
|
2656
|
+
if (next === 61) return this.finishOp(_tokentype.types.assign, 2);
|
2657
|
+
return this.finishOp(_tokentype.types.plusMin, 1);
|
2658
|
+
};
|
2659
|
+
|
2660
|
+
pp.readToken_lt_gt = function (code) {
|
2661
|
+
// '<>'
|
2662
|
+
var next = this.input.charCodeAt(this.pos + 1);
|
2663
|
+
var size = 1;
|
2664
|
+
if (next === code) {
|
2665
|
+
size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;
|
2666
|
+
if (this.input.charCodeAt(this.pos + size) === 61) return this.finishOp(_tokentype.types.assign, size + 1);
|
2667
|
+
return this.finishOp(_tokentype.types.bitShift, size);
|
2668
|
+
}
|
2669
|
+
if (next == 33 && code == 60 && this.input.charCodeAt(this.pos + 2) == 45 && this.input.charCodeAt(this.pos + 3) == 45) {
|
2670
|
+
if (this.inModule) this.unexpected();
|
2671
|
+
// `<!--`, an XML-style comment that should be interpreted as a line comment
|
2672
|
+
this.skipLineComment(4);
|
2673
|
+
this.skipSpace();
|
2674
|
+
return this.nextToken();
|
2675
|
+
}
|
2676
|
+
if (next === 61) size = this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2;
|
2677
|
+
return this.finishOp(_tokentype.types.relational, size);
|
2678
|
+
};
|
2679
|
+
|
2680
|
+
pp.readToken_eq_excl = function (code) {
|
2681
|
+
// '=!'
|
2682
|
+
var next = this.input.charCodeAt(this.pos + 1);
|
2683
|
+
if (next === 61) return this.finishOp(_tokentype.types.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2);
|
2684
|
+
if (code === 61 && next === 62 && this.options.ecmaVersion >= 6) {
|
2685
|
+
// '=>'
|
2686
|
+
this.pos += 2;
|
2687
|
+
return this.finishToken(_tokentype.types.arrow);
|
2688
|
+
}
|
2689
|
+
return this.finishOp(code === 61 ? _tokentype.types.eq : _tokentype.types.prefix, 1);
|
2690
|
+
};
|
2691
|
+
|
2692
|
+
pp.getTokenFromCode = function (code) {
|
2693
|
+
switch (code) {
|
2694
|
+
// The interpretation of a dot depends on whether it is followed
|
2695
|
+
// by a digit or another two dots.
|
2696
|
+
case 46:
|
2697
|
+
// '.'
|
2698
|
+
return this.readToken_dot();
|
2699
|
+
|
2700
|
+
// Punctuation tokens.
|
2701
|
+
case 40:
|
2702
|
+
++this.pos;return this.finishToken(_tokentype.types.parenL);
|
2703
|
+
case 41:
|
2704
|
+
++this.pos;return this.finishToken(_tokentype.types.parenR);
|
2705
|
+
case 59:
|
2706
|
+
++this.pos;return this.finishToken(_tokentype.types.semi);
|
2707
|
+
case 44:
|
2708
|
+
++this.pos;return this.finishToken(_tokentype.types.comma);
|
2709
|
+
case 91:
|
2710
|
+
++this.pos;return this.finishToken(_tokentype.types.bracketL);
|
2711
|
+
case 93:
|
2712
|
+
++this.pos;return this.finishToken(_tokentype.types.bracketR);
|
2713
|
+
case 123:
|
2714
|
+
++this.pos;return this.finishToken(_tokentype.types.braceL);
|
2715
|
+
case 125:
|
2716
|
+
++this.pos;return this.finishToken(_tokentype.types.braceR);
|
2717
|
+
case 58:
|
2718
|
+
++this.pos;return this.finishToken(_tokentype.types.colon);
|
2719
|
+
case 63:
|
2720
|
+
++this.pos;return this.finishToken(_tokentype.types.question);
|
2721
|
+
|
2722
|
+
case 96:
|
2723
|
+
// '`'
|
2724
|
+
if (this.options.ecmaVersion < 6) break;
|
2725
|
+
++this.pos;
|
2726
|
+
return this.finishToken(_tokentype.types.backQuote);
|
2727
|
+
|
2728
|
+
case 48:
|
2729
|
+
// '0'
|
2730
|
+
var next = this.input.charCodeAt(this.pos + 1);
|
2731
|
+
if (next === 120 || next === 88) return this.readRadixNumber(16); // '0x', '0X' - hex number
|
2732
|
+
if (this.options.ecmaVersion >= 6) {
|
2733
|
+
if (next === 111 || next === 79) return this.readRadixNumber(8); // '0o', '0O' - octal number
|
2734
|
+
if (next === 98 || next === 66) return this.readRadixNumber(2); // '0b', '0B' - binary number
|
2735
|
+
}
|
2736
|
+
// Anything else beginning with a digit is an integer, octal
|
2737
|
+
// number, or float.
|
2738
|
+
case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:
|
2739
|
+
// 1-9
|
2740
|
+
return this.readNumber(false);
|
2741
|
+
|
2742
|
+
// Quotes produce strings.
|
2743
|
+
case 34:case 39:
|
2744
|
+
// '"', "'"
|
2745
|
+
return this.readString(code);
|
2746
|
+
|
2747
|
+
// Operators are parsed inline in tiny state machines. '=' (61) is
|
2748
|
+
// often referred to. `finishOp` simply skips the amount of
|
2749
|
+
// characters it is given as second argument, and returns a token
|
2750
|
+
// of the type given by its first argument.
|
2751
|
+
|
2752
|
+
case 47:
|
2753
|
+
// '/'
|
2754
|
+
return this.readToken_slash();
|
2755
|
+
|
2756
|
+
case 37:case 42:
|
2757
|
+
// '%*'
|
2758
|
+
return this.readToken_mult_modulo(code);
|
2759
|
+
|
2760
|
+
case 124:case 38:
|
2761
|
+
// '|&'
|
2762
|
+
return this.readToken_pipe_amp(code);
|
2763
|
+
|
2764
|
+
case 94:
|
2765
|
+
// '^'
|
2766
|
+
return this.readToken_caret();
|
2767
|
+
|
2768
|
+
case 43:case 45:
|
2769
|
+
// '+-'
|
2770
|
+
return this.readToken_plus_min(code);
|
2771
|
+
|
2772
|
+
case 60:case 62:
|
2773
|
+
// '<>'
|
2774
|
+
return this.readToken_lt_gt(code);
|
2775
|
+
|
2776
|
+
case 61:case 33:
|
2777
|
+
// '=!'
|
2778
|
+
return this.readToken_eq_excl(code);
|
2779
|
+
|
2780
|
+
case 126:
|
2781
|
+
// '~'
|
2782
|
+
return this.finishOp(_tokentype.types.prefix, 1);
|
2783
|
+
}
|
2784
|
+
|
2785
|
+
this.raise(this.pos, "Unexpected character '" + codePointToString(code) + "'");
|
2786
|
+
};
|
2787
|
+
|
2788
|
+
pp.finishOp = function (type, size) {
|
2789
|
+
var str = this.input.slice(this.pos, this.pos + size);
|
2790
|
+
this.pos += size;
|
2791
|
+
return this.finishToken(type, str);
|
2792
|
+
};
|
2793
|
+
|
2794
|
+
// Parse a regular expression. Some context-awareness is necessary,
|
2795
|
+
// since a '/' inside a '[]' set does not end the expression.
|
2796
|
+
|
2797
|
+
function tryCreateRegexp(src, flags, throwErrorAt, parser) {
|
2798
|
+
try {
|
2799
|
+
return new RegExp(src, flags);
|
2800
|
+
} catch (e) {
|
2801
|
+
if (throwErrorAt !== undefined) {
|
2802
|
+
if (e instanceof SyntaxError) parser.raise(throwErrorAt, "Error parsing regular expression: " + e.message);
|
2803
|
+
throw e;
|
2804
|
+
}
|
2805
|
+
}
|
2806
|
+
}
|
2807
|
+
|
2808
|
+
var regexpUnicodeSupport = !!tryCreateRegexp("", "u");
|
2809
|
+
|
2810
|
+
pp.readRegexp = function () {
|
2811
|
+
var _this = this;
|
2812
|
+
|
2813
|
+
var escaped = undefined,
|
2814
|
+
inClass = undefined,
|
2815
|
+
start = this.pos;
|
2816
|
+
for (;;) {
|
2817
|
+
if (this.pos >= this.input.length) this.raise(start, "Unterminated regular expression");
|
2818
|
+
var ch = this.input.charAt(this.pos);
|
2819
|
+
if (_whitespace.lineBreak.test(ch)) this.raise(start, "Unterminated regular expression");
|
2820
|
+
if (!escaped) {
|
2821
|
+
if (ch === "[") inClass = true;else if (ch === "]" && inClass) inClass = false;else if (ch === "/" && !inClass) break;
|
2822
|
+
escaped = ch === "\\";
|
2823
|
+
} else escaped = false;
|
2824
|
+
++this.pos;
|
2825
|
+
}
|
2826
|
+
var content = this.input.slice(start, this.pos);
|
2827
|
+
++this.pos;
|
2828
|
+
// Need to use `readWord1` because '\uXXXX' sequences are allowed
|
2829
|
+
// here (don't ask).
|
2830
|
+
var mods = this.readWord1();
|
2831
|
+
var tmp = content;
|
2832
|
+
if (mods) {
|
2833
|
+
var validFlags = /^[gmsiy]*$/;
|
2834
|
+
if (this.options.ecmaVersion >= 6) validFlags = /^[gmsiyu]*$/;
|
2835
|
+
if (!validFlags.test(mods)) this.raise(start, "Invalid regular expression flag");
|
2836
|
+
if (mods.indexOf('u') >= 0 && !regexpUnicodeSupport) {
|
2837
|
+
// Replace each astral symbol and every Unicode escape sequence that
|
2838
|
+
// possibly represents an astral symbol or a paired surrogate with a
|
2839
|
+
// single ASCII symbol to avoid throwing on regular expressions that
|
2840
|
+
// are only valid in combination with the `/u` flag.
|
2841
|
+
// Note: replacing with the ASCII symbol `x` might cause false
|
2842
|
+
// negatives in unlikely scenarios. For example, `[\u{61}-b]` is a
|
2843
|
+
// perfectly valid pattern that is equivalent to `[a-b]`, but it would
|
2844
|
+
// be replaced by `[x-b]` which throws an error.
|
2845
|
+
tmp = tmp.replace(/\\u\{([0-9a-fA-F]+)\}/g, function (_match, code, offset) {
|
2846
|
+
code = Number("0x" + code);
|
2847
|
+
if (code > 0x10FFFF) _this.raise(start + offset + 3, "Code point out of bounds");
|
2848
|
+
return "x";
|
2849
|
+
});
|
2850
|
+
tmp = tmp.replace(/\\u([a-fA-F0-9]{4})|[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "x");
|
2851
|
+
}
|
2852
|
+
}
|
2853
|
+
// Detect invalid regular expressions.
|
2854
|
+
var value = null;
|
2855
|
+
// Rhino's regular expression parser is flaky and throws uncatchable exceptions,
|
2856
|
+
// so don't do detection if we are running under Rhino
|
2857
|
+
if (!isRhino) {
|
2858
|
+
tryCreateRegexp(tmp, undefined, start, this);
|
2859
|
+
// Get a regular expression object for this pattern-flag pair, or `null` in
|
2860
|
+
// case the current environment doesn't support the flags it uses.
|
2861
|
+
value = tryCreateRegexp(content, mods);
|
2862
|
+
}
|
2863
|
+
return this.finishToken(_tokentype.types.regexp, { pattern: content, flags: mods, value: value });
|
2864
|
+
};
|
2865
|
+
|
2866
|
+
// Read an integer in the given radix. Return null if zero digits
|
2867
|
+
// were read, the integer value otherwise. When `len` is given, this
|
2868
|
+
// will return `null` unless the integer has exactly `len` digits.
|
2869
|
+
|
2870
|
+
pp.readInt = function (radix, len) {
|
2871
|
+
var start = this.pos,
|
2872
|
+
total = 0;
|
2873
|
+
for (var i = 0, e = len == null ? Infinity : len; i < e; ++i) {
|
2874
|
+
var code = this.input.charCodeAt(this.pos),
|
2875
|
+
val = undefined;
|
2876
|
+
if (code >= 97) val = code - 97 + 10; // a
|
2877
|
+
else if (code >= 65) val = code - 65 + 10; // A
|
2878
|
+
else if (code >= 48 && code <= 57) val = code - 48; // 0-9
|
2879
|
+
else val = Infinity;
|
2880
|
+
if (val >= radix) break;
|
2881
|
+
++this.pos;
|
2882
|
+
total = total * radix + val;
|
2883
|
+
}
|
2884
|
+
if (this.pos === start || len != null && this.pos - start !== len) return null;
|
2885
|
+
|
2886
|
+
return total;
|
2887
|
+
};
|
2888
|
+
|
2889
|
+
pp.readRadixNumber = function (radix) {
|
2890
|
+
this.pos += 2; // 0x
|
2891
|
+
var val = this.readInt(radix);
|
2892
|
+
if (val == null) this.raise(this.start + 2, "Expected number in radix " + radix);
|
2893
|
+
if (_identifier.isIdentifierStart(this.fullCharCodeAtPos())) this.raise(this.pos, "Identifier directly after number");
|
2894
|
+
return this.finishToken(_tokentype.types.num, val);
|
2895
|
+
};
|
2896
|
+
|
2897
|
+
// Read an integer, octal integer, or floating-point number.
|
2898
|
+
|
2899
|
+
pp.readNumber = function (startsWithDot) {
|
2900
|
+
var start = this.pos,
|
2901
|
+
isFloat = false,
|
2902
|
+
octal = this.input.charCodeAt(this.pos) === 48;
|
2903
|
+
if (!startsWithDot && this.readInt(10) === null) this.raise(start, "Invalid number");
|
2904
|
+
var next = this.input.charCodeAt(this.pos);
|
2905
|
+
if (next === 46) {
|
2906
|
+
// '.'
|
2907
|
+
++this.pos;
|
2908
|
+
this.readInt(10);
|
2909
|
+
isFloat = true;
|
2910
|
+
next = this.input.charCodeAt(this.pos);
|
2911
|
+
}
|
2912
|
+
if (next === 69 || next === 101) {
|
2913
|
+
// 'eE'
|
2914
|
+
next = this.input.charCodeAt(++this.pos);
|
2915
|
+
if (next === 43 || next === 45) ++this.pos; // '+-'
|
2916
|
+
if (this.readInt(10) === null) this.raise(start, "Invalid number");
|
2917
|
+
isFloat = true;
|
2918
|
+
}
|
2919
|
+
if (_identifier.isIdentifierStart(this.fullCharCodeAtPos())) this.raise(this.pos, "Identifier directly after number");
|
2920
|
+
|
2921
|
+
var str = this.input.slice(start, this.pos),
|
2922
|
+
val = undefined;
|
2923
|
+
if (isFloat) val = parseFloat(str);else if (!octal || str.length === 1) val = parseInt(str, 10);else if (/[89]/.test(str) || this.strict) this.raise(start, "Invalid number");else val = parseInt(str, 8);
|
2924
|
+
return this.finishToken(_tokentype.types.num, val);
|
2925
|
+
};
|
2926
|
+
|
2927
|
+
// Read a string value, interpreting backslash-escapes.
|
2928
|
+
|
2929
|
+
pp.readCodePoint = function () {
|
2930
|
+
var ch = this.input.charCodeAt(this.pos),
|
2931
|
+
code = undefined;
|
2932
|
+
|
2933
|
+
if (ch === 123) {
|
2934
|
+
if (this.options.ecmaVersion < 6) this.unexpected();
|
2935
|
+
var codePos = ++this.pos;
|
2936
|
+
code = this.readHexChar(this.input.indexOf('}', this.pos) - this.pos);
|
2937
|
+
++this.pos;
|
2938
|
+
if (code > 0x10FFFF) this.raise(codePos, "Code point out of bounds");
|
2939
|
+
} else {
|
2940
|
+
code = this.readHexChar(4);
|
2941
|
+
}
|
2942
|
+
return code;
|
2943
|
+
};
|
2944
|
+
|
2945
|
+
function codePointToString(code) {
|
2946
|
+
// UTF-16 Decoding
|
2947
|
+
if (code <= 0xFFFF) return String.fromCharCode(code);
|
2948
|
+
code -= 0x10000;
|
2949
|
+
return String.fromCharCode((code >> 10) + 0xD800, (code & 1023) + 0xDC00);
|
2950
|
+
}
|
2951
|
+
|
2952
|
+
pp.readString = function (quote) {
|
2953
|
+
var out = "",
|
2954
|
+
chunkStart = ++this.pos;
|
2955
|
+
for (;;) {
|
2956
|
+
if (this.pos >= this.input.length) this.raise(this.start, "Unterminated string constant");
|
2957
|
+
var ch = this.input.charCodeAt(this.pos);
|
2958
|
+
if (ch === quote) break;
|
2959
|
+
if (ch === 92) {
|
2960
|
+
// '\'
|
2961
|
+
out += this.input.slice(chunkStart, this.pos);
|
2962
|
+
out += this.readEscapedChar(false);
|
2963
|
+
chunkStart = this.pos;
|
2964
|
+
} else {
|
2965
|
+
if (_whitespace.isNewLine(ch)) this.raise(this.start, "Unterminated string constant");
|
2966
|
+
++this.pos;
|
2967
|
+
}
|
2968
|
+
}
|
2969
|
+
out += this.input.slice(chunkStart, this.pos++);
|
2970
|
+
return this.finishToken(_tokentype.types.string, out);
|
2971
|
+
};
|
2972
|
+
|
2973
|
+
// Reads template string tokens.
|
2974
|
+
|
2975
|
+
pp.readTmplToken = function () {
|
2976
|
+
var out = "",
|
2977
|
+
chunkStart = this.pos;
|
2978
|
+
for (;;) {
|
2979
|
+
if (this.pos >= this.input.length) this.raise(this.start, "Unterminated template");
|
2980
|
+
var ch = this.input.charCodeAt(this.pos);
|
2981
|
+
if (ch === 96 || ch === 36 && this.input.charCodeAt(this.pos + 1) === 123) {
|
2982
|
+
// '`', '${'
|
2983
|
+
if (this.pos === this.start && this.type === _tokentype.types.template) {
|
2984
|
+
if (ch === 36) {
|
2985
|
+
this.pos += 2;
|
2986
|
+
return this.finishToken(_tokentype.types.dollarBraceL);
|
2987
|
+
} else {
|
2988
|
+
++this.pos;
|
2989
|
+
return this.finishToken(_tokentype.types.backQuote);
|
2990
|
+
}
|
2991
|
+
}
|
2992
|
+
out += this.input.slice(chunkStart, this.pos);
|
2993
|
+
return this.finishToken(_tokentype.types.template, out);
|
2994
|
+
}
|
2995
|
+
if (ch === 92) {
|
2996
|
+
// '\'
|
2997
|
+
out += this.input.slice(chunkStart, this.pos);
|
2998
|
+
out += this.readEscapedChar(true);
|
2999
|
+
chunkStart = this.pos;
|
3000
|
+
} else if (_whitespace.isNewLine(ch)) {
|
3001
|
+
out += this.input.slice(chunkStart, this.pos);
|
3002
|
+
++this.pos;
|
3003
|
+
switch (ch) {
|
3004
|
+
case 13:
|
3005
|
+
if (this.input.charCodeAt(this.pos) === 10) ++this.pos;
|
3006
|
+
case 10:
|
3007
|
+
out += "\n";
|
3008
|
+
break;
|
3009
|
+
default:
|
3010
|
+
out += String.fromCharCode(ch);
|
3011
|
+
break;
|
3012
|
+
}
|
3013
|
+
if (this.options.locations) {
|
3014
|
+
++this.curLine;
|
3015
|
+
this.lineStart = this.pos;
|
3016
|
+
}
|
3017
|
+
chunkStart = this.pos;
|
3018
|
+
} else {
|
3019
|
+
++this.pos;
|
3020
|
+
}
|
3021
|
+
}
|
3022
|
+
};
|
3023
|
+
|
3024
|
+
// Used to read escaped characters
|
3025
|
+
|
3026
|
+
pp.readEscapedChar = function (inTemplate) {
|
3027
|
+
var ch = this.input.charCodeAt(++this.pos);
|
3028
|
+
++this.pos;
|
3029
|
+
switch (ch) {
|
3030
|
+
case 110:
|
3031
|
+
return "\n"; // 'n' -> '\n'
|
3032
|
+
case 114:
|
3033
|
+
return "\r"; // 'r' -> '\r'
|
3034
|
+
case 120:
|
3035
|
+
return String.fromCharCode(this.readHexChar(2)); // 'x'
|
3036
|
+
case 117:
|
3037
|
+
return codePointToString(this.readCodePoint()); // 'u'
|
3038
|
+
case 116:
|
3039
|
+
return "\t"; // 't' -> '\t'
|
3040
|
+
case 98:
|
3041
|
+
return "\b"; // 'b' -> '\b'
|
3042
|
+
case 118:
|
3043
|
+
return "\u000b"; // 'v' -> '\u000b'
|
3044
|
+
case 102:
|
3045
|
+
return "\f"; // 'f' -> '\f'
|
3046
|
+
case 13:
|
3047
|
+
if (this.input.charCodeAt(this.pos) === 10) ++this.pos; // '\r\n'
|
3048
|
+
case 10:
|
3049
|
+
// ' \n'
|
3050
|
+
if (this.options.locations) {
|
3051
|
+
this.lineStart = this.pos;++this.curLine;
|
3052
|
+
}
|
3053
|
+
return "";
|
3054
|
+
default:
|
3055
|
+
if (ch >= 48 && ch <= 55) {
|
3056
|
+
var octalStr = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0];
|
3057
|
+
var octal = parseInt(octalStr, 8);
|
3058
|
+
if (octal > 255) {
|
3059
|
+
octalStr = octalStr.slice(0, -1);
|
3060
|
+
octal = parseInt(octalStr, 8);
|
3061
|
+
}
|
3062
|
+
if (octal > 0 && (this.strict || inTemplate)) {
|
3063
|
+
this.raise(this.pos - 2, "Octal literal in strict mode");
|
3064
|
+
}
|
3065
|
+
this.pos += octalStr.length - 1;
|
3066
|
+
return String.fromCharCode(octal);
|
3067
|
+
}
|
3068
|
+
return String.fromCharCode(ch);
|
3069
|
+
}
|
3070
|
+
};
|
3071
|
+
|
3072
|
+
// Used to read character escape sequences ('\x', '\u', '\U').
|
3073
|
+
|
3074
|
+
pp.readHexChar = function (len) {
|
3075
|
+
var codePos = this.pos;
|
3076
|
+
var n = this.readInt(16, len);
|
3077
|
+
if (n === null) this.raise(codePos, "Bad character escape sequence");
|
3078
|
+
return n;
|
3079
|
+
};
|
3080
|
+
|
3081
|
+
// Read an identifier, and return it as a string. Sets `this.containsEsc`
|
3082
|
+
// to whether the word contained a '\u' escape.
|
3083
|
+
//
|
3084
|
+
// Incrementally adds only escaped chars, adding other chunks as-is
|
3085
|
+
// as a micro-optimization.
|
3086
|
+
|
3087
|
+
pp.readWord1 = function () {
|
3088
|
+
this.containsEsc = false;
|
3089
|
+
var word = "",
|
3090
|
+
first = true,
|
3091
|
+
chunkStart = this.pos;
|
3092
|
+
var astral = this.options.ecmaVersion >= 6;
|
3093
|
+
while (this.pos < this.input.length) {
|
3094
|
+
var ch = this.fullCharCodeAtPos();
|
3095
|
+
if (_identifier.isIdentifierChar(ch, astral)) {
|
3096
|
+
this.pos += ch <= 0xffff ? 1 : 2;
|
3097
|
+
} else if (ch === 92) {
|
3098
|
+
// "\"
|
3099
|
+
this.containsEsc = true;
|
3100
|
+
word += this.input.slice(chunkStart, this.pos);
|
3101
|
+
var escStart = this.pos;
|
3102
|
+
if (this.input.charCodeAt(++this.pos) != 117) // "u"
|
3103
|
+
this.raise(this.pos, "Expecting Unicode escape sequence \\uXXXX");
|
3104
|
+
++this.pos;
|
3105
|
+
var esc = this.readCodePoint();
|
3106
|
+
if (!(first ? _identifier.isIdentifierStart : _identifier.isIdentifierChar)(esc, astral)) this.raise(escStart, "Invalid Unicode escape");
|
3107
|
+
word += codePointToString(esc);
|
3108
|
+
chunkStart = this.pos;
|
3109
|
+
} else {
|
3110
|
+
break;
|
3111
|
+
}
|
3112
|
+
first = false;
|
3113
|
+
}
|
3114
|
+
return word + this.input.slice(chunkStart, this.pos);
|
3115
|
+
};
|
3116
|
+
|
3117
|
+
// Read an identifier or keyword token. Will check for reserved
|
3118
|
+
// words when necessary.
|
3119
|
+
|
3120
|
+
pp.readWord = function () {
|
3121
|
+
var word = this.readWord1();
|
3122
|
+
var type = _tokentype.types.name;
|
3123
|
+
if ((this.options.ecmaVersion >= 6 || !this.containsEsc) && this.keywords.test(word)) type = _tokentype.keywords[word];
|
3124
|
+
return this.finishToken(type, word);
|
3125
|
+
};
|
3126
|
+
|
3127
|
+
},{"./identifier":2,"./locutil":5,"./state":10,"./tokentype":14,"./whitespace":16}],14:[function(_dereq_,module,exports){
|
3128
|
+
// ## Token types
|
3129
|
+
|
3130
|
+
// The assignment of fine-grained, information-carrying type objects
|
3131
|
+
// allows the tokenizer to store the information it has about a
|
3132
|
+
// token in a way that is very cheap for the parser to look up.
|
3133
|
+
|
3134
|
+
// All token type variables start with an underscore, to make them
|
3135
|
+
// easy to recognize.
|
3136
|
+
|
3137
|
+
// The `beforeExpr` property is used to disambiguate between regular
|
3138
|
+
// expressions and divisions. It is set on all token types that can
|
3139
|
+
// be followed by an expression (thus, a slash after them would be a
|
3140
|
+
// regular expression).
|
3141
|
+
//
|
3142
|
+
// The `startsExpr` property is used to check if the token ends a
|
3143
|
+
// `yield` expression. It is set on all token types that either can
|
3144
|
+
// directly start an expression (like a quotation mark) or can
|
3145
|
+
// continue an expression (like the body of a string).
|
3146
|
+
//
|
3147
|
+
// `isLoop` marks a keyword as starting a loop, which is important
|
3148
|
+
// to know when parsing a label, in order to allow or disallow
|
3149
|
+
// continue jumps to that label.
|
3150
|
+
|
3151
|
+
"use strict";
|
3152
|
+
|
3153
|
+
exports.__esModule = true;
|
3154
|
+
|
3155
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
3156
|
+
|
3157
|
+
var TokenType = function TokenType(label) {
|
3158
|
+
var conf = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
|
3159
|
+
|
3160
|
+
_classCallCheck(this, TokenType);
|
3161
|
+
|
3162
|
+
this.label = label;
|
3163
|
+
this.keyword = conf.keyword;
|
3164
|
+
this.beforeExpr = !!conf.beforeExpr;
|
3165
|
+
this.startsExpr = !!conf.startsExpr;
|
3166
|
+
this.isLoop = !!conf.isLoop;
|
3167
|
+
this.isAssign = !!conf.isAssign;
|
3168
|
+
this.prefix = !!conf.prefix;
|
3169
|
+
this.postfix = !!conf.postfix;
|
3170
|
+
this.binop = conf.binop || null;
|
3171
|
+
this.updateContext = null;
|
3172
|
+
};
|
3173
|
+
|
3174
|
+
exports.TokenType = TokenType;
|
3175
|
+
|
3176
|
+
function binop(name, prec) {
|
3177
|
+
return new TokenType(name, { beforeExpr: true, binop: prec });
|
3178
|
+
}
|
3179
|
+
var beforeExpr = { beforeExpr: true },
|
3180
|
+
startsExpr = { startsExpr: true };
|
3181
|
+
|
3182
|
+
var types = {
|
3183
|
+
num: new TokenType("num", startsExpr),
|
3184
|
+
regexp: new TokenType("regexp", startsExpr),
|
3185
|
+
string: new TokenType("string", startsExpr),
|
3186
|
+
name: new TokenType("name", startsExpr),
|
3187
|
+
eof: new TokenType("eof"),
|
3188
|
+
|
3189
|
+
// Punctuation token types.
|
3190
|
+
bracketL: new TokenType("[", { beforeExpr: true, startsExpr: true }),
|
3191
|
+
bracketR: new TokenType("]"),
|
3192
|
+
braceL: new TokenType("{", { beforeExpr: true, startsExpr: true }),
|
3193
|
+
braceR: new TokenType("}"),
|
3194
|
+
parenL: new TokenType("(", { beforeExpr: true, startsExpr: true }),
|
3195
|
+
parenR: new TokenType(")"),
|
3196
|
+
comma: new TokenType(",", beforeExpr),
|
3197
|
+
semi: new TokenType(";", beforeExpr),
|
3198
|
+
colon: new TokenType(":", beforeExpr),
|
3199
|
+
dot: new TokenType("."),
|
3200
|
+
question: new TokenType("?", beforeExpr),
|
3201
|
+
arrow: new TokenType("=>", beforeExpr),
|
3202
|
+
template: new TokenType("template"),
|
3203
|
+
ellipsis: new TokenType("...", beforeExpr),
|
3204
|
+
backQuote: new TokenType("`", startsExpr),
|
3205
|
+
dollarBraceL: new TokenType("${", { beforeExpr: true, startsExpr: true }),
|
3206
|
+
|
3207
|
+
// Operators. These carry several kinds of properties to help the
|
3208
|
+
// parser use them properly (the presence of these properties is
|
3209
|
+
// what categorizes them as operators).
|
3210
|
+
//
|
3211
|
+
// `binop`, when present, specifies that this operator is a binary
|
3212
|
+
// operator, and will refer to its precedence.
|
3213
|
+
//
|
3214
|
+
// `prefix` and `postfix` mark the operator as a prefix or postfix
|
3215
|
+
// unary operator.
|
3216
|
+
//
|
3217
|
+
// `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as
|
3218
|
+
// binary operators with a very low precedence, that should result
|
3219
|
+
// in AssignmentExpression nodes.
|
3220
|
+
|
3221
|
+
eq: new TokenType("=", { beforeExpr: true, isAssign: true }),
|
3222
|
+
assign: new TokenType("_=", { beforeExpr: true, isAssign: true }),
|
3223
|
+
incDec: new TokenType("++/--", { prefix: true, postfix: true, startsExpr: true }),
|
3224
|
+
prefix: new TokenType("prefix", { beforeExpr: true, prefix: true, startsExpr: true }),
|
3225
|
+
logicalOR: binop("||", 1),
|
3226
|
+
logicalAND: binop("&&", 2),
|
3227
|
+
bitwiseOR: binop("|", 3),
|
3228
|
+
bitwiseXOR: binop("^", 4),
|
3229
|
+
bitwiseAND: binop("&", 5),
|
3230
|
+
equality: binop("==/!=", 6),
|
3231
|
+
relational: binop("</>", 7),
|
3232
|
+
bitShift: binop("<</>>", 8),
|
3233
|
+
plusMin: new TokenType("+/-", { beforeExpr: true, binop: 9, prefix: true, startsExpr: true }),
|
3234
|
+
modulo: binop("%", 10),
|
3235
|
+
star: binop("*", 10),
|
3236
|
+
slash: binop("/", 10)
|
3237
|
+
};
|
3238
|
+
|
3239
|
+
exports.types = types;
|
3240
|
+
// Map keyword names to token types.
|
3241
|
+
|
3242
|
+
var keywords = {};
|
3243
|
+
|
3244
|
+
exports.keywords = keywords;
|
3245
|
+
// Succinct definitions of keyword token types
|
3246
|
+
function kw(name) {
|
3247
|
+
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
|
3248
|
+
|
3249
|
+
options.keyword = name;
|
3250
|
+
keywords[name] = types["_" + name] = new TokenType(name, options);
|
3251
|
+
}
|
3252
|
+
|
3253
|
+
kw("break");
|
3254
|
+
kw("case", beforeExpr);
|
3255
|
+
kw("catch");
|
3256
|
+
kw("continue");
|
3257
|
+
kw("debugger");
|
3258
|
+
kw("default", beforeExpr);
|
3259
|
+
kw("do", { isLoop: true, beforeExpr: true });
|
3260
|
+
kw("else", beforeExpr);
|
3261
|
+
kw("finally");
|
3262
|
+
kw("for", { isLoop: true });
|
3263
|
+
kw("function", startsExpr);
|
3264
|
+
kw("if");
|
3265
|
+
kw("return", beforeExpr);
|
3266
|
+
kw("switch");
|
3267
|
+
kw("throw", beforeExpr);
|
3268
|
+
kw("try");
|
3269
|
+
kw("var");
|
3270
|
+
kw("let");
|
3271
|
+
kw("const");
|
3272
|
+
kw("while", { isLoop: true });
|
3273
|
+
kw("with");
|
3274
|
+
kw("new", { beforeExpr: true, startsExpr: true });
|
3275
|
+
kw("this", startsExpr);
|
3276
|
+
kw("super", startsExpr);
|
3277
|
+
kw("class");
|
3278
|
+
kw("extends", beforeExpr);
|
3279
|
+
kw("export");
|
3280
|
+
kw("import");
|
3281
|
+
kw("yield", { beforeExpr: true, startsExpr: true });
|
3282
|
+
kw("null", startsExpr);
|
3283
|
+
kw("true", startsExpr);
|
3284
|
+
kw("false", startsExpr);
|
3285
|
+
kw("in", { beforeExpr: true, binop: 7 });
|
3286
|
+
kw("instanceof", { beforeExpr: true, binop: 7 });
|
3287
|
+
kw("typeof", { beforeExpr: true, prefix: true, startsExpr: true });
|
3288
|
+
kw("void", { beforeExpr: true, prefix: true, startsExpr: true });
|
3289
|
+
kw("delete", { beforeExpr: true, prefix: true, startsExpr: true });
|
3290
|
+
|
3291
|
+
},{}],15:[function(_dereq_,module,exports){
|
3292
|
+
"use strict";
|
3293
|
+
|
3294
|
+
exports.__esModule = true;
|
3295
|
+
exports.isArray = isArray;
|
3296
|
+
exports.has = has;
|
3297
|
+
|
3298
|
+
function isArray(obj) {
|
3299
|
+
return Object.prototype.toString.call(obj) === "[object Array]";
|
3300
|
+
}
|
3301
|
+
|
3302
|
+
// Checks if an object has a property.
|
3303
|
+
|
3304
|
+
function has(obj, propName) {
|
3305
|
+
return Object.prototype.hasOwnProperty.call(obj, propName);
|
3306
|
+
}
|
3307
|
+
|
3308
|
+
},{}],16:[function(_dereq_,module,exports){
|
3309
|
+
// Matches a whole line break (where CRLF is considered a single
|
3310
|
+
// line break). Used to count lines.
|
3311
|
+
|
3312
|
+
"use strict";
|
3313
|
+
|
3314
|
+
exports.__esModule = true;
|
3315
|
+
exports.isNewLine = isNewLine;
|
3316
|
+
var lineBreak = /\r\n?|\n|\u2028|\u2029/;
|
3317
|
+
exports.lineBreak = lineBreak;
|
3318
|
+
var lineBreakG = new RegExp(lineBreak.source, "g");
|
3319
|
+
|
3320
|
+
exports.lineBreakG = lineBreakG;
|
3321
|
+
|
3322
|
+
function isNewLine(code) {
|
3323
|
+
return code === 10 || code === 13 || code === 0x2028 || code == 0x2029;
|
3324
|
+
}
|
3325
|
+
|
3326
|
+
var nonASCIIwhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
3327
|
+
exports.nonASCIIwhitespace = nonASCIIwhitespace;
|
3328
|
+
|
3329
|
+
},{}]},{},[3])(3)
|
3330
|
+
});
|