We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba6c4e2 commit 890a20eCopy full SHA for 890a20e
src/Service/StreamFilter/Metadata/Code.php
@@ -69,6 +69,27 @@ public function edit(Token $token, string $replacement): void
69
);
70
}
71
72
+ /**
73
+ * Add an edit to the source code at a specific position.
74
+ *
75
+ * @param int $startPosition
76
+ * @param int $width
77
+ * @param string $replacement
78
79
+ * @return void
80
+ */
81
+ public function editAt(
82
+ int $startPosition,
83
+ int $width,
84
+ string $replacement,
85
+ ): void {
86
+ $this->stringMutator->edit(
87
+ $startPosition,
88
+ $width,
89
+ $replacement,
90
+ );
91
+ }
92
+
93
/**
94
* Add a string to the end of the source code.
95
*
0 commit comments