PowerShell/test/powershell/Language/Parser
Staffan Gustafsson a9c6292903 Enable conversions from PSMethod to Delegate (#5287)
Underpinnings to make calling of Extension methods /Linq easier from PowerShell.
Enables the following that previously had to be done via reflection.

class M {
  [int] Twice([int] $value) { return 2 * $value }

  [int] DoubleSum([int[]] $values) {
     return [Linq.Enumerable]::Sum($values, [M]::Twice)
  }
}

Each PSMethod is created as with a unique type for the combinations of method signatures in the MethodInfos it represents.

PSMethod<T> where T is a MethodGroup<>, potentially recursive in the last template argument.

This way, we can determine by just looking at the type of a PSMethod if there exists a conversion from the PSMethod to a delegate.
2017-12-01 18:40:35 -08:00
..
Ast.Tests.ps1 Autocorrected CRLF to LF (#4943) 2017-09-29 16:28:15 -07:00
AutomaticVariables.Tests.ps1 Autocorrected CRLF to LF (#4943) 2017-09-29 16:28:15 -07:00
BNotOperator.Tests.ps1 Autocorrected CRLF to LF (#4943) 2017-09-29 16:28:15 -07:00
Conversions.Tests.ps1 Enable conversions from PSMethod to Delegate (#5287) 2017-12-01 18:40:35 -08:00
ExtensibleCompletion.Tests.ps1 Autocorrected CRLF to LF (#4943) 2017-09-29 16:28:15 -07:00
LanguageAndParser.TestFollowup.Tests.ps1 Autocorrected CRLF to LF (#4943) 2017-09-29 16:28:15 -07:00
MethodInvocation.Tests.ps1 Autocorrected CRLF to LF (#4943) 2017-09-29 16:28:15 -07:00
ParameterBinding.Tests.ps1 Autocorrected CRLF to LF (#4943) 2017-09-29 16:28:15 -07:00
Parser.Tests.ps1 Autocorrected CRLF to LF (#4943) 2017-09-29 16:28:15 -07:00
Parsing.Tests.ps1 Implement Unicode escape parsing (#3958) 2017-06-27 22:55:57 -07:00
RedirectionOperator.Tests.ps1 Unify cmdlets with parameter 'Encoding' to be of type System.Text.Encoding (#5080) 2017-10-23 19:46:27 -07:00
TypeAccelerator.Tests.ps1 Autocorrected CRLF to LF (#4943) 2017-09-29 16:28:15 -07:00
UsingAssembly.Tests.ps1 Rename powershell.exe to pwsh.exe (#5101) 2017-10-17 17:25:11 -07:00
UsingNamespace.Tests.ps1 Autocorrected CRLF to LF (#4943) 2017-09-29 16:28:15 -07:00