/PHP-Parser/lib/PhpParser/PrettyPrinter/ |
H A D | Standard.php | 19 protected function pParam(Node\Param $node): string { 30 protected function pArg(Node\Arg $node): string { 83 protected function pName(Name $node): string { 135 private function indentString(string $str): string { 604 protected function pKey(?Node $node): string { 1032 protected function pClassCommon(Stmt\Class_ $node, string $afterClassToken): string { 1051 protected function pEncapsList(array $encapsList, ?string $quote): string { 1064 protected function pSingleQuotedString(string $string): string { argument 1073 protected function escapeString(string $string, ?string $quote): string { argument 1111 protected function containsEndLabel(string $string, string $label, bool $atStart = true): bool { argument [all …]
|
/PHP-Parser/lib/PhpParser/Node/ |
H A D | Identifier.php | 15 public string $name; 30 public function __construct(string $name, array $attributes = []) { 49 public function toString(): string { 59 public function toLowerString(): string { 78 public function __toString(): string { 82 public function getType(): string {
|
H A D | InterpolatedStringPart.php | 9 public string $value; 17 public function __construct(string $value, array $attributes = []) { 26 public function getType(): string {
|
H A D | Name.php | 12 public string $name; 51 public function getFirst(): string { 63 public function getLast(): string { 113 public function toString(): string { 124 public function toCodeString(): string { 135 public function toLowerString(): string { 155 public function __toString(): string { 251 private static function prepareName($name): string { 275 public function getType(): string {
|
/PHP-Parser/test/PhpParser/Node/Scalar/ |
H A D | StringTest.php | 17 $string = $echo->exprs[0]; 18 $this->assertInstanceOf(String_::class, $string); 21 $this->assertSame('sequence A', $string->value); 22 $this->assertSame('"sequence \\x41"', $string->getAttribute('rawValue')); 28 public function testParseEscapeSequences($expected, $string, $quote): void { argument 31 String_::parseEscapeSequences($string, $quote) 38 public function testCreate($expected, $string): void { argument 41 String_::parse($string)
|
/PHP-Parser/lib/PhpParser/Lexer/TokenEmulator/ |
H A D | TokenEmulator.php | 12 abstract public function isEmulationNeeded(string $code): bool; 18 abstract public function emulate(string $code, array $tokens): array; 24 abstract public function reverseEmulate(string $code, array $tokens): array; 27 public function preprocessCode(string $code, array &$patches): string {
|
H A D | ReverseEmulator.php | 22 public function isEmulationNeeded(string $code): bool { 26 public function emulate(string $code, array $tokens): array { 30 public function reverseEmulate(string $code, array $tokens): array { 34 public function preprocessCode(string $code, array &$patches): string {
|
H A D | AttributeEmulator.php | 13 public function isEmulationNeeded(string $code): bool { 17 public function emulate(string $code, array $tokens): array { 34 public function reverseEmulate(string $code, array $tokens): array { 39 public function preprocessCode(string $code, array &$patches): string {
|
/PHP-Parser/lib/PhpParser/Node/Scalar/ |
H A D | String_.php | 16 public string $value; 36 public function __construct(string $value, array $attributes = []) { 49 …public static function fromString(string $str, array $attributes = [], bool $parseUnicodeEscape = … 56 $string = self::parse($str, $parseUnicodeEscape); 58 return new self($string, $attributes); 71 public static function parse(string $str, bool $parseUnicodeEscape = true): string { 101 …blic static function parseEscapeSequences(string $str, ?string $quote, bool $parseUnicodeEscape = … 141 private static function codePointToUtf8(int $num): string { 158 public function getType(): string {
|
/PHP-Parser/test/code/prettyPrinter/stmt/ |
H A D | property_promotion.test | 10 private string $z = 'hello', 18 …public function __construct(public float $x = 0.0, protected array $y = [], private string $z = 'h… 30 public string $y = "123", 31 string $z = "abc" 43 public string $y = "123", 44 string $z = "abc"
|
/PHP-Parser/lib/PhpParser/ |
H A D | Error.php | 6 protected string $rawMessage; 16 public function __construct(string $message, array $attributes = []) { 27 public function getRawMessage(): string { 75 public function setRawMessage(string $message): void { 104 public function getStartColumn(string $code): int { 117 public function getEndColumn(string $code): int { 132 public function getMessageWithColumnInfo(string $code): string { 148 private function toColumn(string $code, int $pos): int {
|
H A D | PrettyPrinter.php | 15 public function prettyPrint(array $stmts): string; 24 public function prettyPrintExpr(Expr $node): string; 33 public function prettyPrintFile(array $stmts): string; 50 … public function printFormatPreserving(array $stmts, array $origStmts, array $origTokens): string;
|
H A D | Node.php | 12 public function getType(): string; 121 public function setAttribute(string $key, $value): void; 126 public function hasAttribute(string $key): bool; 135 public function getAttribute(string $key, $default = null);
|
H A D | NodeDumper.php | 19 private ?string $code; 20 private string $res; 21 private string $nl; 60 public function dump($node, ?string $code = null): string { 165 protected function dumpFlags(int $flags): string { 213 private function dumpIncludeType(int $type): string { 222 private function dumpUseType(int $type): string { 231 private function dumpIntKind(int $kind): string { 240 private function dumpStringKind(int $kind): string { 249 private function dumpArrayKind(int $kind): string { [all …]
|
/PHP-Parser/lib/PhpParser/Node/Stmt/ |
H A D | HaltCompiler.php | 9 public string $remaining; 17 public function __construct(string $remaining, array $attributes = []) { 26 public function getType(): string {
|
H A D | InlineHTML.php | 9 public string $value; 17 public function __construct(string $value, array $attributes = []) { 26 public function getType(): string {
|
/PHP-Parser/lib/PhpParser/Node/Expr/BinaryOp/ |
H A D | BitwiseAnd.php | 8 public function getOperatorSigil(): string { 12 public function getType(): string {
|
H A D | BitwiseXor.php | 8 public function getOperatorSigil(): string { 12 public function getType(): string {
|
H A D | Coalesce.php | 8 public function getOperatorSigil(): string { 12 public function getType(): string {
|
H A D | Concat.php | 8 public function getOperatorSigil(): string { 12 public function getType(): string {
|
H A D | Identical.php | 8 public function getOperatorSigil(): string { 12 public function getType(): string {
|
H A D | Minus.php | 8 public function getOperatorSigil(): string { 12 public function getType(): string {
|
H A D | Mod.php | 8 public function getOperatorSigil(): string { 12 public function getType(): string {
|
/PHP-Parser/lib/PhpParser/Node/Scalar/MagicConst/ |
H A D | Method.php | 8 public function getName(): string { 12 public function getType(): string {
|
H A D | Namespace_.php | 8 public function getName(): string { 12 public function getType(): string {
|