File tree Expand file tree Collapse file tree
modules/openapi-generator/src/main/resources/powershell
samples/client/petstore/powershell Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,17 +22,17 @@ function Get-FunctionsToExport {
2222 throw $ParserErr
2323 } else {
2424 foreach ($name in ' Begin' , ' Process' , ' End' ) {
25- foreach ($Statement in $Ast ." ${name}Block" .Statements) {
26- if (
25+ foreach ($Statement in $Ast ." ${name}Block" .Statements) {
26+ if (
2727 [String]::IsNullOrWhiteSpace($Statement .Name) -or
2828 $Statement .Extent.ToString() -notmatch
2929 (' function\W +{0}' -f $Statement .Name)
3030 ) {
31- continue
32- }
31+ continue
32+ }
3333
34- $Statement.Name
35- }
34+ $Statement.Name
35+ }
3636 }
3737 }
3838 }
Original file line number Diff line number Diff line change @@ -28,17 +28,17 @@ function Get-FunctionsToExport {
2828 throw $ParserErr
2929 } else {
3030 foreach ($name in ' Begin' , ' Process' , ' End' ) {
31- foreach ($Statement in $Ast ." ${name} Block" .Statements) {
32- if (
31+ foreach ($Statement in $Ast ." ${name} Block" .Statements) {
32+ if (
3333 [String ]::IsNullOrWhiteSpace($Statement.Name ) -or
3434 $Statement.Extent.ToString () -notmatch
3535 (' function\W+{0}' -f $Statement.Name )
3636 ) {
37- continue
38- }
37+ continue
38+ }
3939
40- $Statement.Name
41- }
40+ $Statement.Name
41+ }
4242 }
4343 }
4444 }
You can’t perform that action at this time.
0 commit comments