Skip to content

Migrate ReturnYieldOutsideFunction check to Strongly typed AST#290

Merged
guillaume-dequenne merged 3 commits intomasterfrom
migrate_ReturnYieldOutsideFunction
Sep 3, 2019
Merged

Migrate ReturnYieldOutsideFunction check to Strongly typed AST#290
guillaume-dequenne merged 3 commits intomasterfrom
migrate_ReturnYieldOutsideFunction

Conversation

@guillaume-dequenne
Copy link
Copy Markdown
Contributor

No description provided.

@guillaume-dequenne guillaume-dequenne force-pushed the migrate_ReturnYieldOutsideFunction branch from 3a1fc69 to bf0c75f Compare September 3, 2019 13:44
public void visitNode(AstNode node) {
AstNode currentParent = node.getParent();
private static final Consumer<SubscriptionContext> SUBSCRIPTION_CONTEXT_CONSUMER = ctx -> {
PyStatementTree returnStatement = ((PyStatementTree) ctx.syntaxNode());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useless parentheses around the expression can be removed.

@guillaume-dequenne guillaume-dequenne merged commit 881c90e into master Sep 3, 2019
@guillaume-dequenne guillaume-dequenne deleted the migrate_ReturnYieldOutsideFunction branch September 3, 2019 15:31
hashicorp-vault-sonar-prod Bot pushed a commit that referenced this pull request May 28, 2025
GitOrigin-RevId: dca9fffc4f550a473a00b0718a72434775b22063
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants