/PHP-Parser/lib/PhpParser/Node/Expr/BinaryOp/ |
H A D | Spaceship.php | 8 public function getOperatorSigil(): string { 12 public function getType(): string {
|
/PHP-Parser/lib/PhpParser/Lexer/TokenEmulator/ |
H A D | ExplicitOctalEmulator.php | 13 public function isEmulationNeeded(string $code): bool { 17 public function emulate(string $code, array $tokens): array { 34 private function resolveIntegerOrFloatToken(string $str): int { 41 public function reverseEmulate(string $code, array $tokens): array {
|
H A D | KeywordEmulator.php | 8 abstract public function getKeywordString(): string; 11 public function isEmulationNeeded(string $code): bool { 21 public function emulate(string $code, array $tokens): array { 46 public function reverseEmulate(string $code, array $tokens): array {
|
H A D | ReadonlyFunctionTokenEmulator.php | 15 public function getKeywordString(): string { 27 public function reverseEmulate(string $code, array $tokens): array {
|
H A D | NullsafeTokenEmulator.php | 13 public function isEmulationNeeded(string $code): bool { 17 public function emulate(string $code, array $tokens): array { 56 public function reverseEmulate(string $code, array $tokens): array {
|
/PHP-Parser/lib/PhpParser/ |
H A D | Comment.php | 6 protected string $text; 23 string $text, 41 public function getText(): string { 106 public function __toString(): string { 120 public function getReformattedText(): string { 178 private function getShortestWhitespacePrefixLen(string $str): int {
|
H A D | JsonDecoder.php | 10 public function decode(string $json) { 86 private function reflectionClassFromNodeType(string $nodeType): \ReflectionClass { 95 private function classNameFromNodeType(string $nodeType): string {
|
H A D | BuilderFactory.php | 45 public function class(string $name): Builder\Class_ { 56 public function interface(string $name): Builder\Interface_ { 67 public function trait(string $name): Builder\Trait_ { 78 public function enum(string $name): Builder\Enum_ { 117 public function method(string $name): Builder\Method { 128 public function param(string $name): Builder\Param { 139 public function property(string $name): Builder\Property { 150 public function function(string $name): Builder\Function_ {
|
H A D | NodeAbstract.php | 151 public function setAttribute(string $key, $value): void { 155 public function hasAttribute(string $key): bool { 159 public function getAttribute(string $key, $default = null) {
|
H A D | NameContext.php | 55 … public function addAlias(Name $name, string $aliasName, int $type, array $errorAttrs = []): void { 156 public function getPossibleNames(string $name, int $type): array { 212 public function getShortName(string $name, int $type): Name { 252 private function getNamespaceRelativeName(string $name, string $lcName, int $type): ?Name { 273 private function normalizeConstName(string $name): string {
|
H A D | PrettyPrinterAbstract.php | 111 protected string $nl; 299 protected function handleMagicTokens(string $str): string { 358 string $class, Node $leftNode, string $operatorString, Node $rightNode, 360 ): string { 384 …protected function pPrefixOp(string $class, string $operatorString, Node $node, int $precedence, i… 414 …rotected function pPostfixOp(string $class, Node $node, string $operatorString, int $precedence, i… 437 protected function pImplode(array $nodes, string $glue = ''): string { 575 ): string { 753 string $parentNodeClass, string $subNodeName, ?int $fixup 754 ): ?string { [all …]
|
/PHP-Parser/test/code/prettyPrinter/stmt/ |
H A D | nullable_types.test | 4 function test(?Foo $bar, ?string $foo, ?\Xyz $zyx) : ?Baz 8 function test(?Foo $bar, ?string $foo, ?\Xyz $zyx): ?Baz
|
H A D | properties.test | 8 public string $b; 17 public string $b;
|
H A D | enum.test | 18 enum C: string implements D { 37 enum C : string implements D
|
/PHP-Parser/lib/PhpParser/Node/Name/ |
H A D | FullyQualified.php | 42 public function toCodeString(): string { 46 public function getType(): string {
|
H A D | Relative.php | 42 public function toCodeString(): string { 46 public function getType(): string {
|
/PHP-Parser/lib/PhpParser/Node/Scalar/ |
H A D | Float_.php | 29 public static function fromString(string $str, array $attributes = []): Float_ { 45 public static function parse(string $str): float { 72 public function getType(): string {
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | addingPropertyType.test | 12 $stmts[0]->stmts[0]->type = new Node\Identifier('string'); 19 public string $a
|
/PHP-Parser/test/PhpParser/Lexer/ |
H A D | EmulativeTest.php | 22 public function testReplaceKeywords(string $keyword, int $expectedToken): void { 35 public function testReplaceKeywordsUppercase(string $keyword, int $expectedToken): void { 49 public function testNoReplaceKeywordsAfterObjectOperator(string $keyword): void { 64 public function testNoReplaceKeywordsAfterObjectOperatorWithSpaces(string $keyword): void { 80 public function testNoReplaceKeywordsAfterNullsafeObjectOperator(string $keyword): void { 132 public function testLexNewFeatures(string $code, array $expectedTokens): void { 140 public function testLeaveStuffAloneInStrings(string $code): void { 399 … public function testTargetVersion(string $phpVersion, string $code, array $expectedTokens): void {
|
/PHP-Parser/lib/PhpParser/Builder/ |
H A D | Use_.php | 14 protected ?string $alias = null; 34 public function as(string $alias) {
|
H A D | Function_.php | 11 protected string $name; 23 public function __construct(string $name) {
|
/PHP-Parser/test/code/parser/stmt/function/ |
H A D | nullableTypes.test | 5 function test(?Foo $bar, ?string $foo) : ?Baz { 39 name: string
|
/PHP-Parser/lib/PhpParser/Node/ |
H A D | VarLikeIdentifier.php | 13 public function getType(): string {
|
/PHP-Parser/test/code/parser/stmt/class/ |
H A D | enum_with_string.test | 5 enum Suit: string 21 name: string
|
/PHP-Parser/test/PhpParser/ |
H A D | NodeDumperTest.php | 6 private function canonicalize($string) { argument 7 return str_replace("\r\n", "\n", $string);
|