@agoric/acorn-eventual-send
Advanced tools
Comparing version 1.0.1 to 1.0.2
15
index.js
@@ -1,2 +0,2 @@ | ||
const { tokTypes: tt, TokenType } = require('acorn'); | ||
const { tokTypes: tt, TokenType, Parser: AcornParser } = require('acorn'); | ||
@@ -24,7 +24,7 @@ const tok = { | ||
readToken(code) { | ||
getTokenFromCode(code) { | ||
if (code === tilde) { | ||
return this.readToken_tilde(); | ||
} | ||
return super.readToken(code); | ||
return super.getTokenFromCode(code); | ||
} | ||
@@ -56,3 +56,3 @@ | ||
} else if (this.eat(tt.parenL)) { | ||
// x ~. (y, z) := HandledPromise.apply(base, [y, z]) | ||
// x ~. (y, z) := HandledPromise.applyFunction(base, [y, z]) | ||
// No argument other than base. | ||
@@ -69,7 +69,6 @@ eatenParenL = true; | ||
} | ||
if (eatenParenL || this.eat(tt.parenL)) { | ||
// x ~. [i](y, z) := HandledPromise.applyMethod(base, i, [y, z]) | ||
// x ~. (y, z) := HandledPromise.apply(base, [y, z]); | ||
method = eatenParenL ? 'apply' : 'applyMethod'; | ||
// x ~. (y, z) := HandledPromise.applyFunction(base, [y, z]); | ||
method = eatenParenL ? 'applyFunction' : 'applyMethod'; | ||
// The rest of the arguments are in parens. | ||
@@ -157,1 +156,3 @@ let expr = this.startNode(); | ||
module.exports.tokTypes = tok; | ||
module.exports.Parser = AcornParser; | ||
{ | ||
"name": "@agoric/acorn-eventual-send", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Eventual send (wavy dot) parser plugin for Acorn", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17439
139