mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 06:18:07 +01:00
remove unused methods from NodeFactory
This commit is contained in:
parent
54805f1df5
commit
d8eff45b02
@ -153,23 +153,6 @@ final class NodeFactory
|
||||
return new Expression($assign);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates $this->values[] = $value;
|
||||
*/
|
||||
public function createPropertyArrayAssignment(string $propertyName, string $argumentName): Expression
|
||||
{
|
||||
$variable = new Variable($argumentName, [
|
||||
'name' => $argumentName,
|
||||
]);
|
||||
|
||||
$assign = new Assign(
|
||||
$this->propertyFetchNodeFactory->createLocalArrayFetchWithPropertyName($propertyName),
|
||||
$variable
|
||||
);
|
||||
|
||||
return new Expression($assign);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates "($arg)"
|
||||
*
|
||||
@ -182,18 +165,6 @@ final class NodeFactory
|
||||
return new Arg($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates:
|
||||
* - $variable->property['key'];
|
||||
*/
|
||||
public function createVariablePropertyArrayFetch(
|
||||
Expr $exprNode,
|
||||
string $propertyName,
|
||||
String_ $keyNode
|
||||
): ArrayDimFetch {
|
||||
return new ArrayDimFetch(new PropertyFetch($exprNode, $propertyName), $keyNode);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates:
|
||||
* - namespace NamespaceName;
|
||||
|
Loading…
x
Reference in New Issue
Block a user