@@ -194,13 +194,13 @@ private function getInitCode(): string {
194194 HackBuilderValues :: immSet(HackBuilderValues :: literal()),
195195 )
196196 -> startForeachLoop(' $autoloader_candidates' , null , ' $candidate' )
197- -> startIfBlock(' file_exists($candidate)' )
197+ -> startIfBlock(' \\ file_exists($candidate)' )
198198 -> addAssignment(' $autoloader' , ' $candidate' , HackBuilderValues :: literal())
199199 -> addLine(' break;' )
200200 -> endIfBlock()
201201 -> endForeachLoop()
202202 -> startIfBlock(' $autoloader === null' )
203- -> addLine(' fwrite(STDERR, "Can\' t find autoloader.\n");' )
203+ -> addLine(' \\ fwrite(\\ STDERR, "Can\' t find autoloader.\n");' )
204204 -> addLine(' exit(1);' )
205205 -> endIfBlock()
206206 -> addLine(' require_once($autoloader);' )
@@ -220,7 +220,7 @@ private function getMainMethod(): CodegenMethod {
220220 HackBuilderValues :: literal(),
221221 )
222222 -> startIfBlock(' $path === null' )
223- -> addLine(' fprintf(STDERR, "Usage: %s PATH\n", $argv[0]);' )
223+ -> addLine(' \\ fprintf(\\ STDERR, "Usage: %s PATH\n", $argv[0]);' )
224224 -> addLine(' exit(1);' )
225225 -> endIfBlock()
226226 -> addAssignment(
@@ -229,7 +229,7 @@ private function getMainMethod(): CodegenMethod {
229229 HackBuilderValues :: literal(),
230230 )
231231 -> startIfBlock(' $controllers->isEmpty()' )
232- -> addLine(' printf("No controller found for \' %s\' .\n", $path);' )
232+ -> addLine(' \\ printf("No controller found for \' %s\' .\n", $path);' )
233233 -> addLine(' exit(1);' )
234234 -> endIfBlock()
235235 -> startForeachLoop(' $controllers' , ' $method' , ' $controller' )
@@ -238,7 +238,7 @@ private function getMainMethod(): CodegenMethod {
238238 ' $this->prettifyControllerName($controller)' ,
239239 HackBuilderValues :: literal(),
240240 )
241- -> addLine(' printf("%-8s %s\n", $method.\' :\' , $pretty);' )
241+ -> addLine(' \\ printf("%-8s %s\n", $method.\' :\' , $pretty);' )
242242 -> endForeachLoop()
243243 -> getCode()
244244 );
0 commit comments