Fix comments for smartPipeline topic-forbidding contexts (#11597)
[skip ci]
This commit is contained in:
parent
87d747976d
commit
62e686af91
@ -659,9 +659,7 @@ export default class StatementParser extends ExpressionParser {
|
|||||||
|
|
||||||
clause.body =
|
clause.body =
|
||||||
// For the smartPipelines plugin: Disable topic references from outer
|
// For the smartPipelines plugin: Disable topic references from outer
|
||||||
// contexts within the function body. They are permitted in function
|
// contexts within the catch clause's body.
|
||||||
// default-parameter expressions, which are part of the outer context,
|
|
||||||
// outside of the function body.
|
|
||||||
this.withTopicForbiddingContext(() =>
|
this.withTopicForbiddingContext(() =>
|
||||||
// Parse the catch clause's body.
|
// Parse the catch clause's body.
|
||||||
this.parseBlock(false, false),
|
this.parseBlock(false, false),
|
||||||
@ -718,9 +716,9 @@ export default class StatementParser extends ExpressionParser {
|
|||||||
|
|
||||||
node.body =
|
node.body =
|
||||||
// For the smartPipelines plugin:
|
// For the smartPipelines plugin:
|
||||||
// Disable topic references from outer contexts within the function body.
|
// Disable topic references from outer contexts within the with statement's body.
|
||||||
// They are permitted in function default-parameter expressions, which are
|
// They are permitted in function default-parameter expressions, which are
|
||||||
// part of the outer context, outside of the function body.
|
// part of the outer context, outside of the with statement's body.
|
||||||
this.withTopicForbiddingContext(() =>
|
this.withTopicForbiddingContext(() =>
|
||||||
// Parse the statement body.
|
// Parse the statement body.
|
||||||
this.parseStatement("with"),
|
this.parseStatement("with"),
|
||||||
@ -1074,8 +1072,8 @@ export default class StatementParser extends ExpressionParser {
|
|||||||
this.parseFunctionParams(node);
|
this.parseFunctionParams(node);
|
||||||
|
|
||||||
// For the smartPipelines plugin: Disable topic references from outer
|
// For the smartPipelines plugin: Disable topic references from outer
|
||||||
// contexts within the function body. They are permitted in test
|
// contexts within the function body. They are permitted in function
|
||||||
// expressions, outside of the function body.
|
// default-parameter expressions, outside of the function body.
|
||||||
this.withTopicForbiddingContext(() => {
|
this.withTopicForbiddingContext(() => {
|
||||||
// Parse the function body.
|
// Parse the function body.
|
||||||
this.parseFunctionBodyAndFinish(
|
this.parseFunctionBodyAndFinish(
|
||||||
@ -1197,8 +1195,7 @@ export default class StatementParser extends ExpressionParser {
|
|||||||
this.expect(tt.braceL);
|
this.expect(tt.braceL);
|
||||||
|
|
||||||
// For the smartPipelines plugin: Disable topic references from outer
|
// For the smartPipelines plugin: Disable topic references from outer
|
||||||
// contexts within the class body. They are permitted in test expressions,
|
// contexts within the class body.
|
||||||
// outside of the class body.
|
|
||||||
this.withTopicForbiddingContext(() => {
|
this.withTopicForbiddingContext(() => {
|
||||||
while (!this.match(tt.braceR)) {
|
while (!this.match(tt.braceR)) {
|
||||||
if (this.eat(tt.semi)) {
|
if (this.eat(tt.semi)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user