-
Notifications
You must be signed in to change notification settings - Fork 828
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6911 from junichi11/php-named-argument-cc-for-con…
…structor Fix the named argument code completion for constructors
- Loading branch information
Showing
22 changed files
with
888 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...iles/completion/lib/php80/testNamedArgumentsConstructor01/namedArgumentsConstructor01.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
class NamedArguments { | ||
public function __construct(int $param1, int|array|null $array, $default = "default") { | ||
} | ||
} | ||
|
||
$instance = new NamedArguments(); |
92 changes: 92 additions & 0 deletions
92
...sConstructor01/namedArgumentsConstructor01.php.testNamedArgumentsConstructor01.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
Code completion result for source line: | ||
$instance = new NamedArguments(|); | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
CLASS NamedArguments [PUBLIC] namedArgumentsConstructor01.php | ||
VARIABLE NamedArguments $instance [PUBLIC] namedArgumentsConstructor01.php | ||
PARAMETER array: Parameter Name | ||
PARAMETER default: Parameter Name | ||
PARAMETER param1: Parameter Name | ||
------------------------------------ | ||
VARIABLE $GLOBALS PHP Platform | ||
VARIABLE $HTTP_RAW_POST_DATA PHP Platform | ||
VARIABLE $_COOKIE PHP Platform | ||
VARIABLE $_ENV PHP Platform | ||
VARIABLE $_FILES PHP Platform | ||
VARIABLE $_GET PHP Platform | ||
VARIABLE $_POST PHP Platform | ||
VARIABLE $_REQUEST PHP Platform | ||
VARIABLE $_SERVER PHP Platform | ||
VARIABLE $_SESSION PHP Platform | ||
VARIABLE $argc PHP Platform | ||
VARIABLE $argv PHP Platform | ||
VARIABLE $http_response_header PHP Platform | ||
VARIABLE $php_errormsg PHP Platform | ||
KEYWORD abstract null | ||
KEYWORD and null | ||
KEYWORD array null | ||
KEYWORD as null | ||
KEYWORD break null | ||
KEYWORD case null | ||
KEYWORD catch null | ||
KEYWORD class null | ||
KEYWORD clone null | ||
KEYWORD const null | ||
KEYWORD continue null | ||
KEYWORD declare null | ||
KEYWORD default null | ||
KEYWORD die() Language Construct | ||
KEYWORD do null | ||
KEYWORD echo ''; Language Construct | ||
KEYWORD else null | ||
KEYWORD elseif null | ||
KEYWORD empty() Language Construct | ||
KEYWORD enddeclare null | ||
KEYWORD endfor null | ||
KEYWORD endforeach null | ||
KEYWORD endif null | ||
KEYWORD endswitch null | ||
KEYWORD endwhile null | ||
KEYWORD enum null | ||
KEYWORD eval() Language Construct | ||
KEYWORD exit() Language Construct | ||
KEYWORD extends null | ||
KEYWORD final null | ||
KEYWORD finally null | ||
KEYWORD fn null | ||
KEYWORD for null | ||
KEYWORD foreach null | ||
KEYWORD function null | ||
KEYWORD global null | ||
KEYWORD goto null | ||
KEYWORD if null | ||
KEYWORD implements null | ||
KEYWORD include ''; Language Construct | ||
KEYWORD include_once ''; Language Construct | ||
KEYWORD instanceof null | ||
KEYWORD interface null | ||
KEYWORD isset() Language Construct | ||
KEYWORD list() Language Construct | ||
KEYWORD match null | ||
KEYWORD namespace null | ||
KEYWORD new null | ||
KEYWORD or null | ||
KEYWORD print ''; Language Construct | ||
KEYWORD private null | ||
KEYWORD protected null | ||
KEYWORD public null | ||
KEYWORD readonly null | ||
KEYWORD require ''; Language Construct | ||
KEYWORD require_once ''; Language Construct | ||
KEYWORD return ; Language Construct | ||
KEYWORD static null | ||
KEYWORD switch null | ||
KEYWORD throw null | ||
KEYWORD trait null | ||
KEYWORD try null | ||
KEYWORD unset() Language Construct | ||
KEYWORD use null | ||
KEYWORD var null | ||
KEYWORD while null | ||
KEYWORD xor null | ||
KEYWORD yield null | ||
KEYWORD yield from null |
26 changes: 26 additions & 0 deletions
26
...iles/completion/lib/php80/testNamedArgumentsConstructor02/namedArgumentsConstructor02.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
class NamedArguments { | ||
public function __construct(int $param1, int|array|null $array, $default = "default") { | ||
} | ||
} | ||
|
||
$instance = new NamedArguments(arr); | ||
$instance = new NamedArguments() |
6 changes: 6 additions & 0 deletions
6
...onstructor02/namedArgumentsConstructor02.php.testNamedArgumentsConstructor02_a.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Code completion result for source line: | ||
$instance = new NamedArguments(arr|); | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
PARAMETER array: Parameter Name | ||
------------------------------------ | ||
KEYWORD array null |
Oops, something went wrong.