Home
last modified time | relevance | path

Searched refs:toString (Results 1 – 17 of 17) sorted by relevance

/PHP-Parser/test/PhpParser/
H A DModifiersTest.php10 $this->assertSame('public', Modifiers::toString(Modifiers::PUBLIC));
16 Modifiers::toString(Modifiers::PUBLIC | Modifiers::PROTECTED);
/PHP-Parser/lib/PhpParser/
H A DModifiers.php38 public static function toString(int $modifier): string { function in PhpParser\\Modifiers
57 'Multiple ' . self::toString($b) . ' modifiers are not allowed');
78 'Multiple ' . self::toString($b) . ' modifiers are not allowed');
H A DNameContext.php106 sprintf("'\\%s' is an invalid class name", $name->toString()),
189 $normalizedOrig = $this->normalizeConstName($orig->toString());
H A DParserAbstract.php1145 "Cannot use '" . Modifiers::toString($modifier) . "' as constant modifier",
1194 'Cannot use the ' . Modifiers::toString($b) . ' modifier on a property hook',
/PHP-Parser/lib/PhpParser/Node/Name/
H A DFullyQualified.php43 return '\\' . $this->toString();
H A DRelative.php43 return 'namespace\\' . $this->toString();
/PHP-Parser/test/PhpParser/NodeVisitor/
H A DParentConnectingVisitorTest.php24 $this->assertSame('C', $node->getAttribute('parent')->name->toString());
/PHP-Parser/test/PhpParser/Node/
H A DIdentifierTest.php15 $this->assertSame('Foo', $identifier->toString());
H A DNameTest.php33 $this->assertSame('Foo\Bar', $name->toString());
/PHP-Parser/lib/PhpParser/Node/
H A DIdentifier.php49 public function toString(): string { function in PhpParser\\Node\\Identifier
H A DName.php113 public function toString(): string { function in PhpParser\\Node\\Name
125 return $this->toString();
/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DClassLike.php69 if ($prop instanceof PropertyItem && $name === $prop->name->toString()) {
/PHP-Parser/doc/
H A D2_Usage_of_basic_components.markdown460 return new Node\Name(str_replace('\\', '_', $node->toString()));
468 by underscores instead of backslashes. This is what `str_replace('\\', '_', $node->toString())` doe…
469 create a name with backslashes either write `$node->toString()` or `(string) $node`.) Then we create
484 return new Node\Name(str_replace('\\', '_', $node->toString()));
488 $node->name = str_replace('\\', '_', $node->namespacedName->toString());
491 $const->name = str_replace('\\', '_', $const->namespacedName->toString());
511 return new Node\Name(str_replace('\\', '_', $node->toString()));
515 $node->name = str_replace('\\', '_', $node->namespacedName->toString();
518 $const->name = str_replace('\\', '_', $const->namespacedName->toString());
/PHP-Parser/doc/component/
H A DWalking_the_AST.markdown167 && $node->expr->name->toString() === 'var_dump'
242 $node->namespacedName->toString() === 'Foo\Bar\Baz'
347 && $node->resolvedName->toString() === $name;
/PHP-Parser/
H A DUPGRADE-3.0.md140 * `$separator` argument of `Name::toString()`. Use `strtr()` instead, if you really need it.
H A DCHANGELOG.md996 * Removed `$separator` argument from `Name::toString()`.
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php31 return ($node->name ? $node->name->toString() . ': ' : '')

Completed in 27 milliseconds