cssesc-source 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/lib/cssesc/source.rb +7 -0
- data/vendor/LICENSE-MIT.txt +20 -0
- data/vendor/README.md +207 -0
- data/vendor/bin/cssesc +122 -0
- data/vendor/cssesc.js +177 -0
- data/vendor/man/cssesc.1 +70 -0
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/MIT-LICENSE.txt +21 -0
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/README.md +43 -0
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/bin/stripcolorcodes.js +18 -0
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/index.js +3 -0
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/package.json +42 -0
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/test/fixture/with-colors +2 -0
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/test/fixture/without-colors +2 -0
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/test/stripcolorcodes-test.js +20 -0
- data/vendor/node_modules/grunt-shell/package.json +53 -0
- data/vendor/node_modules/grunt-shell/readme.md +221 -0
- data/vendor/node_modules/grunt-shell/tasks/shell.js +54 -0
- data/vendor/node_modules/grunt-template/LICENSE-MIT.txt +20 -0
- data/vendor/node_modules/grunt-template/README.md +123 -0
- data/vendor/node_modules/grunt-template/package.json +50 -0
- data/vendor/node_modules/grunt-template/tasks/template.js +44 -0
- data/vendor/node_modules/grunt/CONTRIBUTING.md +1 -0
- data/vendor/node_modules/grunt/LICENSE-MIT +22 -0
- data/vendor/node_modules/grunt/README.md +16 -0
- data/vendor/node_modules/grunt/internal-tasks/bump.js +151 -0
- data/vendor/node_modules/grunt/internal-tasks/subgrunt.js +34 -0
- data/vendor/node_modules/grunt/lib/grunt.js +156 -0
- data/vendor/node_modules/grunt/lib/grunt/cli.js +128 -0
- data/vendor/node_modules/grunt/lib/grunt/config.js +118 -0
- data/vendor/node_modules/grunt/lib/grunt/event.js +16 -0
- data/vendor/node_modules/grunt/lib/grunt/fail.js +84 -0
- data/vendor/node_modules/grunt/lib/grunt/file.js +440 -0
- data/vendor/node_modules/grunt/lib/grunt/help.js +129 -0
- data/vendor/node_modules/grunt/lib/grunt/log.js +352 -0
- data/vendor/node_modules/grunt/lib/grunt/option.js +42 -0
- data/vendor/node_modules/grunt/lib/grunt/task.js +451 -0
- data/vendor/node_modules/grunt/lib/grunt/template.js +95 -0
- data/vendor/node_modules/grunt/lib/grunt/util.js +188 -0
- data/vendor/node_modules/grunt/lib/util/task.js +323 -0
- data/vendor/node_modules/grunt/node_modules/async/LICENSE +19 -0
- data/vendor/node_modules/grunt/node_modules/async/Makefile +25 -0
- data/vendor/node_modules/grunt/node_modules/async/README.md +1021 -0
- data/vendor/node_modules/grunt/node_modules/async/index.js +3 -0
- data/vendor/node_modules/grunt/node_modules/async/lib/async.js +692 -0
- data/vendor/node_modules/grunt/node_modules/async/package.json +32 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/CNAME +1 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/LICENSE +22 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/README +51 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/Rakefile +78 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/bin/cake +7 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/bin/coffee +7 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/extras/jsl.conf +44 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/browser.js +92 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/cake.js +111 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/coffee-script.js +167 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/command.js +500 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/grammar.js +606 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/helpers.js +77 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/index.js +11 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/lexer.js +788 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/nodes.js +2986 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/optparse.js +138 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/parser.js +683 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/repl.js +261 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/rewriter.js +349 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/scope.js +146 -0
- data/vendor/node_modules/grunt/node_modules/coffee-script/package.json +47 -0
- data/vendor/node_modules/grunt/node_modules/colors/MIT-LICENSE.txt +22 -0
- data/vendor/node_modules/grunt/node_modules/colors/ReadMe.md +77 -0
- data/vendor/node_modules/grunt/node_modules/colors/colors.js +342 -0
- data/vendor/node_modules/grunt/node_modules/colors/example.html +76 -0
- data/vendor/node_modules/grunt/node_modules/colors/example.js +77 -0
- data/vendor/node_modules/grunt/node_modules/colors/package.json +29 -0
- data/vendor/node_modules/grunt/node_modules/colors/test.js +70 -0
- data/vendor/node_modules/grunt/node_modules/colors/themes/winston-dark.js +12 -0
- data/vendor/node_modules/grunt/node_modules/colors/themes/winston-light.js +12 -0
- data/vendor/node_modules/grunt/node_modules/dateformat/Readme.md +67 -0
- data/vendor/node_modules/grunt/node_modules/dateformat/lib/dateformat.js +165 -0
- data/vendor/node_modules/grunt/node_modules/dateformat/package.json +20 -0
- data/vendor/node_modules/grunt/node_modules/dateformat/test/test_weekofyear.js +4 -0
- data/vendor/node_modules/grunt/node_modules/dateformat/test/test_weekofyear.sh +27 -0
- data/vendor/node_modules/grunt/node_modules/eventemitter2/README.md +212 -0
- data/vendor/node_modules/grunt/node_modules/eventemitter2/index.js +1 -0
- data/vendor/node_modules/grunt/node_modules/eventemitter2/lib/eventemitter2.js +561 -0
- data/vendor/node_modules/grunt/node_modules/eventemitter2/package.json +62 -0
- data/vendor/node_modules/grunt/node_modules/exit/Gruntfile.js +48 -0
- data/vendor/node_modules/grunt/node_modules/exit/LICENSE-MIT +22 -0
- data/vendor/node_modules/grunt/node_modules/exit/README.md +75 -0
- data/vendor/node_modules/grunt/node_modules/exit/lib/exit.js +41 -0
- data/vendor/node_modules/grunt/node_modules/exit/package.json +51 -0
- data/vendor/node_modules/grunt/node_modules/exit/test/exit_test.js +121 -0
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/10-stderr.txt +10 -0
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/10-stdout-stderr.txt +20 -0
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/10-stdout.txt +10 -0
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/100-stderr.txt +100 -0
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/100-stdout-stderr.txt +200 -0
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/100-stdout.txt +100 -0
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/1000-stderr.txt +1000 -0
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/1000-stdout-stderr.txt +2000 -0
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/1000-stdout.txt +1000 -0
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/create-files.sh +8 -0
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/log-broken.js +23 -0
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/log.js +25 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/Gruntfile.js +25 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/LICENSE-MIT +22 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/README.md +44 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/lib/findup-sync.js +46 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/README.md +164 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.compat.js +5152 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.compat.min.js +42 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.js +4983 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.min.js +40 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.underscore.js +4307 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.underscore.min.js +34 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/package.json +62 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/package.json +48 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/test/findup-sync_test.js +48 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/test/fixtures/a.txt +0 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/test/fixtures/a/b/bar.txt +0 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/test/fixtures/a/foo.txt +0 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/test/fixtures/aaa.txt +0 -0
- data/vendor/node_modules/grunt/node_modules/getobject/Gruntfile.js +48 -0
- data/vendor/node_modules/grunt/node_modules/getobject/LICENSE-MIT +22 -0
- data/vendor/node_modules/grunt/node_modules/getobject/README.md +20 -0
- data/vendor/node_modules/grunt/node_modules/getobject/lib/getobject.js +60 -0
- data/vendor/node_modules/grunt/node_modules/getobject/package.json +48 -0
- data/vendor/node_modules/grunt/node_modules/getobject/test/namespace_test.js +51 -0
- data/vendor/node_modules/grunt/node_modules/glob/LICENSE +27 -0
- data/vendor/node_modules/grunt/node_modules/glob/README.md +233 -0
- data/vendor/node_modules/grunt/node_modules/glob/examples/g.js +9 -0
- data/vendor/node_modules/grunt/node_modules/glob/examples/usr-local.js +9 -0
- data/vendor/node_modules/grunt/node_modules/glob/glob.js +643 -0
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/LICENSE +27 -0
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/README.md +33 -0
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/graceful-fs.js +442 -0
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/package.json +49 -0
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/test/open.js +46 -0
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/test/ulimit.js +158 -0
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/inherits/README.md +51 -0
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/inherits/inherits.js +29 -0
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/inherits/package.json +30 -0
- data/vendor/node_modules/grunt/node_modules/glob/package.json +40 -0
- data/vendor/node_modules/grunt/node_modules/glob/test/00-setup.js +176 -0
- data/vendor/node_modules/grunt/node_modules/glob/test/bash-comparison.js +63 -0
- data/vendor/node_modules/grunt/node_modules/glob/test/bash-results.json +348 -0
- data/vendor/node_modules/grunt/node_modules/glob/test/cwd-test.js +55 -0
- data/vendor/node_modules/grunt/node_modules/glob/test/mark.js +74 -0
- data/vendor/node_modules/grunt/node_modules/glob/test/nocase-nomagic.js +113 -0
- data/vendor/node_modules/grunt/node_modules/glob/test/pause-resume.js +73 -0
- data/vendor/node_modules/grunt/node_modules/glob/test/root-nomount.js +39 -0
- data/vendor/node_modules/grunt/node_modules/glob/test/root.js +46 -0
- data/vendor/node_modules/grunt/node_modules/glob/test/zz-cleanup.js +11 -0
- data/vendor/node_modules/grunt/node_modules/hooker/LICENSE-MIT +22 -0
- data/vendor/node_modules/grunt/node_modules/hooker/README.md +186 -0
- data/vendor/node_modules/grunt/node_modules/hooker/child.js +101 -0
- data/vendor/node_modules/grunt/node_modules/hooker/dist/ba-hooker.js +169 -0
- data/vendor/node_modules/grunt/node_modules/hooker/dist/ba-hooker.min.js +4 -0
- data/vendor/node_modules/grunt/node_modules/hooker/grunt.js +47 -0
- data/vendor/node_modules/grunt/node_modules/hooker/lib/hooker.js +174 -0
- data/vendor/node_modules/grunt/node_modules/hooker/package.json +45 -0
- data/vendor/node_modules/grunt/node_modules/hooker/parent.js +17 -0
- data/vendor/node_modules/grunt/node_modules/hooker/test/hooker_test.js +435 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/LICENSE +21 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/README.md +72 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/README.md~ +54 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/encodings/big5.js +9 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/encodings/gbk.js +9 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/encodings/singlebyte.js +340 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/encodings/table/big5.js +1 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/encodings/table/gbk.js +1 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/generation/generate-big5-table.js +25 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/generation/generate-singlebyte.js +142 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/index.js +231 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/package.json +80 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/big5-test.js +36 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/big5File.txt +13 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/cyrillic-test.js +86 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/gbk-test.js +38 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/gbkFile.txt +14 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/greek-test.js +79 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/main-test.js +55 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/performance.js +67 -0
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/turkish-test.js +90 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/HISTORY.md +155 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/LICENSE +21 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/README.md +249 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/bin/js-yaml.js +125 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/examples/custom_types.js +104 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/examples/custom_types.yaml +18 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/examples/dumper.js +31 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/examples/dumper.json +22 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/examples/sample_document.js +15 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/examples/sample_document.yaml +197 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/index.js +1 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml.js +33 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/common.js +60 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/dumper.js +437 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/exception.js +25 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/loader.js +1549 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/mark.js +78 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/require.js +23 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/schema.js +103 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/schema/default.js +16 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/schema/minimal.js +13 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/schema/safe.js +25 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type.js +82 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/binary.js +118 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/bool.js +74 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/float.js +102 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/int.js +85 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/js/function.js +56 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +56 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +28 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/map.js +11 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/merge.js +18 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/null.js +36 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/omap.js +53 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/pairs.js +41 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/seq.js +11 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/set.js +31 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/str.js +11 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +91 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/HISTORY.md +109 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/LICENSE +21 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/README.md +239 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/arguments.js +36 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/choice.js +22 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/constants.js +59 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/help.js +13 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/nargs.js +33 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/parents.js +28 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/prefix_chars.js +23 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/sub_commands.js +49 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/sum.js +35 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/testformatters.js +270 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/index.js +1 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action.js +146 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/append.js +55 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/append/constant.js +47 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/count.js +40 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/help.js +48 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/store.js +50 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/store/constant.js +43 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/store/false.js +27 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/store/true.js +26 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/subparsers.js +148 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/version.js +50 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action_container.js +481 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argparse.js +14 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argument/error.js +50 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argument/exclusive.js +54 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argument/group.js +75 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argument_parser.js +1165 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/const.js +18 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/help/added_formatters.js +88 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/help/formatter.js +803 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/namespace.js +77 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Gemfile +4 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Gemfile.lock +17 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/README.markdown +814 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Rakefile +23 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/component.json +11 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/dist/underscore.string.min.js +1 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/lib/underscore.string.js +673 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/libpeerconnection.log +0 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/package.json +73 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/run-qunit.js +45 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/speed.js +148 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/strings.js +685 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/strings_standalone.js +12 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test.html +31 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_standalone.html +18 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/arrays.js +200 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/chaining.js +59 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/collections.js +426 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/functions.js +259 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/index.html +45 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/objects.js +548 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/speed.js +75 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/utility.js +249 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/vendor/jquery.js +9404 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/vendor/jslitmus.js +670 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/vendor/qunit.css +235 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/vendor/qunit.js +1977 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/underscore.js +1201 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/CNAME +1 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/CONTRIBUTING.md +9 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/LICENSE +22 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/README.md +19 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/favicon.ico +0 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/index.html +2467 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/index.js +1 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/package.json +35 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/underscore-min.js +1 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/underscore.js +1226 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/package.json +50 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/README.md +73 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/bin/esparse.js +117 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/bin/esvalidate.js +177 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/esprima.js +3908 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/package.json +59 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/test/compat.js +239 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/test/reflect.js +422 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/test/run.js +66 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/test/runner.js +387 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/test/test.js +20238 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/package.json +60 -0
- data/vendor/node_modules/grunt/node_modules/lodash/README.md +140 -0
- data/vendor/node_modules/grunt/node_modules/lodash/lodash.js +4258 -0
- data/vendor/node_modules/grunt/node_modules/lodash/lodash.min.js +35 -0
- data/vendor/node_modules/grunt/node_modules/lodash/lodash.underscore.js +3688 -0
- data/vendor/node_modules/grunt/node_modules/lodash/lodash.underscore.min.js +28 -0
- data/vendor/node_modules/grunt/node_modules/lodash/package.json +62 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/LICENSE +23 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/README.md +218 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/minimatch.js +1055 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/CONTRIBUTORS +14 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/LICENSE +23 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/README.md +97 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/lib/lru-cache.js +252 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/package.json +33 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/test/basic.js +369 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/test/foreach.js +52 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/test/memory-leak.js +50 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/LICENSE +27 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/README.md +53 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/bench.js +283 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/package.json +42 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/sigmund.js +39 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/test/basic.js +24 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/package.json +40 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/test/basic.js +399 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/test/brace-expand.js +33 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/test/caching.js +14 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/test/defaults.js +274 -0
- data/vendor/node_modules/grunt/node_modules/minimatch/test/extglob-ending-with-state-char.js +8 -0
- data/vendor/node_modules/grunt/node_modules/nopt/LICENSE +23 -0
- data/vendor/node_modules/grunt/node_modules/nopt/README.md +208 -0
- data/vendor/node_modules/grunt/node_modules/nopt/bin/nopt.js +44 -0
- data/vendor/node_modules/grunt/node_modules/nopt/examples/my-program.js +30 -0
- data/vendor/node_modules/grunt/node_modules/nopt/lib/nopt.js +552 -0
- data/vendor/node_modules/grunt/node_modules/nopt/node_modules/abbrev/LICENSE +23 -0
- data/vendor/node_modules/grunt/node_modules/nopt/node_modules/abbrev/README.md +23 -0
- data/vendor/node_modules/grunt/node_modules/nopt/node_modules/abbrev/lib/abbrev.js +111 -0
- data/vendor/node_modules/grunt/node_modules/nopt/node_modules/abbrev/package.json +29 -0
- data/vendor/node_modules/grunt/node_modules/nopt/package.json +36 -0
- data/vendor/node_modules/grunt/node_modules/rimraf/AUTHORS +6 -0
- data/vendor/node_modules/grunt/node_modules/rimraf/LICENSE +23 -0
- data/vendor/node_modules/grunt/node_modules/rimraf/README.md +21 -0
- data/vendor/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/LICENSE +23 -0
- data/vendor/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/README.md +5 -0
- data/vendor/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/graceful-fs.js +312 -0
- data/vendor/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/package.json +40 -0
- data/vendor/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/test/open.js +41 -0
- data/vendor/node_modules/grunt/node_modules/rimraf/package.json +59 -0
- data/vendor/node_modules/grunt/node_modules/rimraf/rimraf.js +161 -0
- data/vendor/node_modules/grunt/node_modules/rimraf/test/run.sh +10 -0
- data/vendor/node_modules/grunt/node_modules/rimraf/test/setup.sh +47 -0
- data/vendor/node_modules/grunt/node_modules/rimraf/test/test-async.js +5 -0
- data/vendor/node_modules/grunt/node_modules/rimraf/test/test-fiber.js +0 -0
- data/vendor/node_modules/grunt/node_modules/rimraf/test/test-sync.js +3 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/Gemfile +5 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/Gemfile.lock +34 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/README.markdown +668 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/Rakefile +28 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/dist/underscore.string.min.js +1 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/lib/underscore.string.js +525 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/package.json +72 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/run-qunit.js +44 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/speed.js +138 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/strings.js +438 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/strings_standalone.js +12 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test.html +31 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_standalone.html +18 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/arrays.js +166 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/chaining.js +59 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/collections.js +270 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/functions.js +198 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/objects.js +535 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/speed.js +70 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/temp.js +27 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/temp_tests.html +19 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/test.html +43 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/utility.js +155 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/vendor/jquery.js +19 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/vendor/jslitmus.js +670 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/vendor/qunit.css +196 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/vendor/qunit.js +2360 -0
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/underscore.js +999 -0
- data/vendor/node_modules/grunt/node_modules/which/LICENSE +23 -0
- data/vendor/node_modules/grunt/node_modules/which/README.md +5 -0
- data/vendor/node_modules/grunt/node_modules/which/bin/which +14 -0
- data/vendor/node_modules/grunt/node_modules/which/package.json +31 -0
- data/vendor/node_modules/grunt/node_modules/which/which.js +104 -0
- data/vendor/node_modules/grunt/package.json +82 -0
- data/vendor/node_modules/istanbul/CHANGELOG.md +57 -0
- data/vendor/node_modules/istanbul/LICENSE +24 -0
- data/vendor/node_modules/istanbul/README.md +205 -0
- data/vendor/node_modules/istanbul/index.js +115 -0
- data/vendor/node_modules/istanbul/lib/cli.js +74 -0
- data/vendor/node_modules/istanbul/lib/collector.js +121 -0
- data/vendor/node_modules/istanbul/lib/command/check-coverage.js +115 -0
- data/vendor/node_modules/istanbul/lib/command/common/run-with-cover.js +199 -0
- data/vendor/node_modules/istanbul/lib/command/cover.js +33 -0
- data/vendor/node_modules/istanbul/lib/command/help.js +58 -0
- data/vendor/node_modules/istanbul/lib/command/index.js +33 -0
- data/vendor/node_modules/istanbul/lib/command/instrument.js +244 -0
- data/vendor/node_modules/istanbul/lib/command/report.js +97 -0
- data/vendor/node_modules/istanbul/lib/command/test.js +31 -0
- data/vendor/node_modules/istanbul/lib/hook.js +187 -0
- data/vendor/node_modules/istanbul/lib/instrumenter.js +759 -0
- data/vendor/node_modules/istanbul/lib/object-utils.js +341 -0
- data/vendor/node_modules/istanbul/lib/register-plugins.js +15 -0
- data/vendor/node_modules/istanbul/lib/report/cobertura.js +207 -0
- data/vendor/node_modules/istanbul/lib/report/html.js +517 -0
- data/vendor/node_modules/istanbul/lib/report/index.js +60 -0
- data/vendor/node_modules/istanbul/lib/report/json.js +55 -0
- data/vendor/node_modules/istanbul/lib/report/lcov.js +49 -0
- data/vendor/node_modules/istanbul/lib/report/lcovonly.js +93 -0
- data/vendor/node_modules/istanbul/lib/report/none.js +20 -0
- data/vendor/node_modules/istanbul/lib/report/teamcity.js +82 -0
- data/vendor/node_modules/istanbul/lib/report/templates/foot.txt +102 -0
- data/vendor/node_modules/istanbul/lib/report/templates/head.txt +200 -0
- data/vendor/node_modules/istanbul/lib/report/text-summary.js +72 -0
- data/vendor/node_modules/istanbul/lib/report/text.js +210 -0
- data/vendor/node_modules/istanbul/lib/store/fslookup.js +60 -0
- data/vendor/node_modules/istanbul/lib/store/index.js +122 -0
- data/vendor/node_modules/istanbul/lib/store/memory.js +55 -0
- data/vendor/node_modules/istanbul/lib/store/tmp.js +80 -0
- data/vendor/node_modules/istanbul/lib/util/factory.js +88 -0
- data/vendor/node_modules/istanbul/lib/util/file-matcher.js +60 -0
- data/vendor/node_modules/istanbul/lib/util/file-writer.js +131 -0
- data/vendor/node_modules/istanbul/lib/util/flow-control.js +26 -0
- data/vendor/node_modules/istanbul/lib/util/help-formatter.js +24 -0
- data/vendor/node_modules/istanbul/lib/util/input-error.js +12 -0
- data/vendor/node_modules/istanbul/lib/util/insertion-text.js +109 -0
- data/vendor/node_modules/istanbul/lib/util/meta.js +13 -0
- data/vendor/node_modules/istanbul/lib/util/tree-summarizer.js +213 -0
- data/vendor/node_modules/istanbul/lib/util/writer.js +56 -0
- data/vendor/node_modules/istanbul/lib/util/yui-load-hook.js +49 -0
- data/vendor/node_modules/istanbul/lib/vendor/prettify.css +1 -0
- data/vendor/node_modules/istanbul/lib/vendor/prettify.js +1 -0
- data/vendor/node_modules/istanbul/node_modules/abbrev/LICENSE +23 -0
- data/vendor/node_modules/istanbul/node_modules/abbrev/README.md +23 -0
- data/vendor/node_modules/istanbul/node_modules/abbrev/lib/abbrev.js +111 -0
- data/vendor/node_modules/istanbul/node_modules/abbrev/package.json +29 -0
- data/vendor/node_modules/istanbul/node_modules/async/LICENSE +19 -0
- data/vendor/node_modules/istanbul/node_modules/async/README.md +1414 -0
- data/vendor/node_modules/istanbul/node_modules/async/component.json +11 -0
- data/vendor/node_modules/istanbul/node_modules/async/lib/async.js +955 -0
- data/vendor/node_modules/istanbul/node_modules/async/package.json +43 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/LICENSE.BSD +19 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/LICENSE.source-map +27 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/README.md +99 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/bin/escodegen.js +45 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/bin/esgenerate.js +45 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/component.json +48 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/escodegen.browser.js +3072 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/escodegen.js +2275 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/estraverse/LICENSE.BSD +19 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/estraverse/README.md +29 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/estraverse/estraverse.js +315 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/estraverse/package.json +41 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/CHANGELOG.md +112 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/LICENSE +28 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/Makefile.dryice.js +166 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/README.md +434 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/assert-shim.js +56 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/mini-require.js +152 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/prefix-source-map.jsm +20 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/prefix-utils.jsm +18 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/suffix-browser.js +8 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/suffix-source-map.jsm +6 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/suffix-utils.jsm +21 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/test-prefix.js +8 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/test-suffix.js +3 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map.js +8 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/array-set.js +97 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/base64-vlq.js +144 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/base64.js +42 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/binary-search.js +81 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/source-map-consumer.js +477 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/source-map-generator.js +380 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/source-node.js +371 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/util.js +205 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/LICENSE +58 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/README.md +171 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/amdefine.js +299 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/intercept.js +36 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/package.json +36 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/package.json +110 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/run-tests.js +71 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-api.js +26 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-array-set.js +104 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-base64-vlq.js +24 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-base64.js +35 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-dog-fooding.js +72 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-map-consumer.js +451 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-map-generator.js +417 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-node.js +365 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/util.js +161 -0
- data/vendor/node_modules/istanbul/node_modules/escodegen/package.json +58 -0
- data/vendor/node_modules/istanbul/node_modules/esprima/README.md +73 -0
- data/vendor/node_modules/istanbul/node_modules/esprima/bin/esparse.js +117 -0
- data/vendor/node_modules/istanbul/node_modules/esprima/bin/esvalidate.js +177 -0
- data/vendor/node_modules/istanbul/node_modules/esprima/esprima.js +3908 -0
- data/vendor/node_modules/istanbul/node_modules/esprima/package.json +59 -0
- data/vendor/node_modules/istanbul/node_modules/esprima/test/compat.js +239 -0
- data/vendor/node_modules/istanbul/node_modules/esprima/test/reflect.js +422 -0
- data/vendor/node_modules/istanbul/node_modules/esprima/test/run.js +66 -0
- data/vendor/node_modules/istanbul/node_modules/esprima/test/runner.js +387 -0
- data/vendor/node_modules/istanbul/node_modules/esprima/test/test.js +20238 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/LICENSE-MIT +22 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/README.md +87 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/lib/fileset.js +64 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/LICENSE +27 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/README.md +250 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/examples/g.js +9 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/examples/usr-local.js +9 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/glob.js +680 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/LICENSE +16 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/README.md +42 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/inherits.js +1 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/inherits_browser.js +23 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/package.json +33 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/test.js +25 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/package.json +39 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/00-setup.js +176 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/bash-comparison.js +63 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/bash-results.json +350 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/cwd-test.js +55 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/globstar-match.js +19 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/mark.js +74 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/new-glob-optional-options.js +10 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/nocase-nomagic.js +113 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/pause-resume.js +73 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/root-nomount.js +39 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/root.js +46 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/stat.js +32 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/zz-cleanup.js +11 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/LICENSE +23 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/README.md +218 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/minimatch.js +1055 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/CONTRIBUTORS +14 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/LICENSE +23 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/README.md +97 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/lib/lru-cache.js +252 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/package.json +33 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/test/basic.js +369 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/test/foreach.js +52 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/test/memory-leak.js +50 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/LICENSE +27 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/README.md +53 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/bench.js +283 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/package.json +42 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/sigmund.js +39 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/test/basic.js +24 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/package.json +40 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/test/basic.js +399 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/test/brace-expand.js +33 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/test/caching.js +14 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/test/defaults.js +274 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/test/extglob-ending-with-state-char.js +8 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/package.json +34 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/tests/fixtures/an (odd) filename.js +1 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/tests/helper.js +61 -0
- data/vendor/node_modules/istanbul/node_modules/fileset/tests/test.js +133 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/LICENSE +19 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/README.markdown +391 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/bin/handlebars +213 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/bower.json +9 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/dist/handlebars.js +2278 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/dist/handlebars.min.js +2 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/dist/handlebars.runtime.js +362 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/dist/handlebars.runtime.min.js +1 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/global-test.js +18 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/global.js +4 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/handlebars-source.gemspec +21 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/handlebars.js.nuspec +17 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars.js +43 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/base.js +166 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/browser-prefix.js +3 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/browser-suffix.js +1 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/ast.js +138 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/base.js +21 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/compiler.js +1305 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/index.js +16 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/parser.js +483 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/printer.js +138 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/visitor.js +18 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/runtime.js +106 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/source.rb +11 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/utils.js +83 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/min.sh +11 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/LICENSE +21 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/bool.js +10 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/boolean_double.js +7 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/boolean_single.js +7 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/default_hash.js +8 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/default_singles.js +7 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/divide.js +8 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/line_count.js +20 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/line_count_options.js +29 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/line_count_wrap.js +29 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/nonopt.js +4 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/reflect.js +2 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/short.js +3 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/string.js +11 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/usage-options.js +19 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/xup.js +10 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/index.js +478 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/package.json +46 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/readme.markdown +487 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/test/_.js +71 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/test/_/argv.js +2 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/test/_/bin.js +3 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/test/parse.js +446 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/test/usage.js +292 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/LICENSE +29 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/README.md +588 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/bin/uglifyjs +402 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/ast.js +985 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/compress.js +2028 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/mozilla-ast.js +267 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/output.js +1229 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/parse.js +1410 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/scope.js +581 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/sourcemap.js +81 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/transform.js +217 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/utils.js +295 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/CHANGELOG.md +112 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/LICENSE +28 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/Makefile.dryice.js +166 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/README.md +434 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/assert-shim.js +56 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/mini-require.js +152 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/prefix-source-map.jsm +20 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/prefix-utils.jsm +18 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/suffix-browser.js +8 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/suffix-source-map.jsm +6 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/suffix-utils.jsm +21 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/test-prefix.js +8 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/test-suffix.js +3 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map.js +8 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/array-set.js +97 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64-vlq.js +144 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64.js +42 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/binary-search.js +81 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-map-consumer.js +477 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-map-generator.js +380 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-node.js +371 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/util.js +205 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/LICENSE +58 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/README.md +171 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/amdefine.js +299 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/intercept.js +36 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/package.json +37 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/package.json +110 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/run-tests.js +71 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-api.js +26 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-array-set.js +104 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-base64-vlq.js +24 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-base64.js +35 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-dog-fooding.js +72 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-map-consumer.js +451 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-map-generator.js +417 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-node.js +365 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/util.js +161 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/package.json +39 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/arrays.js +12 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/blocks.js +49 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/conditionals.js +143 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/dead-code.js +89 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/debugger.js +24 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js +97 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-105.js +25 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-12.js +11 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-143.js +48 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-22.js +17 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-44.js +31 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-59.js +30 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/labels.js +163 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/loops.js +123 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/properties.js +54 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/sequences.js +161 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/switch.js +260 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/typeof.js +25 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/run-tests.js +170 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/tools/node.js +165 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/package.json +42 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/release-notes.md +93 -0
- data/vendor/node_modules/istanbul/node_modules/handlebars/test.js +20 -0
- data/vendor/node_modules/istanbul/node_modules/mkdirp/LICENSE +21 -0
- data/vendor/node_modules/istanbul/node_modules/mkdirp/examples/pow.js +6 -0
- data/vendor/node_modules/istanbul/node_modules/mkdirp/index.js +82 -0
- data/vendor/node_modules/istanbul/node_modules/mkdirp/package.json +34 -0
- data/vendor/node_modules/istanbul/node_modules/mkdirp/readme.markdown +63 -0
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/chmod.js +38 -0
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/clobber.js +37 -0
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/mkdirp.js +28 -0
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/perm.js +32 -0
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/perm_sync.js +39 -0
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/race.js +41 -0
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/rel.js +32 -0
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/return.js +25 -0
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/return_sync.js +24 -0
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/root.js +18 -0
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/sync.js +32 -0
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/umask.js +28 -0
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/umask_sync.js +32 -0
- data/vendor/node_modules/istanbul/node_modules/nopt/LICENSE +23 -0
- data/vendor/node_modules/istanbul/node_modules/nopt/README.md +210 -0
- data/vendor/node_modules/istanbul/node_modules/nopt/bin/nopt.js +51 -0
- data/vendor/node_modules/istanbul/node_modules/nopt/examples/my-program.js +30 -0
- data/vendor/node_modules/istanbul/node_modules/nopt/lib/nopt.js +612 -0
- data/vendor/node_modules/istanbul/node_modules/nopt/package.json +36 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/LICENSE +18 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/example/async.js +5 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/example/sync.js +3 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/index.js +5 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/lib/async.js +125 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/lib/caller.js +8 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/lib/core.js +4 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/lib/core.json +38 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/lib/node-modules-paths.js +25 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/lib/sync.js +80 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/package.json +36 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/readme.markdown +144 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/core.js +12 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/filter.js +18 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/filter_sync.js +15 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/mock.js +142 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/mock_sync.js +68 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver.js +270 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/bar/node_modules/foo/index.js +1 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/baz/package.json +3 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/baz/quux.js +1 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/biz/node_modules/garply/lib/index.js +1 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/biz/node_modules/garply/package.json +3 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/biz/node_modules/grux/index.js +1 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/biz/node_modules/tiv/index.js +1 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/cup.coffee +1 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/foo.js +1 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/incorrect_main/index.js +2 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/incorrect_main/package.json +3 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/mug.coffee +0 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/mug.js +0 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/quux/foo/index.js +1 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/without_basedir/main.js +6 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/without_basedir/node_modules/mymodule.js +1 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver_sync.js +170 -0
- data/vendor/node_modules/istanbul/node_modules/which/LICENSE +23 -0
- data/vendor/node_modules/istanbul/node_modules/which/README.md +5 -0
- data/vendor/node_modules/istanbul/node_modules/which/bin/which +14 -0
- data/vendor/node_modules/istanbul/node_modules/which/package.json +32 -0
- data/vendor/node_modules/istanbul/node_modules/which/which.js +104 -0
- data/vendor/node_modules/istanbul/node_modules/wordwrap/README.markdown +70 -0
- data/vendor/node_modules/istanbul/node_modules/wordwrap/example/center.js +10 -0
- data/vendor/node_modules/istanbul/node_modules/wordwrap/example/meat.js +3 -0
- data/vendor/node_modules/istanbul/node_modules/wordwrap/index.js +76 -0
- data/vendor/node_modules/istanbul/node_modules/wordwrap/package.json +45 -0
- data/vendor/node_modules/istanbul/node_modules/wordwrap/test/break.js +30 -0
- data/vendor/node_modules/istanbul/node_modules/wordwrap/test/idleness.txt +63 -0
- data/vendor/node_modules/istanbul/node_modules/wordwrap/test/wrap.js +31 -0
- data/vendor/node_modules/istanbul/package.json +117 -0
- data/vendor/node_modules/istanbul/test/browser/support/index.html +153 -0
- data/vendor/node_modules/istanbul/test/browser/support/phantom-test.client.js +49 -0
- data/vendor/node_modules/istanbul/test/browser/support/server.js +154 -0
- data/vendor/node_modules/istanbul/test/browser/test-browser-instrumentation.js +94 -0
- data/vendor/node_modules/istanbul/test/cli-helper.js +219 -0
- data/vendor/node_modules/istanbul/test/cli/package.json +8 -0
- data/vendor/node_modules/istanbul/test/cli/sample-project/amd/ipsum.js +11 -0
- data/vendor/node_modules/istanbul/test/cli/sample-project/amd/lorem.js +7 -0
- data/vendor/node_modules/istanbul/test/cli/sample-project/lib/bar.js +13 -0
- data/vendor/node_modules/istanbul/test/cli/sample-project/lib/foo.js +12 -0
- data/vendor/node_modules/istanbul/test/cli/sample-project/lib/util/bad.js +1 -0
- data/vendor/node_modules/istanbul/test/cli/sample-project/lib/util/generate-names.js +5 -0
- data/vendor/node_modules/istanbul/test/cli/sample-project/node_modules/dependency/index.js +9 -0
- data/vendor/node_modules/istanbul/test/cli/sample-project/node_modules/post-require/hook.js +11 -0
- data/vendor/node_modules/istanbul/test/cli/sample-project/node_modules/post-require/package.json +5 -0
- data/vendor/node_modules/istanbul/test/cli/sample-project/test/amd-run.js +16 -0
- data/vendor/node_modules/istanbul/test/cli/sample-project/test/global-leak.js +30 -0
- data/vendor/node_modules/istanbul/test/cli/sample-project/test/run.js +25 -0
- data/vendor/node_modules/istanbul/test/cli/sample-project/vendor/dummy_vendor_lib.js +9 -0
- data/vendor/node_modules/istanbul/test/cli/test-base-cli.js +39 -0
- data/vendor/node_modules/istanbul/test/cli/test-check-coverage-command.js +97 -0
- data/vendor/node_modules/istanbul/test/cli/test-cobertura-report.js +54 -0
- data/vendor/node_modules/istanbul/test/cli/test-cover-command.js +170 -0
- data/vendor/node_modules/istanbul/test/cli/test-html-report.js +125 -0
- data/vendor/node_modules/istanbul/test/cli/test-instrument-command.js +167 -0
- data/vendor/node_modules/istanbul/test/cli/test-json-report.js +60 -0
- data/vendor/node_modules/istanbul/test/cli/test-lcov-report.js +58 -0
- data/vendor/node_modules/istanbul/test/cli/test-lcovonly-report.js +61 -0
- data/vendor/node_modules/istanbul/test/cli/test-lots-of-files.js +87 -0
- data/vendor/node_modules/istanbul/test/cli/test-none-report.js +17 -0
- data/vendor/node_modules/istanbul/test/cli/test-report-command.js +65 -0
- data/vendor/node_modules/istanbul/test/cli/test-teamcity-report.js +54 -0
- data/vendor/node_modules/istanbul/test/cli/test-test-command.js +43 -0
- data/vendor/node_modules/istanbul/test/common.js +19 -0
- data/vendor/node_modules/istanbul/test/helper.js +122 -0
- data/vendor/node_modules/istanbul/test/instrumentation/test-do.js +53 -0
- data/vendor/node_modules/istanbul/test/instrumentation/test-expressions.js +70 -0
- data/vendor/node_modules/istanbul/test/instrumentation/test-for.js +206 -0
- data/vendor/node_modules/istanbul/test/instrumentation/test-forin.js +50 -0
- data/vendor/node_modules/istanbul/test/instrumentation/test-functions.js +102 -0
- data/vendor/node_modules/istanbul/test/instrumentation/test-if.js +393 -0
- data/vendor/node_modules/istanbul/test/instrumentation/test-misc.js +35 -0
- data/vendor/node_modules/istanbul/test/instrumentation/test-statement.js +182 -0
- data/vendor/node_modules/istanbul/test/instrumentation/test-strict.js +121 -0
- data/vendor/node_modules/istanbul/test/instrumentation/test-switch.js +155 -0
- data/vendor/node_modules/istanbul/test/instrumentation/test-while.js +104 -0
- data/vendor/node_modules/istanbul/test/loader.js +38 -0
- data/vendor/node_modules/istanbul/test/other/data-complete-copy/baz.js +3 -0
- data/vendor/node_modules/istanbul/test/other/data-complete-copy/fixture.xml +1 -0
- data/vendor/node_modules/istanbul/test/other/data-complete-copy/foo.js +4 -0
- data/vendor/node_modules/istanbul/test/other/data-complete-copy/myfile1 +0 -0
- data/vendor/node_modules/istanbul/test/other/data-complete-copy/myfile2 +1 -0
- data/vendor/node_modules/istanbul/test/other/data-complete-copy/subdir/x.css +3 -0
- data/vendor/node_modules/istanbul/test/other/data/baz.js +3 -0
- data/vendor/node_modules/istanbul/test/other/data/foo.js +4 -0
- data/vendor/node_modules/istanbul/test/other/data/matcher/general/general.js +2 -0
- data/vendor/node_modules/istanbul/test/other/data/matcher/general/node_modules/mod-file.js +2 -0
- data/vendor/node_modules/istanbul/test/other/data/matcher/lib/lib-top.js +2 -0
- data/vendor/node_modules/istanbul/test/other/data/matcher/node_modules/dep/mod-file.js +2 -0
- data/vendor/node_modules/istanbul/test/other/data/matcher/node_modules/mod-file.js +2 -0
- data/vendor/node_modules/istanbul/test/other/data/matcher/top.js +2 -0
- data/vendor/node_modules/istanbul/test/other/test-collector.js +85 -0
- data/vendor/node_modules/istanbul/test/other/test-command-xface.js +35 -0
- data/vendor/node_modules/istanbul/test/other/test-file-writer.js +71 -0
- data/vendor/node_modules/istanbul/test/other/test-help-formatter.js +31 -0
- data/vendor/node_modules/istanbul/test/other/test-hook.js +87 -0
- data/vendor/node_modules/istanbul/test/other/test-index-xface.js +17 -0
- data/vendor/node_modules/istanbul/test/other/test-input-error.js +10 -0
- data/vendor/node_modules/istanbul/test/other/test-insertion-text.js +102 -0
- data/vendor/node_modules/istanbul/test/other/test-matcher.js +93 -0
- data/vendor/node_modules/istanbul/test/other/test-object-utils.js +201 -0
- data/vendor/node_modules/istanbul/test/other/test-store.js +129 -0
- data/vendor/node_modules/istanbul/test/other/test-summarizer.js +172 -0
- data/vendor/node_modules/istanbul/test/run-again.js +19 -0
- data/vendor/node_modules/istanbul/test/run.js +108 -0
- data/vendor/node_modules/istanbul/yui-coverage-comparison.md +85 -0
- data/vendor/node_modules/qunit-clib/LICENSE.txt +20 -0
- data/vendor/node_modules/qunit-clib/README.md +2 -0
- data/vendor/node_modules/qunit-clib/package.json +36 -0
- data/vendor/node_modules/qunit-clib/qunit-clib.js +570 -0
- data/vendor/node_modules/qunitjs/AUTHORS.txt +55 -0
- data/vendor/node_modules/qunitjs/History.md +496 -0
- data/vendor/node_modules/qunitjs/README.md +62 -0
- data/vendor/node_modules/qunitjs/addons/canvas/README.md +17 -0
- data/vendor/node_modules/qunitjs/addons/canvas/canvas-test.js +76 -0
- data/vendor/node_modules/qunitjs/addons/canvas/canvas.html +15 -0
- data/vendor/node_modules/qunitjs/addons/canvas/qunit-canvas.js +6 -0
- data/vendor/node_modules/qunitjs/addons/close-enough/README.md +18 -0
- data/vendor/node_modules/qunitjs/addons/close-enough/close-enough-test.js +35 -0
- data/vendor/node_modules/qunitjs/addons/close-enough/close-enough.html +14 -0
- data/vendor/node_modules/qunitjs/addons/close-enough/qunit-close-enough.js +32 -0
- data/vendor/node_modules/qunitjs/addons/composite/README.md +26 -0
- data/vendor/node_modules/qunitjs/addons/composite/composite-demo-test.html +24 -0
- data/vendor/node_modules/qunitjs/addons/composite/index.html +34 -0
- data/vendor/node_modules/qunitjs/addons/composite/qunit-composite.css +13 -0
- data/vendor/node_modules/qunitjs/addons/composite/qunit-composite.js +112 -0
- data/vendor/node_modules/qunitjs/addons/junitlogger/README.md +18 -0
- data/vendor/node_modules/qunitjs/addons/junitlogger/index.html +44 -0
- data/vendor/node_modules/qunitjs/addons/junitlogger/junitlogger.js +306 -0
- data/vendor/node_modules/qunitjs/addons/phantomjs/README.md +16 -0
- data/vendor/node_modules/qunitjs/addons/phantomjs/runner.js +127 -0
- data/vendor/node_modules/qunitjs/addons/step/README.md +20 -0
- data/vendor/node_modules/qunitjs/addons/step/qunit-step.js +26 -0
- data/vendor/node_modules/qunitjs/addons/step/step-test.js +15 -0
- data/vendor/node_modules/qunitjs/addons/step/step.html +14 -0
- data/vendor/node_modules/qunitjs/addons/themes/README.md +6 -0
- data/vendor/node_modules/qunitjs/addons/themes/gabe.css +371 -0
- data/vendor/node_modules/qunitjs/addons/themes/gabe.html +15 -0
- data/vendor/node_modules/qunitjs/addons/themes/ninja.css +196 -0
- data/vendor/node_modules/qunitjs/addons/themes/ninja.html +15 -0
- data/vendor/node_modules/qunitjs/addons/themes/nv.css +217 -0
- data/vendor/node_modules/qunitjs/addons/themes/nv.html +15 -0
- data/vendor/node_modules/qunitjs/grunt.js +101 -0
- data/vendor/node_modules/qunitjs/package.json +49 -0
- data/vendor/node_modules/qunitjs/qunit/qunit.css +244 -0
- data/vendor/node_modules/qunitjs/qunit/qunit.js +2152 -0
- data/vendor/node_modules/qunitjs/test/async.html +26 -0
- data/vendor/node_modules/qunitjs/test/async.js +6 -0
- data/vendor/node_modules/qunitjs/test/deepEqual.js +1438 -0
- data/vendor/node_modules/qunitjs/test/headless.html +28 -0
- data/vendor/node_modules/qunitjs/test/index.html +16 -0
- data/vendor/node_modules/qunitjs/test/logs.html +14 -0
- data/vendor/node_modules/qunitjs/test/logs.js +184 -0
- data/vendor/node_modules/qunitjs/test/narwhal-test.js +22 -0
- data/vendor/node_modules/qunitjs/test/node-test.js +22 -0
- data/vendor/node_modules/qunitjs/test/swarminject.js +10 -0
- data/vendor/node_modules/qunitjs/test/test.js +804 -0
- data/vendor/node_modules/regenerate/LICENSE-MIT.txt +20 -0
- data/vendor/node_modules/regenerate/README.md +467 -0
- data/vendor/node_modules/regenerate/package.json +50 -0
- data/vendor/node_modules/regenerate/regenerate.js +617 -0
- data/vendor/node_modules/requirejs/README.md +9 -0
- data/vendor/node_modules/requirejs/bin/r.js +26059 -0
- data/vendor/node_modules/requirejs/package.json +39 -0
- data/vendor/node_modules/requirejs/require.js +2054 -0
- data/vendor/package.json +56 -0
- metadata +949 -0
data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/mozilla-ast.js
ADDED
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
/***********************************************************************
|
|
2
|
+
|
|
3
|
+
A JavaScript tokenizer / parser / beautifier / compressor.
|
|
4
|
+
https://github.com/mishoo/UglifyJS2
|
|
5
|
+
|
|
6
|
+
-------------------------------- (C) ---------------------------------
|
|
7
|
+
|
|
8
|
+
Author: Mihai Bazon
|
|
9
|
+
<mihai.bazon@gmail.com>
|
|
10
|
+
http://mihai.bazon.net/blog
|
|
11
|
+
|
|
12
|
+
Distributed under the BSD license:
|
|
13
|
+
|
|
14
|
+
Copyright 2012 (c) Mihai Bazon <mihai.bazon@gmail.com>
|
|
15
|
+
|
|
16
|
+
Redistribution and use in source and binary forms, with or without
|
|
17
|
+
modification, are permitted provided that the following conditions
|
|
18
|
+
are met:
|
|
19
|
+
|
|
20
|
+
* Redistributions of source code must retain the above
|
|
21
|
+
copyright notice, this list of conditions and the following
|
|
22
|
+
disclaimer.
|
|
23
|
+
|
|
24
|
+
* Redistributions in binary form must reproduce the above
|
|
25
|
+
copyright notice, this list of conditions and the following
|
|
26
|
+
disclaimer in the documentation and/or other materials
|
|
27
|
+
provided with the distribution.
|
|
28
|
+
|
|
29
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY
|
|
30
|
+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
31
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
32
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
|
|
33
|
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
|
34
|
+
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
35
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
36
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
37
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
|
38
|
+
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
|
39
|
+
THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
40
|
+
SUCH DAMAGE.
|
|
41
|
+
|
|
42
|
+
***********************************************************************/
|
|
43
|
+
|
|
44
|
+
"use strict";
|
|
45
|
+
|
|
46
|
+
(function(){
|
|
47
|
+
|
|
48
|
+
var MOZ_TO_ME = {
|
|
49
|
+
TryStatement : function(M) {
|
|
50
|
+
return new AST_Try({
|
|
51
|
+
start : my_start_token(M),
|
|
52
|
+
end : my_end_token(M),
|
|
53
|
+
body : from_moz(M.block).body,
|
|
54
|
+
bcatch : from_moz(M.handlers[0]),
|
|
55
|
+
bfinally : M.finalizer ? new AST_Finally(from_moz(M.finalizer)) : null
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
CatchClause : function(M) {
|
|
59
|
+
return new AST_Catch({
|
|
60
|
+
start : my_start_token(M),
|
|
61
|
+
end : my_end_token(M),
|
|
62
|
+
argname : from_moz(M.param),
|
|
63
|
+
body : from_moz(M.body).body
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
ObjectExpression : function(M) {
|
|
67
|
+
return new AST_Object({
|
|
68
|
+
start : my_start_token(M),
|
|
69
|
+
end : my_end_token(M),
|
|
70
|
+
properties : M.properties.map(function(prop){
|
|
71
|
+
var key = prop.key;
|
|
72
|
+
var name = key.type == "Identifier" ? key.name : key.value;
|
|
73
|
+
var args = {
|
|
74
|
+
start : my_start_token(key),
|
|
75
|
+
end : my_end_token(prop.value),
|
|
76
|
+
key : name,
|
|
77
|
+
value : from_moz(prop.value)
|
|
78
|
+
};
|
|
79
|
+
switch (prop.kind) {
|
|
80
|
+
case "init":
|
|
81
|
+
return new AST_ObjectKeyVal(args);
|
|
82
|
+
case "set":
|
|
83
|
+
args.value.name = from_moz(key);
|
|
84
|
+
return new AST_ObjectSetter(args);
|
|
85
|
+
case "get":
|
|
86
|
+
args.value.name = from_moz(key);
|
|
87
|
+
return new AST_ObjectGetter(args);
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
});
|
|
91
|
+
},
|
|
92
|
+
SequenceExpression : function(M) {
|
|
93
|
+
return AST_Seq.from_array(M.expressions.map(from_moz));
|
|
94
|
+
},
|
|
95
|
+
MemberExpression : function(M) {
|
|
96
|
+
return new (M.computed ? AST_Sub : AST_Dot)({
|
|
97
|
+
start : my_start_token(M),
|
|
98
|
+
end : my_end_token(M),
|
|
99
|
+
property : M.computed ? from_moz(M.property) : M.property.name,
|
|
100
|
+
expression : from_moz(M.object)
|
|
101
|
+
});
|
|
102
|
+
},
|
|
103
|
+
SwitchCase : function(M) {
|
|
104
|
+
return new (M.test ? AST_Case : AST_Default)({
|
|
105
|
+
start : my_start_token(M),
|
|
106
|
+
end : my_end_token(M),
|
|
107
|
+
expression : from_moz(M.test),
|
|
108
|
+
body : M.consequent.map(from_moz)
|
|
109
|
+
});
|
|
110
|
+
},
|
|
111
|
+
Literal : function(M) {
|
|
112
|
+
var val = M.value, args = {
|
|
113
|
+
start : my_start_token(M),
|
|
114
|
+
end : my_end_token(M)
|
|
115
|
+
};
|
|
116
|
+
if (val === null) return new AST_Null(args);
|
|
117
|
+
switch (typeof val) {
|
|
118
|
+
case "string":
|
|
119
|
+
args.value = val;
|
|
120
|
+
return new AST_String(args);
|
|
121
|
+
case "number":
|
|
122
|
+
args.value = val;
|
|
123
|
+
return new AST_Number(args);
|
|
124
|
+
case "boolean":
|
|
125
|
+
return new (val ? AST_True : AST_False)(args);
|
|
126
|
+
default:
|
|
127
|
+
args.value = val;
|
|
128
|
+
return new AST_RegExp(args);
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
UnaryExpression: From_Moz_Unary,
|
|
132
|
+
UpdateExpression: From_Moz_Unary,
|
|
133
|
+
Identifier: function(M) {
|
|
134
|
+
var p = FROM_MOZ_STACK[FROM_MOZ_STACK.length - 2];
|
|
135
|
+
return new (M.name == "this" ? AST_This
|
|
136
|
+
: p.type == "LabeledStatement" ? AST_Label
|
|
137
|
+
: p.type == "VariableDeclarator" && p.id === M ? (p.kind == "const" ? AST_SymbolConst : AST_SymbolVar)
|
|
138
|
+
: p.type == "FunctionExpression" ? (p.id === M ? AST_SymbolLambda : AST_SymbolFunarg)
|
|
139
|
+
: p.type == "FunctionDeclaration" ? (p.id === M ? AST_SymbolDefun : AST_SymbolFunarg)
|
|
140
|
+
: p.type == "CatchClause" ? AST_SymbolCatch
|
|
141
|
+
: p.type == "BreakStatement" || p.type == "ContinueStatement" ? AST_LabelRef
|
|
142
|
+
: AST_SymbolRef)({
|
|
143
|
+
start : my_start_token(M),
|
|
144
|
+
end : my_end_token(M),
|
|
145
|
+
name : M.name
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
function From_Moz_Unary(M) {
|
|
151
|
+
var prefix = "prefix" in M ? M.prefix
|
|
152
|
+
: M.type == "UnaryExpression" ? true : false;
|
|
153
|
+
return new (prefix ? AST_UnaryPrefix : AST_UnaryPostfix)({
|
|
154
|
+
start : my_start_token(M),
|
|
155
|
+
end : my_end_token(M),
|
|
156
|
+
operator : M.operator,
|
|
157
|
+
expression : from_moz(M.argument)
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
var ME_TO_MOZ = {};
|
|
162
|
+
|
|
163
|
+
map("Node", AST_Node);
|
|
164
|
+
map("Program", AST_Toplevel, "body@body");
|
|
165
|
+
map("Function", AST_Function, "id>name, params@argnames, body%body");
|
|
166
|
+
map("EmptyStatement", AST_EmptyStatement);
|
|
167
|
+
map("BlockStatement", AST_BlockStatement, "body@body");
|
|
168
|
+
map("ExpressionStatement", AST_SimpleStatement, "expression>body");
|
|
169
|
+
map("IfStatement", AST_If, "test>condition, consequent>body, alternate>alternative");
|
|
170
|
+
map("LabeledStatement", AST_LabeledStatement, "label>label, body>body");
|
|
171
|
+
map("BreakStatement", AST_Break, "label>label");
|
|
172
|
+
map("ContinueStatement", AST_Continue, "label>label");
|
|
173
|
+
map("WithStatement", AST_With, "object>expression, body>body");
|
|
174
|
+
map("SwitchStatement", AST_Switch, "discriminant>expression, cases@body");
|
|
175
|
+
map("ReturnStatement", AST_Return, "argument>value");
|
|
176
|
+
map("ThrowStatement", AST_Throw, "argument>value");
|
|
177
|
+
map("WhileStatement", AST_While, "test>condition, body>body");
|
|
178
|
+
map("DoWhileStatement", AST_Do, "test>condition, body>body");
|
|
179
|
+
map("ForStatement", AST_For, "init>init, test>condition, update>step, body>body");
|
|
180
|
+
map("ForInStatement", AST_ForIn, "left>init, right>object, body>body");
|
|
181
|
+
map("DebuggerStatement", AST_Debugger);
|
|
182
|
+
map("FunctionDeclaration", AST_Defun, "id>name, params@argnames, body%body");
|
|
183
|
+
map("VariableDeclaration", AST_Var, "declarations@definitions");
|
|
184
|
+
map("VariableDeclarator", AST_VarDef, "id>name, init>value");
|
|
185
|
+
|
|
186
|
+
map("ThisExpression", AST_This);
|
|
187
|
+
map("ArrayExpression", AST_Array, "elements@elements");
|
|
188
|
+
map("FunctionExpression", AST_Function, "id>name, params@argnames, body%body");
|
|
189
|
+
map("BinaryExpression", AST_Binary, "operator=operator, left>left, right>right");
|
|
190
|
+
map("AssignmentExpression", AST_Assign, "operator=operator, left>left, right>right");
|
|
191
|
+
map("LogicalExpression", AST_Binary, "operator=operator, left>left, right>right");
|
|
192
|
+
map("ConditionalExpression", AST_Conditional, "test>condition, consequent>consequent, alternate>alternative");
|
|
193
|
+
map("NewExpression", AST_New, "callee>expression, arguments@args");
|
|
194
|
+
map("CallExpression", AST_Call, "callee>expression, arguments@args");
|
|
195
|
+
|
|
196
|
+
/* -----[ tools ]----- */
|
|
197
|
+
|
|
198
|
+
function my_start_token(moznode) {
|
|
199
|
+
return new AST_Token({
|
|
200
|
+
file : moznode.loc && moznode.loc.source,
|
|
201
|
+
line : moznode.loc && moznode.loc.start.line,
|
|
202
|
+
col : moznode.loc && moznode.loc.start.column,
|
|
203
|
+
pos : moznode.start,
|
|
204
|
+
endpos : moznode.start
|
|
205
|
+
});
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
function my_end_token(moznode) {
|
|
209
|
+
return new AST_Token({
|
|
210
|
+
file : moznode.loc && moznode.loc.source,
|
|
211
|
+
line : moznode.loc && moznode.loc.end.line,
|
|
212
|
+
col : moznode.loc && moznode.loc.end.column,
|
|
213
|
+
pos : moznode.end,
|
|
214
|
+
endpos : moznode.end
|
|
215
|
+
});
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
function map(moztype, mytype, propmap) {
|
|
219
|
+
var moz_to_me = "function From_Moz_" + moztype + "(M){\n";
|
|
220
|
+
moz_to_me += "return new mytype({\n" +
|
|
221
|
+
"start: my_start_token(M),\n" +
|
|
222
|
+
"end: my_end_token(M)";
|
|
223
|
+
|
|
224
|
+
if (propmap) propmap.split(/\s*,\s*/).forEach(function(prop){
|
|
225
|
+
var m = /([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(prop);
|
|
226
|
+
if (!m) throw new Error("Can't understand property map: " + prop);
|
|
227
|
+
var moz = "M." + m[1], how = m[2], my = m[3];
|
|
228
|
+
moz_to_me += ",\n" + my + ": ";
|
|
229
|
+
if (how == "@") {
|
|
230
|
+
moz_to_me += moz + ".map(from_moz)";
|
|
231
|
+
} else if (how == ">") {
|
|
232
|
+
moz_to_me += "from_moz(" + moz + ")";
|
|
233
|
+
} else if (how == "=") {
|
|
234
|
+
moz_to_me += moz;
|
|
235
|
+
} else if (how == "%") {
|
|
236
|
+
moz_to_me += "from_moz(" + moz + ").body";
|
|
237
|
+
} else throw new Error("Can't understand operator in propmap: " + prop);
|
|
238
|
+
});
|
|
239
|
+
moz_to_me += "\n})}";
|
|
240
|
+
|
|
241
|
+
// moz_to_me = parse(moz_to_me).print_to_string({ beautify: true });
|
|
242
|
+
// console.log(moz_to_me);
|
|
243
|
+
|
|
244
|
+
moz_to_me = new Function("mytype", "my_start_token", "my_end_token", "from_moz", "return(" + moz_to_me + ")")(
|
|
245
|
+
mytype, my_start_token, my_end_token, from_moz
|
|
246
|
+
);
|
|
247
|
+
return MOZ_TO_ME[moztype] = moz_to_me;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
var FROM_MOZ_STACK = null;
|
|
251
|
+
|
|
252
|
+
function from_moz(node) {
|
|
253
|
+
FROM_MOZ_STACK.push(node);
|
|
254
|
+
var ret = node != null ? MOZ_TO_ME[node.type](node) : null;
|
|
255
|
+
FROM_MOZ_STACK.pop();
|
|
256
|
+
return ret;
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
AST_Node.from_mozilla_ast = function(node){
|
|
260
|
+
var save_stack = FROM_MOZ_STACK;
|
|
261
|
+
FROM_MOZ_STACK = [];
|
|
262
|
+
var ast = from_moz(node);
|
|
263
|
+
FROM_MOZ_STACK = save_stack;
|
|
264
|
+
return ast;
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
})();
|
data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/output.js
ADDED
|
@@ -0,0 +1,1229 @@
|
|
|
1
|
+
/***********************************************************************
|
|
2
|
+
|
|
3
|
+
A JavaScript tokenizer / parser / beautifier / compressor.
|
|
4
|
+
https://github.com/mishoo/UglifyJS2
|
|
5
|
+
|
|
6
|
+
-------------------------------- (C) ---------------------------------
|
|
7
|
+
|
|
8
|
+
Author: Mihai Bazon
|
|
9
|
+
<mihai.bazon@gmail.com>
|
|
10
|
+
http://mihai.bazon.net/blog
|
|
11
|
+
|
|
12
|
+
Distributed under the BSD license:
|
|
13
|
+
|
|
14
|
+
Copyright 2012 (c) Mihai Bazon <mihai.bazon@gmail.com>
|
|
15
|
+
|
|
16
|
+
Redistribution and use in source and binary forms, with or without
|
|
17
|
+
modification, are permitted provided that the following conditions
|
|
18
|
+
are met:
|
|
19
|
+
|
|
20
|
+
* Redistributions of source code must retain the above
|
|
21
|
+
copyright notice, this list of conditions and the following
|
|
22
|
+
disclaimer.
|
|
23
|
+
|
|
24
|
+
* Redistributions in binary form must reproduce the above
|
|
25
|
+
copyright notice, this list of conditions and the following
|
|
26
|
+
disclaimer in the documentation and/or other materials
|
|
27
|
+
provided with the distribution.
|
|
28
|
+
|
|
29
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY
|
|
30
|
+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
31
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
32
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
|
|
33
|
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
|
34
|
+
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
35
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
36
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
37
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
|
38
|
+
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
|
39
|
+
THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
40
|
+
SUCH DAMAGE.
|
|
41
|
+
|
|
42
|
+
***********************************************************************/
|
|
43
|
+
|
|
44
|
+
"use strict";
|
|
45
|
+
|
|
46
|
+
function OutputStream(options) {
|
|
47
|
+
|
|
48
|
+
options = defaults(options, {
|
|
49
|
+
indent_start : 0,
|
|
50
|
+
indent_level : 4,
|
|
51
|
+
quote_keys : false,
|
|
52
|
+
space_colon : true,
|
|
53
|
+
ascii_only : false,
|
|
54
|
+
inline_script : false,
|
|
55
|
+
width : 80,
|
|
56
|
+
max_line_len : 32000,
|
|
57
|
+
ie_proof : true,
|
|
58
|
+
beautify : false,
|
|
59
|
+
source_map : null,
|
|
60
|
+
bracketize : false,
|
|
61
|
+
semicolons : true,
|
|
62
|
+
comments : false,
|
|
63
|
+
preserve_line : false,
|
|
64
|
+
negate_iife : !(options && options.beautify),
|
|
65
|
+
}, true);
|
|
66
|
+
|
|
67
|
+
var indentation = 0;
|
|
68
|
+
var current_col = 0;
|
|
69
|
+
var current_line = 1;
|
|
70
|
+
var current_pos = 0;
|
|
71
|
+
var OUTPUT = "";
|
|
72
|
+
|
|
73
|
+
function to_ascii(str, identifier) {
|
|
74
|
+
return str.replace(/[\u0080-\uffff]/g, function(ch) {
|
|
75
|
+
var code = ch.charCodeAt(0).toString(16);
|
|
76
|
+
if (code.length <= 2 && !identifier) {
|
|
77
|
+
while (code.length < 2) code = "0" + code;
|
|
78
|
+
return "\\x" + code;
|
|
79
|
+
} else {
|
|
80
|
+
while (code.length < 4) code = "0" + code;
|
|
81
|
+
return "\\u" + code;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
function make_string(str) {
|
|
87
|
+
var dq = 0, sq = 0;
|
|
88
|
+
str = str.replace(/[\\\b\f\n\r\t\x22\x27\u2028\u2029\0]/g, function(s){
|
|
89
|
+
switch (s) {
|
|
90
|
+
case "\\": return "\\\\";
|
|
91
|
+
case "\b": return "\\b";
|
|
92
|
+
case "\f": return "\\f";
|
|
93
|
+
case "\n": return "\\n";
|
|
94
|
+
case "\r": return "\\r";
|
|
95
|
+
case "\u2028": return "\\u2028";
|
|
96
|
+
case "\u2029": return "\\u2029";
|
|
97
|
+
case '"': ++dq; return '"';
|
|
98
|
+
case "'": ++sq; return "'";
|
|
99
|
+
case "\0": return "\\0";
|
|
100
|
+
}
|
|
101
|
+
return s;
|
|
102
|
+
});
|
|
103
|
+
if (options.ascii_only) str = to_ascii(str);
|
|
104
|
+
if (dq > sq) return "'" + str.replace(/\x27/g, "\\'") + "'";
|
|
105
|
+
else return '"' + str.replace(/\x22/g, '\\"') + '"';
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
function encode_string(str) {
|
|
109
|
+
var ret = make_string(str);
|
|
110
|
+
if (options.inline_script)
|
|
111
|
+
ret = ret.replace(/<\x2fscript([>\/\t\n\f\r ])/gi, "<\\/script$1");
|
|
112
|
+
return ret;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
function make_name(name) {
|
|
116
|
+
name = name.toString();
|
|
117
|
+
if (options.ascii_only)
|
|
118
|
+
name = to_ascii(name, true);
|
|
119
|
+
return name;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
function make_indent(back) {
|
|
123
|
+
return repeat_string(" ", options.indent_start + indentation - back * options.indent_level);
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
/* -----[ beautification/minification ]----- */
|
|
127
|
+
|
|
128
|
+
var might_need_space = false;
|
|
129
|
+
var might_need_semicolon = false;
|
|
130
|
+
var last = null;
|
|
131
|
+
|
|
132
|
+
function last_char() {
|
|
133
|
+
return last.charAt(last.length - 1);
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
function maybe_newline() {
|
|
137
|
+
if (options.max_line_len && current_col > options.max_line_len)
|
|
138
|
+
print("\n");
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
var requireSemicolonChars = makePredicate("( [ + * / - , .");
|
|
142
|
+
|
|
143
|
+
function print(str) {
|
|
144
|
+
str = String(str);
|
|
145
|
+
var ch = str.charAt(0);
|
|
146
|
+
if (might_need_semicolon) {
|
|
147
|
+
if ((!ch || ";}".indexOf(ch) < 0) && !/[;]$/.test(last)) {
|
|
148
|
+
if (options.semicolons || requireSemicolonChars(ch)) {
|
|
149
|
+
OUTPUT += ";";
|
|
150
|
+
current_col++;
|
|
151
|
+
current_pos++;
|
|
152
|
+
} else {
|
|
153
|
+
OUTPUT += "\n";
|
|
154
|
+
current_pos++;
|
|
155
|
+
current_line++;
|
|
156
|
+
current_col = 0;
|
|
157
|
+
}
|
|
158
|
+
if (!options.beautify)
|
|
159
|
+
might_need_space = false;
|
|
160
|
+
}
|
|
161
|
+
might_need_semicolon = false;
|
|
162
|
+
maybe_newline();
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
if (!options.beautify && options.preserve_line && stack[stack.length - 1]) {
|
|
166
|
+
var target_line = stack[stack.length - 1].start.line;
|
|
167
|
+
while (current_line < target_line) {
|
|
168
|
+
OUTPUT += "\n";
|
|
169
|
+
current_pos++;
|
|
170
|
+
current_line++;
|
|
171
|
+
current_col = 0;
|
|
172
|
+
might_need_space = false;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
if (might_need_space) {
|
|
177
|
+
var prev = last_char();
|
|
178
|
+
if ((is_identifier_char(prev)
|
|
179
|
+
&& (is_identifier_char(ch) || ch == "\\"))
|
|
180
|
+
|| (/^[\+\-\/]$/.test(ch) && ch == prev))
|
|
181
|
+
{
|
|
182
|
+
OUTPUT += " ";
|
|
183
|
+
current_col++;
|
|
184
|
+
current_pos++;
|
|
185
|
+
}
|
|
186
|
+
might_need_space = false;
|
|
187
|
+
}
|
|
188
|
+
var a = str.split(/\r?\n/), n = a.length - 1;
|
|
189
|
+
current_line += n;
|
|
190
|
+
if (n == 0) {
|
|
191
|
+
current_col += a[n].length;
|
|
192
|
+
} else {
|
|
193
|
+
current_col = a[n].length;
|
|
194
|
+
}
|
|
195
|
+
current_pos += str.length;
|
|
196
|
+
last = str;
|
|
197
|
+
OUTPUT += str;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
var space = options.beautify ? function() {
|
|
201
|
+
print(" ");
|
|
202
|
+
} : function() {
|
|
203
|
+
might_need_space = true;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
var indent = options.beautify ? function(half) {
|
|
207
|
+
if (options.beautify) {
|
|
208
|
+
print(make_indent(half ? 0.5 : 0));
|
|
209
|
+
}
|
|
210
|
+
} : noop;
|
|
211
|
+
|
|
212
|
+
var with_indent = options.beautify ? function(col, cont) {
|
|
213
|
+
if (col === true) col = next_indent();
|
|
214
|
+
var save_indentation = indentation;
|
|
215
|
+
indentation = col;
|
|
216
|
+
var ret = cont();
|
|
217
|
+
indentation = save_indentation;
|
|
218
|
+
return ret;
|
|
219
|
+
} : function(col, cont) { return cont() };
|
|
220
|
+
|
|
221
|
+
var newline = options.beautify ? function() {
|
|
222
|
+
print("\n");
|
|
223
|
+
} : noop;
|
|
224
|
+
|
|
225
|
+
var semicolon = options.beautify ? function() {
|
|
226
|
+
print(";");
|
|
227
|
+
} : function() {
|
|
228
|
+
might_need_semicolon = true;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
function force_semicolon() {
|
|
232
|
+
might_need_semicolon = false;
|
|
233
|
+
print(";");
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
function next_indent() {
|
|
237
|
+
return indentation + options.indent_level;
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
function with_block(cont) {
|
|
241
|
+
var ret;
|
|
242
|
+
print("{");
|
|
243
|
+
newline();
|
|
244
|
+
with_indent(next_indent(), function(){
|
|
245
|
+
ret = cont();
|
|
246
|
+
});
|
|
247
|
+
indent();
|
|
248
|
+
print("}");
|
|
249
|
+
return ret;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
function with_parens(cont) {
|
|
253
|
+
print("(");
|
|
254
|
+
//XXX: still nice to have that for argument lists
|
|
255
|
+
//var ret = with_indent(current_col, cont);
|
|
256
|
+
var ret = cont();
|
|
257
|
+
print(")");
|
|
258
|
+
return ret;
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
function with_square(cont) {
|
|
262
|
+
print("[");
|
|
263
|
+
//var ret = with_indent(current_col, cont);
|
|
264
|
+
var ret = cont();
|
|
265
|
+
print("]");
|
|
266
|
+
return ret;
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
function comma() {
|
|
270
|
+
print(",");
|
|
271
|
+
space();
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
function colon() {
|
|
275
|
+
print(":");
|
|
276
|
+
if (options.space_colon) space();
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
var add_mapping = options.source_map ? function(token, name) {
|
|
280
|
+
try {
|
|
281
|
+
if (token) options.source_map.add(
|
|
282
|
+
token.file || "?",
|
|
283
|
+
current_line, current_col,
|
|
284
|
+
token.line, token.col,
|
|
285
|
+
(!name && token.type == "name") ? token.value : name
|
|
286
|
+
);
|
|
287
|
+
} catch(ex) {
|
|
288
|
+
AST_Node.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]", {
|
|
289
|
+
file: token.file,
|
|
290
|
+
line: token.line,
|
|
291
|
+
col: token.col,
|
|
292
|
+
cline: current_line,
|
|
293
|
+
ccol: current_col,
|
|
294
|
+
name: name || ""
|
|
295
|
+
})
|
|
296
|
+
}
|
|
297
|
+
} : noop;
|
|
298
|
+
|
|
299
|
+
function get() {
|
|
300
|
+
return OUTPUT;
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
var stack = [];
|
|
304
|
+
return {
|
|
305
|
+
get : get,
|
|
306
|
+
toString : get,
|
|
307
|
+
indent : indent,
|
|
308
|
+
indentation : function() { return indentation },
|
|
309
|
+
current_width : function() { return current_col - indentation },
|
|
310
|
+
should_break : function() { return options.width && this.current_width() >= options.width },
|
|
311
|
+
newline : newline,
|
|
312
|
+
print : print,
|
|
313
|
+
space : space,
|
|
314
|
+
comma : comma,
|
|
315
|
+
colon : colon,
|
|
316
|
+
last : function() { return last },
|
|
317
|
+
semicolon : semicolon,
|
|
318
|
+
force_semicolon : force_semicolon,
|
|
319
|
+
to_ascii : to_ascii,
|
|
320
|
+
print_name : function(name) { print(make_name(name)) },
|
|
321
|
+
print_string : function(str) { print(encode_string(str)) },
|
|
322
|
+
next_indent : next_indent,
|
|
323
|
+
with_indent : with_indent,
|
|
324
|
+
with_block : with_block,
|
|
325
|
+
with_parens : with_parens,
|
|
326
|
+
with_square : with_square,
|
|
327
|
+
add_mapping : add_mapping,
|
|
328
|
+
option : function(opt) { return options[opt] },
|
|
329
|
+
line : function() { return current_line },
|
|
330
|
+
col : function() { return current_col },
|
|
331
|
+
pos : function() { return current_pos },
|
|
332
|
+
push_node : function(node) { stack.push(node) },
|
|
333
|
+
pop_node : function() { return stack.pop() },
|
|
334
|
+
stack : function() { return stack },
|
|
335
|
+
parent : function(n) {
|
|
336
|
+
return stack[stack.length - 2 - (n || 0)];
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
/* -----[ code generators ]----- */
|
|
343
|
+
|
|
344
|
+
(function(){
|
|
345
|
+
|
|
346
|
+
/* -----[ utils ]----- */
|
|
347
|
+
|
|
348
|
+
function DEFPRINT(nodetype, generator) {
|
|
349
|
+
nodetype.DEFMETHOD("_codegen", generator);
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
AST_Node.DEFMETHOD("print", function(stream, force_parens){
|
|
353
|
+
var self = this, generator = self._codegen;
|
|
354
|
+
stream.push_node(self);
|
|
355
|
+
var needs_parens = self.needs_parens(stream);
|
|
356
|
+
var fc = self instanceof AST_Function && stream.option("negate_iife");
|
|
357
|
+
if (force_parens || (needs_parens && !fc)) {
|
|
358
|
+
stream.with_parens(function(){
|
|
359
|
+
self.add_comments(stream);
|
|
360
|
+
self.add_source_map(stream);
|
|
361
|
+
generator(self, stream);
|
|
362
|
+
});
|
|
363
|
+
} else {
|
|
364
|
+
self.add_comments(stream);
|
|
365
|
+
if (needs_parens && fc) stream.print("!");
|
|
366
|
+
self.add_source_map(stream);
|
|
367
|
+
generator(self, stream);
|
|
368
|
+
}
|
|
369
|
+
stream.pop_node();
|
|
370
|
+
});
|
|
371
|
+
|
|
372
|
+
AST_Node.DEFMETHOD("print_to_string", function(options){
|
|
373
|
+
var s = OutputStream(options);
|
|
374
|
+
this.print(s);
|
|
375
|
+
return s.get();
|
|
376
|
+
});
|
|
377
|
+
|
|
378
|
+
/* -----[ comments ]----- */
|
|
379
|
+
|
|
380
|
+
AST_Node.DEFMETHOD("add_comments", function(output){
|
|
381
|
+
var c = output.option("comments"), self = this;
|
|
382
|
+
if (c) {
|
|
383
|
+
var start = self.start;
|
|
384
|
+
if (start && !start._comments_dumped) {
|
|
385
|
+
start._comments_dumped = true;
|
|
386
|
+
var comments = start.comments_before;
|
|
387
|
+
|
|
388
|
+
// XXX: ugly fix for https://github.com/mishoo/UglifyJS2/issues/112
|
|
389
|
+
// if this node is `return` or `throw`, we cannot allow comments before
|
|
390
|
+
// the returned or thrown value.
|
|
391
|
+
if (self instanceof AST_Exit &&
|
|
392
|
+
self.value && self.value.start.comments_before.length > 0) {
|
|
393
|
+
comments = (comments || []).concat(self.value.start.comments_before);
|
|
394
|
+
self.value.start.comments_before = [];
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
if (c.test) {
|
|
398
|
+
comments = comments.filter(function(comment){
|
|
399
|
+
return c.test(comment.value);
|
|
400
|
+
});
|
|
401
|
+
} else if (typeof c == "function") {
|
|
402
|
+
comments = comments.filter(function(comment){
|
|
403
|
+
return c(self, comment);
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
comments.forEach(function(c){
|
|
407
|
+
if (c.type == "comment1") {
|
|
408
|
+
output.print("//" + c.value + "\n");
|
|
409
|
+
output.indent();
|
|
410
|
+
}
|
|
411
|
+
else if (c.type == "comment2") {
|
|
412
|
+
output.print("/*" + c.value + "*/");
|
|
413
|
+
if (start.nlb) {
|
|
414
|
+
output.print("\n");
|
|
415
|
+
output.indent();
|
|
416
|
+
} else {
|
|
417
|
+
output.space();
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
|
|
425
|
+
/* -----[ PARENTHESES ]----- */
|
|
426
|
+
|
|
427
|
+
function PARENS(nodetype, func) {
|
|
428
|
+
nodetype.DEFMETHOD("needs_parens", func);
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
PARENS(AST_Node, function(){
|
|
432
|
+
return false;
|
|
433
|
+
});
|
|
434
|
+
|
|
435
|
+
// a function expression needs parens around it when it's provably
|
|
436
|
+
// the first token to appear in a statement.
|
|
437
|
+
PARENS(AST_Function, function(output){
|
|
438
|
+
return first_in_statement(output);
|
|
439
|
+
});
|
|
440
|
+
|
|
441
|
+
// same goes for an object literal, because otherwise it would be
|
|
442
|
+
// interpreted as a block of code.
|
|
443
|
+
PARENS(AST_Object, function(output){
|
|
444
|
+
return first_in_statement(output);
|
|
445
|
+
});
|
|
446
|
+
|
|
447
|
+
PARENS(AST_Unary, function(output){
|
|
448
|
+
var p = output.parent();
|
|
449
|
+
return p instanceof AST_PropAccess && p.expression === this;
|
|
450
|
+
});
|
|
451
|
+
|
|
452
|
+
PARENS(AST_Seq, function(output){
|
|
453
|
+
var p = output.parent();
|
|
454
|
+
return p instanceof AST_Call // (foo, bar)() or foo(1, (2, 3), 4)
|
|
455
|
+
|| p instanceof AST_Unary // !(foo, bar, baz)
|
|
456
|
+
|| p instanceof AST_Binary // 1 + (2, 3) + 4 ==> 8
|
|
457
|
+
|| p instanceof AST_VarDef // var a = (1, 2), b = a + a; ==> b == 4
|
|
458
|
+
|| p instanceof AST_Dot // (1, {foo:2}).foo ==> 2
|
|
459
|
+
|| p instanceof AST_Array // [ 1, (2, 3), 4 ] ==> [ 1, 3, 4 ]
|
|
460
|
+
|| p instanceof AST_ObjectProperty // { foo: (1, 2) }.foo ==> 2
|
|
461
|
+
|| p instanceof AST_Conditional /* (false, true) ? (a = 10, b = 20) : (c = 30)
|
|
462
|
+
* ==> 20 (side effect, set a := 10 and b := 20) */
|
|
463
|
+
;
|
|
464
|
+
});
|
|
465
|
+
|
|
466
|
+
PARENS(AST_Binary, function(output){
|
|
467
|
+
var p = output.parent();
|
|
468
|
+
// (foo && bar)()
|
|
469
|
+
if (p instanceof AST_Call && p.expression === this)
|
|
470
|
+
return true;
|
|
471
|
+
// typeof (foo && bar)
|
|
472
|
+
if (p instanceof AST_Unary)
|
|
473
|
+
return true;
|
|
474
|
+
// (foo && bar)["prop"], (foo && bar).prop
|
|
475
|
+
if (p instanceof AST_PropAccess && p.expression === this)
|
|
476
|
+
return true;
|
|
477
|
+
// this deals with precedence: 3 * (2 + 1)
|
|
478
|
+
if (p instanceof AST_Binary) {
|
|
479
|
+
var po = p.operator, pp = PRECEDENCE[po];
|
|
480
|
+
var so = this.operator, sp = PRECEDENCE[so];
|
|
481
|
+
if (pp > sp
|
|
482
|
+
|| (pp == sp
|
|
483
|
+
&& this === p.right
|
|
484
|
+
&& !(so == po &&
|
|
485
|
+
(so == "*" ||
|
|
486
|
+
so == "&&" ||
|
|
487
|
+
so == "||")))) {
|
|
488
|
+
return true;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
});
|
|
492
|
+
|
|
493
|
+
PARENS(AST_PropAccess, function(output){
|
|
494
|
+
var p = output.parent();
|
|
495
|
+
if (p instanceof AST_New && p.expression === this) {
|
|
496
|
+
// i.e. new (foo.bar().baz)
|
|
497
|
+
//
|
|
498
|
+
// if there's one call into this subtree, then we need
|
|
499
|
+
// parens around it too, otherwise the call will be
|
|
500
|
+
// interpreted as passing the arguments to the upper New
|
|
501
|
+
// expression.
|
|
502
|
+
try {
|
|
503
|
+
this.walk(new TreeWalker(function(node){
|
|
504
|
+
if (node instanceof AST_Call) throw p;
|
|
505
|
+
}));
|
|
506
|
+
} catch(ex) {
|
|
507
|
+
if (ex !== p) throw ex;
|
|
508
|
+
return true;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
});
|
|
512
|
+
|
|
513
|
+
PARENS(AST_Call, function(output){
|
|
514
|
+
var p = output.parent();
|
|
515
|
+
return p instanceof AST_New && p.expression === this;
|
|
516
|
+
});
|
|
517
|
+
|
|
518
|
+
PARENS(AST_New, function(output){
|
|
519
|
+
var p = output.parent();
|
|
520
|
+
if (no_constructor_parens(this, output)
|
|
521
|
+
&& (p instanceof AST_PropAccess // (new Date).getTime(), (new Date)["getTime"]()
|
|
522
|
+
|| p instanceof AST_Call && p.expression === this)) // (new foo)(bar)
|
|
523
|
+
return true;
|
|
524
|
+
});
|
|
525
|
+
|
|
526
|
+
PARENS(AST_Number, function(output){
|
|
527
|
+
var p = output.parent();
|
|
528
|
+
if (this.getValue() < 0 && p instanceof AST_PropAccess && p.expression === this)
|
|
529
|
+
return true;
|
|
530
|
+
});
|
|
531
|
+
|
|
532
|
+
PARENS(AST_NaN, function(output){
|
|
533
|
+
var p = output.parent();
|
|
534
|
+
if (p instanceof AST_PropAccess && p.expression === this)
|
|
535
|
+
return true;
|
|
536
|
+
});
|
|
537
|
+
|
|
538
|
+
function assign_and_conditional_paren_rules(output) {
|
|
539
|
+
var p = output.parent();
|
|
540
|
+
// !(a = false) → true
|
|
541
|
+
if (p instanceof AST_Unary)
|
|
542
|
+
return true;
|
|
543
|
+
// 1 + (a = 2) + 3 → 6, side effect setting a = 2
|
|
544
|
+
if (p instanceof AST_Binary && !(p instanceof AST_Assign))
|
|
545
|
+
return true;
|
|
546
|
+
// (a = func)() —or— new (a = Object)()
|
|
547
|
+
if (p instanceof AST_Call && p.expression === this)
|
|
548
|
+
return true;
|
|
549
|
+
// (a = foo) ? bar : baz
|
|
550
|
+
if (p instanceof AST_Conditional && p.condition === this)
|
|
551
|
+
return true;
|
|
552
|
+
// (a = foo)["prop"] —or— (a = foo).prop
|
|
553
|
+
if (p instanceof AST_PropAccess && p.expression === this)
|
|
554
|
+
return true;
|
|
555
|
+
};
|
|
556
|
+
|
|
557
|
+
PARENS(AST_Assign, assign_and_conditional_paren_rules);
|
|
558
|
+
PARENS(AST_Conditional, assign_and_conditional_paren_rules);
|
|
559
|
+
|
|
560
|
+
/* -----[ PRINTERS ]----- */
|
|
561
|
+
|
|
562
|
+
DEFPRINT(AST_Directive, function(self, output){
|
|
563
|
+
output.print_string(self.value);
|
|
564
|
+
output.semicolon();
|
|
565
|
+
});
|
|
566
|
+
DEFPRINT(AST_Debugger, function(self, output){
|
|
567
|
+
output.print("debugger");
|
|
568
|
+
output.semicolon();
|
|
569
|
+
});
|
|
570
|
+
|
|
571
|
+
/* -----[ statements ]----- */
|
|
572
|
+
|
|
573
|
+
function display_body(body, is_toplevel, output) {
|
|
574
|
+
var last = body.length - 1;
|
|
575
|
+
body.forEach(function(stmt, i){
|
|
576
|
+
if (!(stmt instanceof AST_EmptyStatement)) {
|
|
577
|
+
output.indent();
|
|
578
|
+
stmt.print(output);
|
|
579
|
+
if (!(i == last && is_toplevel)) {
|
|
580
|
+
output.newline();
|
|
581
|
+
if (is_toplevel) output.newline();
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
});
|
|
585
|
+
};
|
|
586
|
+
|
|
587
|
+
AST_StatementWithBody.DEFMETHOD("_do_print_body", function(output){
|
|
588
|
+
force_statement(this.body, output);
|
|
589
|
+
});
|
|
590
|
+
|
|
591
|
+
DEFPRINT(AST_Statement, function(self, output){
|
|
592
|
+
self.body.print(output);
|
|
593
|
+
output.semicolon();
|
|
594
|
+
});
|
|
595
|
+
DEFPRINT(AST_Toplevel, function(self, output){
|
|
596
|
+
display_body(self.body, true, output);
|
|
597
|
+
output.print("");
|
|
598
|
+
});
|
|
599
|
+
DEFPRINT(AST_LabeledStatement, function(self, output){
|
|
600
|
+
self.label.print(output);
|
|
601
|
+
output.colon();
|
|
602
|
+
self.body.print(output);
|
|
603
|
+
});
|
|
604
|
+
DEFPRINT(AST_SimpleStatement, function(self, output){
|
|
605
|
+
self.body.print(output);
|
|
606
|
+
output.semicolon();
|
|
607
|
+
});
|
|
608
|
+
function print_bracketed(body, output) {
|
|
609
|
+
if (body.length > 0) output.with_block(function(){
|
|
610
|
+
display_body(body, false, output);
|
|
611
|
+
});
|
|
612
|
+
else output.print("{}");
|
|
613
|
+
};
|
|
614
|
+
DEFPRINT(AST_BlockStatement, function(self, output){
|
|
615
|
+
print_bracketed(self.body, output);
|
|
616
|
+
});
|
|
617
|
+
DEFPRINT(AST_EmptyStatement, function(self, output){
|
|
618
|
+
output.semicolon();
|
|
619
|
+
});
|
|
620
|
+
DEFPRINT(AST_Do, function(self, output){
|
|
621
|
+
output.print("do");
|
|
622
|
+
output.space();
|
|
623
|
+
self._do_print_body(output);
|
|
624
|
+
output.space();
|
|
625
|
+
output.print("while");
|
|
626
|
+
output.space();
|
|
627
|
+
output.with_parens(function(){
|
|
628
|
+
self.condition.print(output);
|
|
629
|
+
});
|
|
630
|
+
output.semicolon();
|
|
631
|
+
});
|
|
632
|
+
DEFPRINT(AST_While, function(self, output){
|
|
633
|
+
output.print("while");
|
|
634
|
+
output.space();
|
|
635
|
+
output.with_parens(function(){
|
|
636
|
+
self.condition.print(output);
|
|
637
|
+
});
|
|
638
|
+
output.space();
|
|
639
|
+
self._do_print_body(output);
|
|
640
|
+
});
|
|
641
|
+
DEFPRINT(AST_For, function(self, output){
|
|
642
|
+
output.print("for");
|
|
643
|
+
output.space();
|
|
644
|
+
output.with_parens(function(){
|
|
645
|
+
if (self.init) {
|
|
646
|
+
if (self.init instanceof AST_Definitions) {
|
|
647
|
+
self.init.print(output);
|
|
648
|
+
} else {
|
|
649
|
+
parenthesize_for_noin(self.init, output, true);
|
|
650
|
+
}
|
|
651
|
+
output.print(";");
|
|
652
|
+
output.space();
|
|
653
|
+
} else {
|
|
654
|
+
output.print(";");
|
|
655
|
+
}
|
|
656
|
+
if (self.condition) {
|
|
657
|
+
self.condition.print(output);
|
|
658
|
+
output.print(";");
|
|
659
|
+
output.space();
|
|
660
|
+
} else {
|
|
661
|
+
output.print(";");
|
|
662
|
+
}
|
|
663
|
+
if (self.step) {
|
|
664
|
+
self.step.print(output);
|
|
665
|
+
}
|
|
666
|
+
});
|
|
667
|
+
output.space();
|
|
668
|
+
self._do_print_body(output);
|
|
669
|
+
});
|
|
670
|
+
DEFPRINT(AST_ForIn, function(self, output){
|
|
671
|
+
output.print("for");
|
|
672
|
+
output.space();
|
|
673
|
+
output.with_parens(function(){
|
|
674
|
+
self.init.print(output);
|
|
675
|
+
output.space();
|
|
676
|
+
output.print("in");
|
|
677
|
+
output.space();
|
|
678
|
+
self.object.print(output);
|
|
679
|
+
});
|
|
680
|
+
output.space();
|
|
681
|
+
self._do_print_body(output);
|
|
682
|
+
});
|
|
683
|
+
DEFPRINT(AST_With, function(self, output){
|
|
684
|
+
output.print("with");
|
|
685
|
+
output.space();
|
|
686
|
+
output.with_parens(function(){
|
|
687
|
+
self.expression.print(output);
|
|
688
|
+
});
|
|
689
|
+
output.space();
|
|
690
|
+
self._do_print_body(output);
|
|
691
|
+
});
|
|
692
|
+
|
|
693
|
+
/* -----[ functions ]----- */
|
|
694
|
+
AST_Lambda.DEFMETHOD("_do_print", function(output, nokeyword){
|
|
695
|
+
var self = this;
|
|
696
|
+
if (!nokeyword) {
|
|
697
|
+
output.print("function");
|
|
698
|
+
}
|
|
699
|
+
if (self.name) {
|
|
700
|
+
output.space();
|
|
701
|
+
self.name.print(output);
|
|
702
|
+
}
|
|
703
|
+
output.with_parens(function(){
|
|
704
|
+
self.argnames.forEach(function(arg, i){
|
|
705
|
+
if (i) output.comma();
|
|
706
|
+
arg.print(output);
|
|
707
|
+
});
|
|
708
|
+
});
|
|
709
|
+
output.space();
|
|
710
|
+
print_bracketed(self.body, output);
|
|
711
|
+
});
|
|
712
|
+
DEFPRINT(AST_Lambda, function(self, output){
|
|
713
|
+
self._do_print(output);
|
|
714
|
+
});
|
|
715
|
+
|
|
716
|
+
/* -----[ exits ]----- */
|
|
717
|
+
AST_Exit.DEFMETHOD("_do_print", function(output, kind){
|
|
718
|
+
output.print(kind);
|
|
719
|
+
if (this.value) {
|
|
720
|
+
output.space();
|
|
721
|
+
this.value.print(output);
|
|
722
|
+
}
|
|
723
|
+
output.semicolon();
|
|
724
|
+
});
|
|
725
|
+
DEFPRINT(AST_Return, function(self, output){
|
|
726
|
+
self._do_print(output, "return");
|
|
727
|
+
});
|
|
728
|
+
DEFPRINT(AST_Throw, function(self, output){
|
|
729
|
+
self._do_print(output, "throw");
|
|
730
|
+
});
|
|
731
|
+
|
|
732
|
+
/* -----[ loop control ]----- */
|
|
733
|
+
AST_LoopControl.DEFMETHOD("_do_print", function(output, kind){
|
|
734
|
+
output.print(kind);
|
|
735
|
+
if (this.label) {
|
|
736
|
+
output.space();
|
|
737
|
+
this.label.print(output);
|
|
738
|
+
}
|
|
739
|
+
output.semicolon();
|
|
740
|
+
});
|
|
741
|
+
DEFPRINT(AST_Break, function(self, output){
|
|
742
|
+
self._do_print(output, "break");
|
|
743
|
+
});
|
|
744
|
+
DEFPRINT(AST_Continue, function(self, output){
|
|
745
|
+
self._do_print(output, "continue");
|
|
746
|
+
});
|
|
747
|
+
|
|
748
|
+
/* -----[ if ]----- */
|
|
749
|
+
function make_then(self, output) {
|
|
750
|
+
if (output.option("bracketize")) {
|
|
751
|
+
make_block(self.body, output);
|
|
752
|
+
return;
|
|
753
|
+
}
|
|
754
|
+
// The squeezer replaces "block"-s that contain only a single
|
|
755
|
+
// statement with the statement itself; technically, the AST
|
|
756
|
+
// is correct, but this can create problems when we output an
|
|
757
|
+
// IF having an ELSE clause where the THEN clause ends in an
|
|
758
|
+
// IF *without* an ELSE block (then the outer ELSE would refer
|
|
759
|
+
// to the inner IF). This function checks for this case and
|
|
760
|
+
// adds the block brackets if needed.
|
|
761
|
+
if (!self.body)
|
|
762
|
+
return output.force_semicolon();
|
|
763
|
+
if (self.body instanceof AST_Do
|
|
764
|
+
&& output.option("ie_proof")) {
|
|
765
|
+
// https://github.com/mishoo/UglifyJS/issues/#issue/57 IE
|
|
766
|
+
// croaks with "syntax error" on code like this: if (foo)
|
|
767
|
+
// do ... while(cond); else ... we need block brackets
|
|
768
|
+
// around do/while
|
|
769
|
+
make_block(self.body, output);
|
|
770
|
+
return;
|
|
771
|
+
}
|
|
772
|
+
var b = self.body;
|
|
773
|
+
while (true) {
|
|
774
|
+
if (b instanceof AST_If) {
|
|
775
|
+
if (!b.alternative) {
|
|
776
|
+
make_block(self.body, output);
|
|
777
|
+
return;
|
|
778
|
+
}
|
|
779
|
+
b = b.alternative;
|
|
780
|
+
}
|
|
781
|
+
else if (b instanceof AST_StatementWithBody) {
|
|
782
|
+
b = b.body;
|
|
783
|
+
}
|
|
784
|
+
else break;
|
|
785
|
+
}
|
|
786
|
+
force_statement(self.body, output);
|
|
787
|
+
};
|
|
788
|
+
DEFPRINT(AST_If, function(self, output){
|
|
789
|
+
output.print("if");
|
|
790
|
+
output.space();
|
|
791
|
+
output.with_parens(function(){
|
|
792
|
+
self.condition.print(output);
|
|
793
|
+
});
|
|
794
|
+
output.space();
|
|
795
|
+
if (self.alternative) {
|
|
796
|
+
make_then(self, output);
|
|
797
|
+
output.space();
|
|
798
|
+
output.print("else");
|
|
799
|
+
output.space();
|
|
800
|
+
force_statement(self.alternative, output);
|
|
801
|
+
} else {
|
|
802
|
+
self._do_print_body(output);
|
|
803
|
+
}
|
|
804
|
+
});
|
|
805
|
+
|
|
806
|
+
/* -----[ switch ]----- */
|
|
807
|
+
DEFPRINT(AST_Switch, function(self, output){
|
|
808
|
+
output.print("switch");
|
|
809
|
+
output.space();
|
|
810
|
+
output.with_parens(function(){
|
|
811
|
+
self.expression.print(output);
|
|
812
|
+
});
|
|
813
|
+
output.space();
|
|
814
|
+
if (self.body.length > 0) output.with_block(function(){
|
|
815
|
+
self.body.forEach(function(stmt, i){
|
|
816
|
+
if (i) output.newline();
|
|
817
|
+
output.indent(true);
|
|
818
|
+
stmt.print(output);
|
|
819
|
+
});
|
|
820
|
+
});
|
|
821
|
+
else output.print("{}");
|
|
822
|
+
});
|
|
823
|
+
AST_SwitchBranch.DEFMETHOD("_do_print_body", function(output){
|
|
824
|
+
if (this.body.length > 0) {
|
|
825
|
+
output.newline();
|
|
826
|
+
this.body.forEach(function(stmt){
|
|
827
|
+
output.indent();
|
|
828
|
+
stmt.print(output);
|
|
829
|
+
output.newline();
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
});
|
|
833
|
+
DEFPRINT(AST_Default, function(self, output){
|
|
834
|
+
output.print("default:");
|
|
835
|
+
self._do_print_body(output);
|
|
836
|
+
});
|
|
837
|
+
DEFPRINT(AST_Case, function(self, output){
|
|
838
|
+
output.print("case");
|
|
839
|
+
output.space();
|
|
840
|
+
self.expression.print(output);
|
|
841
|
+
output.print(":");
|
|
842
|
+
self._do_print_body(output);
|
|
843
|
+
});
|
|
844
|
+
|
|
845
|
+
/* -----[ exceptions ]----- */
|
|
846
|
+
DEFPRINT(AST_Try, function(self, output){
|
|
847
|
+
output.print("try");
|
|
848
|
+
output.space();
|
|
849
|
+
print_bracketed(self.body, output);
|
|
850
|
+
if (self.bcatch) {
|
|
851
|
+
output.space();
|
|
852
|
+
self.bcatch.print(output);
|
|
853
|
+
}
|
|
854
|
+
if (self.bfinally) {
|
|
855
|
+
output.space();
|
|
856
|
+
self.bfinally.print(output);
|
|
857
|
+
}
|
|
858
|
+
});
|
|
859
|
+
DEFPRINT(AST_Catch, function(self, output){
|
|
860
|
+
output.print("catch");
|
|
861
|
+
output.space();
|
|
862
|
+
output.with_parens(function(){
|
|
863
|
+
self.argname.print(output);
|
|
864
|
+
});
|
|
865
|
+
output.space();
|
|
866
|
+
print_bracketed(self.body, output);
|
|
867
|
+
});
|
|
868
|
+
DEFPRINT(AST_Finally, function(self, output){
|
|
869
|
+
output.print("finally");
|
|
870
|
+
output.space();
|
|
871
|
+
print_bracketed(self.body, output);
|
|
872
|
+
});
|
|
873
|
+
|
|
874
|
+
/* -----[ var/const ]----- */
|
|
875
|
+
AST_Definitions.DEFMETHOD("_do_print", function(output, kind){
|
|
876
|
+
output.print(kind);
|
|
877
|
+
output.space();
|
|
878
|
+
this.definitions.forEach(function(def, i){
|
|
879
|
+
if (i) output.comma();
|
|
880
|
+
def.print(output);
|
|
881
|
+
});
|
|
882
|
+
var p = output.parent();
|
|
883
|
+
var in_for = p instanceof AST_For || p instanceof AST_ForIn;
|
|
884
|
+
var avoid_semicolon = in_for && p.init === this;
|
|
885
|
+
if (!avoid_semicolon)
|
|
886
|
+
output.semicolon();
|
|
887
|
+
});
|
|
888
|
+
DEFPRINT(AST_Var, function(self, output){
|
|
889
|
+
self._do_print(output, "var");
|
|
890
|
+
});
|
|
891
|
+
DEFPRINT(AST_Const, function(self, output){
|
|
892
|
+
self._do_print(output, "const");
|
|
893
|
+
});
|
|
894
|
+
|
|
895
|
+
function parenthesize_for_noin(node, output, noin) {
|
|
896
|
+
if (!noin) node.print(output);
|
|
897
|
+
else try {
|
|
898
|
+
// need to take some precautions here:
|
|
899
|
+
// https://github.com/mishoo/UglifyJS2/issues/60
|
|
900
|
+
node.walk(new TreeWalker(function(node){
|
|
901
|
+
if (node instanceof AST_Binary && node.operator == "in")
|
|
902
|
+
throw output;
|
|
903
|
+
}));
|
|
904
|
+
node.print(output);
|
|
905
|
+
} catch(ex) {
|
|
906
|
+
if (ex !== output) throw ex;
|
|
907
|
+
node.print(output, true);
|
|
908
|
+
}
|
|
909
|
+
};
|
|
910
|
+
|
|
911
|
+
DEFPRINT(AST_VarDef, function(self, output){
|
|
912
|
+
self.name.print(output);
|
|
913
|
+
if (self.value) {
|
|
914
|
+
output.space();
|
|
915
|
+
output.print("=");
|
|
916
|
+
output.space();
|
|
917
|
+
var p = output.parent(1);
|
|
918
|
+
var noin = p instanceof AST_For || p instanceof AST_ForIn;
|
|
919
|
+
parenthesize_for_noin(self.value, output, noin);
|
|
920
|
+
}
|
|
921
|
+
});
|
|
922
|
+
|
|
923
|
+
/* -----[ other expressions ]----- */
|
|
924
|
+
DEFPRINT(AST_Call, function(self, output){
|
|
925
|
+
self.expression.print(output);
|
|
926
|
+
if (self instanceof AST_New && no_constructor_parens(self, output))
|
|
927
|
+
return;
|
|
928
|
+
output.with_parens(function(){
|
|
929
|
+
self.args.forEach(function(expr, i){
|
|
930
|
+
if (i) output.comma();
|
|
931
|
+
expr.print(output);
|
|
932
|
+
});
|
|
933
|
+
});
|
|
934
|
+
});
|
|
935
|
+
DEFPRINT(AST_New, function(self, output){
|
|
936
|
+
output.print("new");
|
|
937
|
+
output.space();
|
|
938
|
+
AST_Call.prototype._codegen(self, output);
|
|
939
|
+
});
|
|
940
|
+
|
|
941
|
+
AST_Seq.DEFMETHOD("_do_print", function(output){
|
|
942
|
+
this.car.print(output);
|
|
943
|
+
if (this.cdr) {
|
|
944
|
+
output.comma();
|
|
945
|
+
if (output.should_break()) {
|
|
946
|
+
output.newline();
|
|
947
|
+
output.indent();
|
|
948
|
+
}
|
|
949
|
+
this.cdr.print(output);
|
|
950
|
+
}
|
|
951
|
+
});
|
|
952
|
+
DEFPRINT(AST_Seq, function(self, output){
|
|
953
|
+
self._do_print(output);
|
|
954
|
+
// var p = output.parent();
|
|
955
|
+
// if (p instanceof AST_Statement) {
|
|
956
|
+
// output.with_indent(output.next_indent(), function(){
|
|
957
|
+
// self._do_print(output);
|
|
958
|
+
// });
|
|
959
|
+
// } else {
|
|
960
|
+
// self._do_print(output);
|
|
961
|
+
// }
|
|
962
|
+
});
|
|
963
|
+
DEFPRINT(AST_Dot, function(self, output){
|
|
964
|
+
var expr = self.expression;
|
|
965
|
+
expr.print(output);
|
|
966
|
+
if (expr instanceof AST_Number && expr.getValue() >= 0) {
|
|
967
|
+
if (!/[xa-f.]/i.test(output.last())) {
|
|
968
|
+
output.print(".");
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
output.print(".");
|
|
972
|
+
// the name after dot would be mapped about here.
|
|
973
|
+
output.add_mapping(self.end);
|
|
974
|
+
output.print_name(self.property);
|
|
975
|
+
});
|
|
976
|
+
DEFPRINT(AST_Sub, function(self, output){
|
|
977
|
+
self.expression.print(output);
|
|
978
|
+
output.print("[");
|
|
979
|
+
self.property.print(output);
|
|
980
|
+
output.print("]");
|
|
981
|
+
});
|
|
982
|
+
DEFPRINT(AST_UnaryPrefix, function(self, output){
|
|
983
|
+
var op = self.operator;
|
|
984
|
+
output.print(op);
|
|
985
|
+
if (/^[a-z]/i.test(op))
|
|
986
|
+
output.space();
|
|
987
|
+
self.expression.print(output);
|
|
988
|
+
});
|
|
989
|
+
DEFPRINT(AST_UnaryPostfix, function(self, output){
|
|
990
|
+
self.expression.print(output);
|
|
991
|
+
output.print(self.operator);
|
|
992
|
+
});
|
|
993
|
+
DEFPRINT(AST_Binary, function(self, output){
|
|
994
|
+
self.left.print(output);
|
|
995
|
+
output.space();
|
|
996
|
+
output.print(self.operator);
|
|
997
|
+
output.space();
|
|
998
|
+
self.right.print(output);
|
|
999
|
+
});
|
|
1000
|
+
DEFPRINT(AST_Conditional, function(self, output){
|
|
1001
|
+
self.condition.print(output);
|
|
1002
|
+
output.space();
|
|
1003
|
+
output.print("?");
|
|
1004
|
+
output.space();
|
|
1005
|
+
self.consequent.print(output);
|
|
1006
|
+
output.space();
|
|
1007
|
+
output.colon();
|
|
1008
|
+
self.alternative.print(output);
|
|
1009
|
+
});
|
|
1010
|
+
|
|
1011
|
+
/* -----[ literals ]----- */
|
|
1012
|
+
DEFPRINT(AST_Array, function(self, output){
|
|
1013
|
+
output.with_square(function(){
|
|
1014
|
+
var a = self.elements, len = a.length;
|
|
1015
|
+
if (len > 0) output.space();
|
|
1016
|
+
a.forEach(function(exp, i){
|
|
1017
|
+
if (i) output.comma();
|
|
1018
|
+
exp.print(output);
|
|
1019
|
+
});
|
|
1020
|
+
if (len > 0) output.space();
|
|
1021
|
+
});
|
|
1022
|
+
});
|
|
1023
|
+
DEFPRINT(AST_Object, function(self, output){
|
|
1024
|
+
if (self.properties.length > 0) output.with_block(function(){
|
|
1025
|
+
self.properties.forEach(function(prop, i){
|
|
1026
|
+
if (i) {
|
|
1027
|
+
output.print(",");
|
|
1028
|
+
output.newline();
|
|
1029
|
+
}
|
|
1030
|
+
output.indent();
|
|
1031
|
+
prop.print(output);
|
|
1032
|
+
});
|
|
1033
|
+
output.newline();
|
|
1034
|
+
});
|
|
1035
|
+
else output.print("{}");
|
|
1036
|
+
});
|
|
1037
|
+
DEFPRINT(AST_ObjectKeyVal, function(self, output){
|
|
1038
|
+
var key = self.key;
|
|
1039
|
+
if (output.option("quote_keys")) {
|
|
1040
|
+
output.print_string(key + "");
|
|
1041
|
+
} else if ((typeof key == "number"
|
|
1042
|
+
|| !output.option("beautify")
|
|
1043
|
+
&& +key + "" == key)
|
|
1044
|
+
&& parseFloat(key) >= 0) {
|
|
1045
|
+
output.print(make_num(key));
|
|
1046
|
+
} else if (!is_identifier(key)) {
|
|
1047
|
+
output.print_string(key);
|
|
1048
|
+
} else {
|
|
1049
|
+
output.print_name(key);
|
|
1050
|
+
}
|
|
1051
|
+
output.colon();
|
|
1052
|
+
self.value.print(output);
|
|
1053
|
+
});
|
|
1054
|
+
DEFPRINT(AST_ObjectSetter, function(self, output){
|
|
1055
|
+
output.print("set");
|
|
1056
|
+
self.value._do_print(output, true);
|
|
1057
|
+
});
|
|
1058
|
+
DEFPRINT(AST_ObjectGetter, function(self, output){
|
|
1059
|
+
output.print("get");
|
|
1060
|
+
self.value._do_print(output, true);
|
|
1061
|
+
});
|
|
1062
|
+
DEFPRINT(AST_Symbol, function(self, output){
|
|
1063
|
+
var def = self.definition();
|
|
1064
|
+
output.print_name(def ? def.mangled_name || def.name : self.name);
|
|
1065
|
+
});
|
|
1066
|
+
DEFPRINT(AST_Undefined, function(self, output){
|
|
1067
|
+
output.print("void 0");
|
|
1068
|
+
});
|
|
1069
|
+
DEFPRINT(AST_Hole, noop);
|
|
1070
|
+
DEFPRINT(AST_Infinity, function(self, output){
|
|
1071
|
+
output.print("1/0");
|
|
1072
|
+
});
|
|
1073
|
+
DEFPRINT(AST_NaN, function(self, output){
|
|
1074
|
+
output.print("0/0");
|
|
1075
|
+
});
|
|
1076
|
+
DEFPRINT(AST_This, function(self, output){
|
|
1077
|
+
output.print("this");
|
|
1078
|
+
});
|
|
1079
|
+
DEFPRINT(AST_Constant, function(self, output){
|
|
1080
|
+
output.print(self.getValue());
|
|
1081
|
+
});
|
|
1082
|
+
DEFPRINT(AST_String, function(self, output){
|
|
1083
|
+
output.print_string(self.getValue());
|
|
1084
|
+
});
|
|
1085
|
+
DEFPRINT(AST_Number, function(self, output){
|
|
1086
|
+
output.print(make_num(self.getValue()));
|
|
1087
|
+
});
|
|
1088
|
+
DEFPRINT(AST_RegExp, function(self, output){
|
|
1089
|
+
var str = self.getValue().toString();
|
|
1090
|
+
if (output.option("ascii_only"))
|
|
1091
|
+
str = output.to_ascii(str);
|
|
1092
|
+
output.print(str);
|
|
1093
|
+
var p = output.parent();
|
|
1094
|
+
if (p instanceof AST_Binary && /^in/.test(p.operator) && p.left === self)
|
|
1095
|
+
output.print(" ");
|
|
1096
|
+
});
|
|
1097
|
+
|
|
1098
|
+
function force_statement(stat, output) {
|
|
1099
|
+
if (output.option("bracketize")) {
|
|
1100
|
+
if (!stat || stat instanceof AST_EmptyStatement)
|
|
1101
|
+
output.print("{}");
|
|
1102
|
+
else if (stat instanceof AST_BlockStatement)
|
|
1103
|
+
stat.print(output);
|
|
1104
|
+
else output.with_block(function(){
|
|
1105
|
+
output.indent();
|
|
1106
|
+
stat.print(output);
|
|
1107
|
+
output.newline();
|
|
1108
|
+
});
|
|
1109
|
+
} else {
|
|
1110
|
+
if (!stat || stat instanceof AST_EmptyStatement)
|
|
1111
|
+
output.force_semicolon();
|
|
1112
|
+
else
|
|
1113
|
+
stat.print(output);
|
|
1114
|
+
}
|
|
1115
|
+
};
|
|
1116
|
+
|
|
1117
|
+
// return true if the node at the top of the stack (that means the
|
|
1118
|
+
// innermost node in the current output) is lexically the first in
|
|
1119
|
+
// a statement.
|
|
1120
|
+
function first_in_statement(output) {
|
|
1121
|
+
var a = output.stack(), i = a.length, node = a[--i], p = a[--i];
|
|
1122
|
+
while (i > 0) {
|
|
1123
|
+
if (p instanceof AST_Statement && p.body === node)
|
|
1124
|
+
return true;
|
|
1125
|
+
if ((p instanceof AST_Seq && p.car === node ) ||
|
|
1126
|
+
(p instanceof AST_Call && p.expression === node && !(p instanceof AST_New) ) ||
|
|
1127
|
+
(p instanceof AST_Dot && p.expression === node ) ||
|
|
1128
|
+
(p instanceof AST_Sub && p.expression === node ) ||
|
|
1129
|
+
(p instanceof AST_Conditional && p.condition === node ) ||
|
|
1130
|
+
(p instanceof AST_Binary && p.left === node ) ||
|
|
1131
|
+
(p instanceof AST_UnaryPostfix && p.expression === node ))
|
|
1132
|
+
{
|
|
1133
|
+
node = p;
|
|
1134
|
+
p = a[--i];
|
|
1135
|
+
} else {
|
|
1136
|
+
return false;
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
};
|
|
1140
|
+
|
|
1141
|
+
// self should be AST_New. decide if we want to show parens or not.
|
|
1142
|
+
function no_constructor_parens(self, output) {
|
|
1143
|
+
return self.args.length == 0 && !output.option("beautify");
|
|
1144
|
+
};
|
|
1145
|
+
|
|
1146
|
+
function best_of(a) {
|
|
1147
|
+
var best = a[0], len = best.length;
|
|
1148
|
+
for (var i = 1; i < a.length; ++i) {
|
|
1149
|
+
if (a[i].length < len) {
|
|
1150
|
+
best = a[i];
|
|
1151
|
+
len = best.length;
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
return best;
|
|
1155
|
+
};
|
|
1156
|
+
|
|
1157
|
+
function make_num(num) {
|
|
1158
|
+
var str = num.toString(10), a = [ str.replace(/^0\./, ".").replace('e+', 'e') ], m;
|
|
1159
|
+
if (Math.floor(num) === num) {
|
|
1160
|
+
if (num >= 0) {
|
|
1161
|
+
a.push("0x" + num.toString(16).toLowerCase(), // probably pointless
|
|
1162
|
+
"0" + num.toString(8)); // same.
|
|
1163
|
+
} else {
|
|
1164
|
+
a.push("-0x" + (-num).toString(16).toLowerCase(), // probably pointless
|
|
1165
|
+
"-0" + (-num).toString(8)); // same.
|
|
1166
|
+
}
|
|
1167
|
+
if ((m = /^(.*?)(0+)$/.exec(num))) {
|
|
1168
|
+
a.push(m[1] + "e" + m[2].length);
|
|
1169
|
+
}
|
|
1170
|
+
} else if ((m = /^0?\.(0+)(.*)$/.exec(num))) {
|
|
1171
|
+
a.push(m[2] + "e-" + (m[1].length + m[2].length),
|
|
1172
|
+
str.substr(str.indexOf(".")));
|
|
1173
|
+
}
|
|
1174
|
+
return best_of(a);
|
|
1175
|
+
};
|
|
1176
|
+
|
|
1177
|
+
function make_block(stmt, output) {
|
|
1178
|
+
if (stmt instanceof AST_BlockStatement) {
|
|
1179
|
+
stmt.print(output);
|
|
1180
|
+
return;
|
|
1181
|
+
}
|
|
1182
|
+
output.with_block(function(){
|
|
1183
|
+
output.indent();
|
|
1184
|
+
stmt.print(output);
|
|
1185
|
+
output.newline();
|
|
1186
|
+
});
|
|
1187
|
+
};
|
|
1188
|
+
|
|
1189
|
+
/* -----[ source map generators ]----- */
|
|
1190
|
+
|
|
1191
|
+
function DEFMAP(nodetype, generator) {
|
|
1192
|
+
nodetype.DEFMETHOD("add_source_map", function(stream){
|
|
1193
|
+
generator(this, stream);
|
|
1194
|
+
});
|
|
1195
|
+
};
|
|
1196
|
+
|
|
1197
|
+
// We could easily add info for ALL nodes, but it seems to me that
|
|
1198
|
+
// would be quite wasteful, hence this noop in the base class.
|
|
1199
|
+
DEFMAP(AST_Node, noop);
|
|
1200
|
+
|
|
1201
|
+
function basic_sourcemap_gen(self, output) {
|
|
1202
|
+
output.add_mapping(self.start);
|
|
1203
|
+
};
|
|
1204
|
+
|
|
1205
|
+
// XXX: I'm not exactly sure if we need it for all of these nodes,
|
|
1206
|
+
// or if we should add even more.
|
|
1207
|
+
|
|
1208
|
+
DEFMAP(AST_Directive, basic_sourcemap_gen);
|
|
1209
|
+
DEFMAP(AST_Debugger, basic_sourcemap_gen);
|
|
1210
|
+
DEFMAP(AST_Symbol, basic_sourcemap_gen);
|
|
1211
|
+
DEFMAP(AST_Jump, basic_sourcemap_gen);
|
|
1212
|
+
DEFMAP(AST_StatementWithBody, basic_sourcemap_gen);
|
|
1213
|
+
DEFMAP(AST_LabeledStatement, noop); // since the label symbol will mark it
|
|
1214
|
+
DEFMAP(AST_Lambda, basic_sourcemap_gen);
|
|
1215
|
+
DEFMAP(AST_Switch, basic_sourcemap_gen);
|
|
1216
|
+
DEFMAP(AST_SwitchBranch, basic_sourcemap_gen);
|
|
1217
|
+
DEFMAP(AST_BlockStatement, basic_sourcemap_gen);
|
|
1218
|
+
DEFMAP(AST_Toplevel, noop);
|
|
1219
|
+
DEFMAP(AST_New, basic_sourcemap_gen);
|
|
1220
|
+
DEFMAP(AST_Try, basic_sourcemap_gen);
|
|
1221
|
+
DEFMAP(AST_Catch, basic_sourcemap_gen);
|
|
1222
|
+
DEFMAP(AST_Finally, basic_sourcemap_gen);
|
|
1223
|
+
DEFMAP(AST_Definitions, basic_sourcemap_gen);
|
|
1224
|
+
DEFMAP(AST_Constant, basic_sourcemap_gen);
|
|
1225
|
+
DEFMAP(AST_ObjectProperty, function(self, output){
|
|
1226
|
+
output.add_mapping(self.start, self.key);
|
|
1227
|
+
});
|
|
1228
|
+
|
|
1229
|
+
})();
|