Skip to content

Commit

Permalink
Improve accuracy of messages
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Oct 7, 2020
1 parent c2108e8 commit c8d4baf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ function ($c) use ($reconciled_expression_clauses): bool {
$statements_analyzer,
[],
$context->inside_loop,
new CodeLocation($statements_analyzer->getSource(), $stmt->left)
new CodeLocation($statements_analyzer->getSource(), $stmt->left),
$context->inside_negation
);

$right_context->vars_in_scope = $right_vars_in_scope;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function ($c) use ($reconciled_expression_clauses): bool {
[],
$left_context->inside_loop,
new CodeLocation($statements_analyzer->getSource(), $stmt->left),
true
!$context->inside_negation
);
$right_context->vars_in_scope = $right_vars_in_scope;
}
Expand Down Expand Up @@ -270,7 +270,8 @@ function ($c) {
$statements_analyzer,
[],
$left_context->inside_loop,
new CodeLocation($statements_analyzer->getSource(), $stmt->right)
new CodeLocation($statements_analyzer->getSource(), $stmt->right),
$context->inside_negation
);
}

Expand Down

0 comments on commit c8d4baf

Please sign in to comment.