Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 258) sorted by relevance

1234567891011

/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php19 protected function pParam(Node\Param $node): string {
29 protected function pArg(Node\Arg $node): string {
82 protected function pName(Name $node): string {
130 private function indentString(string $str): string {
599 protected function pKey(?Node $node): string {
1017 protected function pClassCommon(Stmt\Class_ $node, string $afterClassToken): string {
1036 protected function pEncapsList(array $encapsList, ?string $quote): string {
1049 protected function pSingleQuotedString(string $string): string { argument
1058 protected function escapeString(string $string, ?string $quote): string { argument
1096 protected function containsEndLabel(string $string, string $label, bool $atStart = true): bool { argument
[all …]
/PHP-Parser/lib/PhpParser/Node/
H A DIdentifier.php15 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 DInterpolatedStringPart.php9 public string $value;
17 public function __construct(string $value, array $attributes = []) {
26 public function getType(): string {
H A DName.php12 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 DStringTest.php17 $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 DTokenEmulator.php12 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 DReverseEmulator.php22 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 DAttributeEmulator.php13 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 DString_.php16 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 Dproperty_promotion.test10 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 DError.php6 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 DPrettyPrinter.php15 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 DNode.php12 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 DNodeDumper.php19 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 {
204 private function dumpIncludeType(int $type): string {
213 private function dumpUseType(int $type): string {
222 private function dumpIntKind(int $kind): string {
231 private function dumpStringKind(int $kind): string {
240 private function dumpArrayKind(int $kind): string {
[all …]
/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DHaltCompiler.php9 public string $remaining;
17 public function __construct(string $remaining, array $attributes = []) {
26 public function getType(): string {
H A DInlineHTML.php9 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 DBitwiseAnd.php8 public function getOperatorSigil(): string {
12 public function getType(): string {
H A DBitwiseXor.php8 public function getOperatorSigil(): string {
12 public function getType(): string {
H A DCoalesce.php8 public function getOperatorSigil(): string {
12 public function getType(): string {
H A DConcat.php8 public function getOperatorSigil(): string {
12 public function getType(): string {
H A DIdentical.php8 public function getOperatorSigil(): string {
12 public function getType(): string {
H A DMinus.php8 public function getOperatorSigil(): string {
12 public function getType(): string {
H A DMod.php8 public function getOperatorSigil(): string {
12 public function getType(): string {
/PHP-Parser/lib/PhpParser/Node/Scalar/MagicConst/
H A DMethod.php8 public function getName(): string {
12 public function getType(): string {
H A DNamespace_.php8 public function getName(): string {
12 public function getType(): string {

Completed in 57 milliseconds

1234567891011