remove unused methods from NodeFactory

This commit is contained in:
Tomas Votruba 2018-08-07 08:21:18 +02:00
parent 54805f1df5
commit d8eff45b02

View File

@ -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;