summaryrefslogtreecommitdiff
path: root/deps/acorn-plugins/acorn-private-methods/README.md
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-04-24 22:49:32 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2019-04-30 16:22:56 +0200
commit72c6ea26830025c9b7cecb2b1dfd1002481d93ad (patch)
tree51d789d32ffaa3834862722521e1f02ad02a8eae /deps/acorn-plugins/acorn-private-methods/README.md
parent98e9de7db930e505884ca8d0ca6588afbe43f127 (diff)
downloadandroid-node-v8-72c6ea26830025c9b7cecb2b1dfd1002481d93ad.tar.gz
android-node-v8-72c6ea26830025c9b7cecb2b1dfd1002481d93ad.tar.bz2
android-node-v8-72c6ea26830025c9b7cecb2b1dfd1002481d93ad.zip
deps: add acorn stage-3 plugins
This adds bigint, class-fields, numeric-separators, static-class features, private class methods and fields as dependency. That way it's possible to use these in combination with acorn to parse these language features. This also removes a couple of files that were not necessary for Node.js to reduce the code base. PR-URL: https://github.com/nodejs/node/pull/27400 Refs: https://github.com/nodejs/node/issues/27391 Refs: https://github.com/nodejs/node/issues/25835 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'deps/acorn-plugins/acorn-private-methods/README.md')
-rw-r--r--deps/acorn-plugins/acorn-private-methods/README.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/deps/acorn-plugins/acorn-private-methods/README.md b/deps/acorn-plugins/acorn-private-methods/README.md
new file mode 100644
index 0000000000..6929e84ba6
--- /dev/null
+++ b/deps/acorn-plugins/acorn-private-methods/README.md
@@ -0,0 +1,21 @@
+# Private methods and getter/setters support for Acorn
+
+[![NPM version](https://img.shields.io/npm/v/acorn-private-methods.svg)](https://www.npmjs.org/package/acorn-private-methods)
+
+This is a plugin for [Acorn](http://marijnhaverbeke.nl/acorn/) - a tiny, fast JavaScript parser, written completely in JavaScript.
+
+It implements support for private methods, getters and setters as defined in the stage 3 proposal [Private methods and getter/setters for JavaScript classes](https://github.com/tc39/proposal-private-methods). The emitted AST follows [an ESTree proposal](https://github.com/estree/estree/pull/180).
+
+## Usage
+
+This module provides a plugin that can be used to extend the Acorn `Parser` class:
+
+```javascript
+const {Parser} = require('acorn');
+const privateMethods = require('acorn-private-methods');
+Parser.extend(privateMethods).parse('class X { #a() {} }');
+```
+
+## License
+
+This plugin is released under an [MIT License](./LICENSE).