@@ -32,7 +32,7 @@ abstract class PHP extends Emitter {
3232 * Creates result
3333 *
3434 * @param io.streams.OutputStream $target
35- * @return lang.ast.Result
35+ * @return lang.ast.emit. Result
3636 */
3737 protected function result ($ target ) {
3838 return new GeneratedCode ($ target , '<?php ' );
@@ -57,7 +57,7 @@ public function literal($type) {
5757 * - Binary expression where left- and right hand side are literals
5858 *
5959 * @see https://wiki.php.net/rfc/const_scalar_exprs
60- * @param lang.ast.Result $result
60+ * @param lang.ast.emit. Result $result
6161 * @param lang.ast.Node $node
6262 * @return bool
6363 */
@@ -116,11 +116,11 @@ protected function constantType($type) {
116116 /**
117117 * Enclose a node inside a closure
118118 *
119- * @param lang.ast.Result $result
119+ * @param lang.ast.emit. Result $result
120120 * @param lang.ast.Node $node
121121 * @param ?lang.ast.nodes.Signature $signature
122122 * @param bool $static
123- * @param function(lang.ast.Result, lang.ast.Node): void $emit
123+ * @param function(lang.ast.emit. Result, lang.ast.Node): void $emit
124124 */
125125 protected function enclose ($ result , $ node , $ signature , $ static , $ emit ) {
126126 $ capture = [];
@@ -159,7 +159,7 @@ protected function enclose($result, $node, $signature, $static, $emit) {
159159 /**
160160 * Emits local initializations
161161 *
162- * @param lang.ast.Result $result
162+ * @param lang.ast.emit. Result $result
163163 * @param [:lang.ast.Node] $init
164164 * @return void
165165 */
@@ -175,7 +175,7 @@ protected function emitInitializations($result, $init) {
175175 * Convert blocks to IIFEs to allow a list of statements where PHP syntactically
176176 * doesn't, e.g. `fn`-style lambdas or match expressions.
177177 *
178- * @param lang.ast.Result $result
178+ * @param lang.ast.emit. Result $result
179179 * @param lang.ast.Node $expression
180180 * @return void
181181 */
@@ -1208,15 +1208,4 @@ protected function emitFrom($result, $from) {
12081208 $ result ->out ->write ('yield from ' );
12091209 $ this ->emitOne ($ result , $ from ->iterable );
12101210 }
1211-
1212- /**
1213- * Emit single nodes
1214- *
1215- * @param lang.ast.Result $result
1216- * @param lang.ast.Node $node
1217- * @return void
1218- */
1219- public function emitOne ($ result , $ node ) {
1220- parent ::emitOne ($ result ->at ($ node ->line ), $ node );
1221- }
12221211}
0 commit comments