MartinGC94
6520c05949
Fix parsing for array literals in index expressions in method calls ( #19224 )
2023-06-05 14:10:03 -07:00
MartinGC94
31dd6483b2
Fix incorrect string to type conversion ( #19560 )
...
Fixes incorrect string to type conversions like: [Type] 'int]whatever' so they are no longer parsed as types.
This was fixed by adding a check for ScanType to also check that the parsed type name matches the input type name.
2023-05-31 09:39:38 +05:00
MartinGC94
1c8b58c0b4
Fix array type parsing in generic types ( #19205 )
2023-05-08 16:21:51 -07:00
MartinGC94
799eed8f57
Update and enable the test for the type of $input ( #18968 )
2023-03-13 16:17:28 -07:00
CarloToso
9a2d2afb64
Make -Encoding parameter able to take ANSI encoding in PowerShell ( #19298 )
2023-03-13 15:05:28 -07:00
Dongbo Wang
79b8140199
Make PowerShell class not affiliate with Runspace when declaring the NoRunspaceAffinity attribute ( #18138 )
2022-09-22 10:49:08 -07:00
WJKM
d75d3b6178
Add the ValidateNotNullOrWhiteSpace attribute ( #17191 )
2022-08-09 10:48:08 -07:00
Dongbo Wang
c2323db4a0
Re-enable tests because the corresponding dotnet issues were fixed ( #17839 )
2022-08-03 21:34:03 -07:00
Frode Flaten
0d52375adc
Add type accelerator ordered for OrderedDictionary ( #17804 )
2022-08-01 09:15:14 -07:00
MartinGC94
84241c3c59
Fix parser exception in using statements with empty aliases ( #16745 )
2022-07-19 10:42:31 -07:00
Shuangchi He
c5d31c9e10
Correct spelling in Comments and tests ( #17480 )
2022-06-06 09:55:33 -07:00
James Truher [MSFT]
b3632eda46
Improve unique naming for tests ( #17043 )
2022-03-23 09:24:10 -07:00
James Truher [MSFT]
e22a427345
Simplify Enum generator for the -bnot operator test ( #17014 )
2022-03-18 11:18:47 -07:00
Dongbo Wang
102782fbb0
Fix the parsing code for method generic arguments ( #16937 )
2022-03-03 09:21:21 -08:00
Dongbo Wang
35ad64e11b
Add a couple fixes to generic method invocation ( #16822 )
2022-02-03 11:58:02 -08:00
Joel Sallow (/u/ta11ow)
8c53252969
Add support to allow invoking method with generic type arguments ( #12412 )
2022-01-27 09:55:54 -08:00
Dongbo Wang
979f105a99
Fix parser to generate error when array has more than 32 dimensions ( #16276 )
...
An array cannot have more than 32 dimensions. See the doc of MarkArrayType(int rank)) https://docs.microsoft.com/en-us/dotnet/api/system.type.makearraytype?view=net-5.0#System_Type_MakeArrayType_System_Int32_ for details.
The fix is to not create the ArrayTypeName instance when the number of dimensions exceeds 32, but instead, generate a parsing error.
2021-10-29 08:16:26 +05:00
Dongbo Wang
a32700a1c1
Add clean block to script block as a peer to begin, process, and end to allow easy resource cleanup ( #15177 )
2021-10-11 14:49:09 -07:00
Aditya Patwardhan
3bb6b2736a
Update Ubuntu images to use Ubuntu 20.04 ( #15906 )
2021-08-30 13:56:52 -07:00
Aditya Patwardhan
31a4528302
Update to .NET 6 Preview 6 and use crossgen2 ( #15763 )
2021-07-19 16:06:39 -07:00
Staffan Gustafsson
be7d36603d
Adding IArgumentCompleterFactory for parameterized ArgumentCompleters ( #12605 )
2021-03-25 17:06:40 -07:00
Aditya Patwardhan
cb8165eeef
Move PSNullConditionalOperators feature out of experimental ( #13529 )
2020-08-27 10:11:01 -07:00
Joel Sallow (/u/ta11ow)
6aa08f9559
Improve BigInteger casting behaviours ( #12629 )
2020-08-04 10:45:36 +05:00
Carl Morris
2ea18ee6c9
Flag default switch statement condition clause as keyword ( #10487 )
2020-06-09 10:22:37 -07:00
Joel Sallow (/u/ta11ow)
7bc2617fe3
Fix string parameter binding for BigInteger numeric literals ( #11634 )
2020-05-12 16:31:37 -07:00
xtqqczze
f4382202ae
Use correct casing for cmdlet name and cmdlet parameter name in *.ps1 files ( #12584 )
2020-05-07 17:00:30 +05:00
Joel Sallow (/u/ta11ow)
ba53621894
Allow shorter signed hex literals with appropriate type suffixes ( #11844 )
2020-04-20 16:51:40 -07:00
Bryan Berns
5f89a10f5b
Added Support For Big Endian UTF-32 ( #11947 )
2020-04-07 14:33:15 -07:00
Steve Lee
f23be437af
Fix terms checker issues ( #12189 )
2020-03-24 11:38:45 -07:00
Steve Lee
b7cb335f03
Update copyright notice to latest guidance ( #12190 )
2020-03-24 11:08:37 -07:00
Tyler James Leonhardt
ac1b83f152
Use Environment.NewLine instead of hard-coded linefeed in ParseError.ToString ( #11746 )
2020-02-03 14:03:12 -08:00
xtqqczze
920b671fb4
Unify pester test syntax for the arguments of -BeOfType ( #11558 )
2020-01-24 11:00:37 -08:00
xtqqczze
bb58e2aab6
Correct case of $false special variable
2020-01-13 19:25:35 +00:00
xtqqczze
47a3b4e293
Correct case of $true special variable
2020-01-13 19:25:09 +00:00
xtqqczze
679702ba05
Correct case of $PSDefaultParameterValues special variable
2020-01-13 19:21:25 +00:00
xtqqczze
d58e1ff13b
Correct case of $MyInvocation special variable
2020-01-13 19:04:32 +00:00
xtqqczze
743983390e
Update pester syntax to v4 ( #11544 )
...
* Capitalize 'Should' command and fix whitespace
```powershell
$_ -ireplace '\s?\|\s?should\b',' | Should'
```
* Capitalise and apply hyphen to 'Not' parameter
```powershell
$_ -ireplace '(\| Should) not\b','$1 -Not'
```
* Capitalise and apply hyphen to 'Be' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?be\b','$1 -Be'
```
* Capitalise and apply hyphen to 'BeExactly' parameter
$_ -ireplace '(\| Should(?: -Not)?) -?beexactly\b','$1 -BeExactly'
* Capitalise and apply hyphen to 'BeGreaterThan' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?begreaterthan\b','$1 -BeGreaterThan'
```
* Use 'BeTrue' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?true\b','$1 -BeTrue'
```
* Use 'BeFalse' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?false\b','$1 -BeFalse'
```
* Capitalise and apply hyphen to 'Match' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?match\b','$1 -Match'
```
* Capitalise and apply hyphen to 'Throw' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?throw\b','$1 -Throw'
```
* Capitalise and apply hyphen to 'BeNullOrEmpty' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?benullorempty\b','$1 -BeNullOrEmpty'
```
* Capitalise 'Because' parameter
```powershell
$_ -ireplace '\s-because\b',' -Because'
```
* Fix 'BeNullOrEmpty'
2020-01-11 20:41:59 +05:00
Ilya
b221c2afa2
Correct pwsh run ( #11486 )
2020-01-05 12:17:41 +05:00
Aditya Patwardhan
2dbb5717ce
Make null member access tests as string to avoid parsing errors ( #11385 )
...
* Make null member access tests as string to avoid parsing errors
* Add PSNullConditionalOperators feature to testmetadata.json
* Add Parsing tests to be skipped
* Add tabcompletion tests
2019-12-21 00:14:07 +00:00
Steve Lee
ed1f6e3144
Make approved features non-experimental ( #11303 )
2019-12-10 15:41:43 -08:00
Aditya Patwardhan
2579c00a20
Support null-conditional operators ?. and ?[] in PowerShell language ( #10960 )
2019-11-15 16:39:53 -08:00
Aditya Patwardhan
425bc36a6f
Implement Null Coalescing and Null Coalescing assignment operators ( #10636 )
2019-10-17 10:21:24 -07:00
Steve Lee
8cf9c01800
Add ConciseView for $ErrorView ( #10641 )
2019-10-04 16:52:57 -07:00
Dongbo Wang
5069c7d6a6
Support ternary operator in PowerShell language ( #10367 )
2019-09-04 13:22:33 -07:00
Dongbo Wang
d2e81dbc13
Special case the posix locale in WildcardPattern ( #10186 )
2019-07-26 10:58:37 -07:00
Joel Sallow (/u/ta11ow) and Ilya
17b2cec163
Cleanup Parser tests ( #9792 )
...
Co-Authored-By: Ilya <darpa@yandex.ru >
2019-06-24 11:22:54 -07:00
Dongbo Wang
c684902fba
Use the original precision (prior-dotnet-core-3) for double/fload-to-string conversion ( #9893 )
...
.NET Core changes to return "shortest roundtrippable string" by default for the ToString() method of double and float types. This results in ToString() for double/float values sometimes return a string in 17-digit/9-digit precision format. This PR updated the double/float-to-string conversion in PowerShell to continue using the old precision specifier before the change in .NET Core 3.0.
2019-06-19 08:56:43 +05:00
Joel Sallow (/u/ta11ow)
f5e3de036e
Improve whitespace for Parser tests ( #9806 )
2019-06-05 10:09:45 +05:00
Aditya Patwardhan
8ea15c9f13
Merged PR 8529: Add cleanup before building test package
...
Add cleanup before building test package
2019-05-29 00:31:14 +00:00
Steve Lee
29e21470d9
Port PowerShell to .NET Core 3.0 ( #9597 )
2019-05-21 13:43:51 +08:00