Home
last modified time | relevance | path

Searched refs:string (Results 51 – 75 of 258) sorted by relevance

1234567891011

/PHP-Parser/lib/PhpParser/Node/Expr/BinaryOp/
H A DSpaceship.php8 public function getOperatorSigil(): string {
12 public function getType(): string {
/PHP-Parser/lib/PhpParser/Lexer/TokenEmulator/
H A DExplicitOctalEmulator.php13 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 DKeywordEmulator.php8 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 DReadonlyFunctionTokenEmulator.php15 public function getKeywordString(): string {
27 public function reverseEmulate(string $code, array $tokens): array {
H A DNullsafeTokenEmulator.php13 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 DComment.php6 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 DJsonDecoder.php10 public function decode(string $json) {
86 private function reflectionClassFromNodeType(string $nodeType): \ReflectionClass {
95 private function classNameFromNodeType(string $nodeType): string {
H A DBuilderFactory.php45 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 DNodeAbstract.php151 public function setAttribute(string $key, $value): void {
155 public function hasAttribute(string $key): bool {
159 public function getAttribute(string $key, $default = null) {
H A DNameContext.php55 … 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 DPrettyPrinterAbstract.php111 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 Dnullable_types.test4 function test(?Foo $bar, ?string $foo, ?\Xyz $zyx) : ?Baz
8 function test(?Foo $bar, ?string $foo, ?\Xyz $zyx): ?Baz
H A Dproperties.test8 public string $b;
17 public string $b;
H A Denum.test18 enum C: string implements D {
37 enum C : string implements D
/PHP-Parser/lib/PhpParser/Node/Name/
H A DFullyQualified.php42 public function toCodeString(): string {
46 public function getType(): string {
H A DRelative.php42 public function toCodeString(): string {
46 public function getType(): string {
/PHP-Parser/lib/PhpParser/Node/Scalar/
H A DFloat_.php29 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 DaddingPropertyType.test12 $stmts[0]->stmts[0]->type = new Node\Identifier('string');
19 public string $a
/PHP-Parser/test/PhpParser/Lexer/
H A DEmulativeTest.php22 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 DUse_.php14 protected ?string $alias = null;
34 public function as(string $alias) {
H A DFunction_.php11 protected string $name;
23 public function __construct(string $name) {
/PHP-Parser/test/code/parser/stmt/function/
H A DnullableTypes.test5 function test(?Foo $bar, ?string $foo) : ?Baz {
39 name: string
/PHP-Parser/lib/PhpParser/Node/
H A DVarLikeIdentifier.php13 public function getType(): string {
/PHP-Parser/test/code/parser/stmt/class/
H A Denum_with_string.test5 enum Suit: string
21 name: string
/PHP-Parser/test/PhpParser/
H A DNodeDumperTest.php6 private function canonicalize($string) { argument
7 return str_replace("\r\n", "\n", $string);

Completed in 37 milliseconds

1234567891011