Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Mar 16, 2021
1 parent 3203cab commit 56116b7
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion examples/dorm/CodegenMutator.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ public function generate(): void {
->save();
}


private function getDataVar(): CodegenProperty{
// Example of how to generate a class member variable, including
// setting an initial value.
Expand Down
1 change: 0 additions & 1 deletion examples/dorm/DormCodegenCLI.hack
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ final class DormCodegenCLI extends \Facebook\CLILib\CLIWithRequiredArguments {
require_once($fname);
$new_classes = Vec\diff(\get_declared_classes(), $classes);


foreach ($new_classes as $class_name) {
$ref = new \ReflectionClass($class_name);
if ($ref->isAbstract()) {
Expand Down
1 change: 0 additions & 1 deletion src/CodegenClass.hack
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ final class CodegenClass extends CodegenClassish {
return $this->extendsClass;
}


/** @selfdocumenting */
public function setConstructor(CodegenConstructor $constructor): this {
$this->constructor = $constructor;
Expand Down
1 change: 0 additions & 1 deletion src/CodegenFactoryTrait.hack
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ trait CodegenFactoryTrait implements ICodegenFactory {
new CodegenTypeConstant($this->getConfig(), \vsprintf($format, $args));
}


final public function codegenFile(string $file): CodegenFile {
return new CodegenFile($this->getConfig(), $file);
}
Expand Down
1 change: 0 additions & 1 deletion src/CodegenFile.hack
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ final class CodegenFile {
return $this->afterTypes;
}


/**
* The absolute path.
*/
Expand Down
1 change: 0 additions & 1 deletion src/ICodegenFactory.hack
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ interface ICodegenFactory {
mixed ...$args
): CodegenEnumMember;


/**
* Create a class type constant.
*/
Expand Down
1 change: 0 additions & 1 deletion src/PartiallyGeneratedSignedSource.hack
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace Facebook\HackCodegen;


/**
* Similar to SignedSource, but it uses a different header to indicate that the
* file is partially generated
Expand Down
1 change: 0 additions & 1 deletion src/SignedSourceBase.hack
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ abstract class SignedSourceBase {
return '@'.static::getTokenName().' '.static::TOKEN;
}


/**
* Sign a source file into which you have previously embedded a signing
* token. Signing modifies only the signing token, so the semantics of
Expand Down
1 change: 0 additions & 1 deletion src/key-value-render/HackBuilderCodeRenderer.hack
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace Facebook\HackCodegen\_Private;


use type Facebook\HackCodegen\{
HackBuilder,
IHackBuilderValueRenderer,
Expand Down
1 change: 0 additions & 1 deletion src/key-value-render/HackBuilderCodegenRenderer.hack
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace Facebook\HackCodegen\_Private;


use type Facebook\HackCodegen\{
HackBuilder,
ICodeBuilderRenderer,
Expand Down
2 changes: 0 additions & 2 deletions src/key-value-render/HackBuilderValues.hack
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ abstract final class HackBuilderValues {
return new _Private\HackBuilderLiteralRenderer();
}


/**
* Render the value as Hack code that produces the same value.
*
Expand All @@ -47,7 +46,6 @@ abstract final class HackBuilderValues {
return new _Private\HackBuilderCodegenRenderer();
}


/** Render a `vec`-like PHP array literal */
public static function valueArray<Tv>(
IHackBuilderValueRenderer<Tv> $vr,
Expand Down
1 change: 0 additions & 1 deletion tests/CodegenExpectedFile.hack
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ final class CodegenExpectedFile {
\fwrite(\STDERR, $message);
}


private static function promptForAdd(string $token, string $value): bool {
self::displayf('A new test %s was added, expected value is:', $token);
self::displayRaw($value."\n");
Expand Down
1 change: 0 additions & 1 deletion tests/CodegenFileTest.hack
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ final class CodegenFileTest extends CodegenBaseTest {
})->toThrow(CodegenFileBadSignatureException::class);
}


public function testSavePartiallyGenerated(): void {
$fname = $this->savePartiallyGeneratedFile();
$content = Filesystem::readFile($fname);
Expand Down

0 comments on commit 56116b7

Please sign in to comment.