ExactCancellationCheckRule
class ExactCancellationCheckRule implements Rule
Reports instanceof CanceledException checks, which miss cancellation carried by another exception.
Methods
__construct(CoroutineRuleHelper $coroutineRuleHelper)
Create a new exact cancellation check rule instance.
string
getNodeType()
Get the node type the rule checks.
array
processNode(Node $node, Scope $scope)
Report exact cancellation checks of values that may be exceptions but are not already known to be cancellations.
Details
at line 32
__construct(CoroutineRuleHelper $coroutineRuleHelper)
Create a new exact cancellation check rule instance.
at line 40
string
getNodeType()
Get the node type the rule checks.
at line 52
array
processNode(Node $node, Scope $scope)
Report exact cancellation checks of values that may be exceptions but are not already known to be cancellations.