@@ -15,7 +15,6 @@ function Get-Transpiler
1515 * Any module that includes -TranspilerModuleName in it's tags.
1616 * The directory specified in -TranspilerPath
1717 * Commands that meet the naming criteria
18- * Commands that meet the naming criteria
1918 . Example
2019 Get-Transpiler
2120 #>
@@ -242,7 +241,6 @@ function Get-Transpiler
242241 }
243242 else {
244243 $ExecutionContext.SessionState.InvokeCommand.GetCommand ($in , ' Alias,Function,ExternalScript,Application' )
245- $ExecutionContext.SessionState.InvokeCommand.GetCommand ($in , ' Alias,Function,ExternalScript,Application' )
246244 }
247245
248246 $extMethods = $extCmd.PSObject.Methods
@@ -858,13 +856,6 @@ function Get-Transpiler
858856 # endregion .CouldRun
859857
860858
861- # Decorate our return (so that it can be uniquely extended)
862- if (-not $TranspilerTypeName ) {
863- $TranspilerTypeName = ' Extension'
864- }
865- if ($extCmd.pstypenames -notcontains $TranspilerTypeName ) {
866- $extCmd.pstypenames.insert (0 , $TranspilerTypeName )
867-
868859 # Decorate our return (so that it can be uniquely extended)
869860 if (-not $TranspilerTypeName ) {
870861 $TranspilerTypeName = ' Extension'
@@ -909,7 +900,6 @@ function Get-Transpiler
909900 # Then, walk over each extension parameter.
910901 foreach ($kv in $extensionParams.GetEnumerator ()) {
911902 # If the $CommandExtended had a built-in parameter, we cannot override it, so skip it.
912- if ($commandExtended -and ($commandExtended -as [Management.Automation.CommandMetaData ]).Parameters.$ ($kv.Key )) {
913903 if ($commandExtended -and ($commandExtended -as [Management.Automation.CommandMetaData ]).Parameters.$ ($kv.Key )) {
914904 continue
915905 }
@@ -1057,7 +1047,6 @@ function Get-Transpiler
10571047 $script :TranspilersFromFiles = [Ordered ]@ {}
10581048 $script :TranspilersFileTimes = [Ordered ]@ {}
10591049 $script :Transpilers =
1060- @ (@ (
10611050 @ (@ (
10621051 # region Find Transpiler in Loaded Modules
10631052 foreach ($loadedModule in $loadedModules ) { # Walk over all modules.
0 commit comments