chore(project): update project name from Swoole-Compiler to TypePHP

- Replace all occurrences of "Swoole-Compiler(AOT)" with "TypePHP" in file headers
- Update comment in ResourceFileGenerator to reflect new project name
- Change generated file comments from "Generated by Swoole Compiler" to "Generated by TypePHP"
- Update all PHP entity files to reference new project name
- Modify exception and generator classes to use TypePHP branding
- Update parser and resolver components with new project identification
pull/15/head
韩天峰 2 months ago
parent 777d6b6c36
commit 7047597299
  1. 2
      src/Php/Context/FunctionContext.php
  2. 2
      src/Php/Entity/ArrayInitPlan.php
  3. 2
      src/Php/Entity/ClassDef.php
  4. 2
      src/Php/Entity/ClassLikeDef.php
  5. 2
      src/Php/Entity/ConstantDef.php
  6. 2
      src/Php/Entity/FunctionDef.php
  7. 2
      src/Php/Entity/InterfaceDef.php
  8. 2
      src/Php/Entity/MethodDef.php
  9. 2
      src/Php/Entity/PropertyDef.php
  10. 2
      src/Php/Exception/DynamicCall.php
  11. 2
      src/Php/Exception/PlaceHolder.php
  12. 2
      src/Php/Exception/Redo.php
  13. 2
      src/Php/Exception/Skip.php
  14. 2
      src/Php/Exception/SyntaxError.php
  15. 2
      src/Php/Exception/TestError.php
  16. 2
      src/Php/Exception/Unsupported.php
  17. 2
      src/Php/Generator/AnonClassGenerator.php
  18. 2
      src/Php/Generator/ClosureGenerator.php
  19. 2
      src/Php/Generator/PlaceHolderGenerator.php
  20. 2
      src/Php/Generator/PropertyPromotion.php
  21. 6
      src/Php/Generator/ResourceFileGenerator.php
  22. 2
      src/Php/Generator/TypeCheckGenerator.php
  23. 2
      src/Php/Generator/Utils.php
  24. 2
      src/Php/Optimizer/FuncCallOptimizer.php
  25. 2
      src/Php/Parser/AssignOpTrait.php
  26. 2
      src/Php/Parser/BinaryOpTrait.php
  27. 2
      src/Php/Parser/StdContainerTrait.php
  28. 2
      src/Php/Parser/TypeConversionTrait.php
  29. 2
      src/Php/Parser/TypeDetectionTrait.php
  30. 2
      src/Php/Resolver/InstancePropertyFetchTarget.php
  31. 2
      src/Php/Resolver/NativePropertyAccess.php
  32. 2
      src/Php/Resolver/PropertyAccessContext.php
  33. 2
      src/Php/Resolver/PropertyAccessResolver.php
  34. 2
      src/Php/Resolver/PropertyAccessResult.php
  35. 2
      src/Php/Resolver/PropertyAssignTypeInfo.php
  36. 2
      src/Php/Resolver/PropertyWriteTarget.php
  37. 2
      src/Php/Resolver/StaticPropertyFetchResolution.php
  38. 2
      src/Php/Resolver/StaticPropertyFetchTarget.php

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -26,7 +26,7 @@ namespace PhpAot\Php\Generator;
* legal-trademarks: "MyApp is a trademark of My Company"
* original-filename: "myapp.exe"
* product-name: "My Product"
* comments: "Built with Swoole Compiler"
* comments: "Built with TypePHP"
*
* # manifest 与 resource 同级(可选,Windows 平台缺省不携带)
* manifest: path/to/app.manifest
@ -105,7 +105,7 @@ class ResourceFileGenerator
public function generate(): string
{
$content = '';
$content .= '// Generated by Swoole Compiler - Windows Resource File' . PHP_EOL;
$content .= '// Generated by TypePHP - Windows Resource File' . PHP_EOL;
$content .= '// DO NOT EDIT - This file is auto-generated' . PHP_EOL;
$content .= PHP_EOL;
@ -255,7 +255,7 @@ class ResourceFileGenerator
public function generateHeader(): string
{
$content = '';
$content .= '// Generated by Swoole Compiler - Resource Header' . PHP_EOL;
$content .= '// Generated by TypePHP - Resource Header' . PHP_EOL;
$content .= '// DO NOT EDIT - This file is auto-generated' . PHP_EOL;
$content .= PHP_EOL;

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

@ -1,6 +1,6 @@
<?php
/**
* This file is part of Swoole-Compiler(AOT).
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com

Loading…
Cancel
Save