Skip to content

Commit

Permalink
[NodeTypeResolver] Remove AttributeKey::IS_RETURN_EXPR from ContextNo…
Browse files Browse the repository at this point in the history
…deVisitor
  • Loading branch information
samsonasik committed Jul 13, 2023
1 parent 9e9a314 commit 3609491
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions packages/NodeTypeResolver/Node/AttributeKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,6 @@ final class AttributeKey
*/
public const IS_NEW_INSTANCE_NAME = 'is_new_instance_name';

/**
* @var string
*/
public const IS_RETURN_EXPR = 'is_return_expr';

/**
* @var string
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ public function enterNode(Node $node): ?Node
return null;
}

if ($node instanceof Return_ && $node->expr instanceof Expr) {
$node->expr->setAttribute(AttributeKey::IS_RETURN_EXPR, true);
return null;
}

if ($node instanceof Arg) {
$node->value->setAttribute(AttributeKey::IS_ARG_VALUE, true);
return null;
Expand Down

0 comments on commit 3609491

Please sign in to comment.