forked from loafle/openapi-generator-original
replace tabs with 4-space (#8739)
This commit is contained in:
parent
df5050f3b0
commit
d5a9b53bdc
@ -22,17 +22,17 @@ function Get-FunctionsToExport {
|
|||||||
throw $ParserErr
|
throw $ParserErr
|
||||||
} else {
|
} else {
|
||||||
foreach ($name in 'Begin', 'Process', 'End') {
|
foreach ($name in 'Begin', 'Process', 'End') {
|
||||||
foreach ($Statement in $Ast."${name}Block".Statements) {
|
foreach ($Statement in $Ast."${name}Block".Statements) {
|
||||||
if (
|
if (
|
||||||
[String]::IsNullOrWhiteSpace($Statement.Name) -or
|
[String]::IsNullOrWhiteSpace($Statement.Name) -or
|
||||||
$Statement.Extent.ToString() -notmatch
|
$Statement.Extent.ToString() -notmatch
|
||||||
('function\W+{0}' -f $Statement.Name)
|
('function\W+{0}' -f $Statement.Name)
|
||||||
) {
|
) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
$Statement.Name
|
$Statement.Name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,17 +28,17 @@ function Get-FunctionsToExport {
|
|||||||
throw $ParserErr
|
throw $ParserErr
|
||||||
} else {
|
} else {
|
||||||
foreach ($name in 'Begin', 'Process', 'End') {
|
foreach ($name in 'Begin', 'Process', 'End') {
|
||||||
foreach ($Statement in $Ast."${name}Block".Statements) {
|
foreach ($Statement in $Ast."${name}Block".Statements) {
|
||||||
if (
|
if (
|
||||||
[String]::IsNullOrWhiteSpace($Statement.Name) -or
|
[String]::IsNullOrWhiteSpace($Statement.Name) -or
|
||||||
$Statement.Extent.ToString() -notmatch
|
$Statement.Extent.ToString() -notmatch
|
||||||
('function\W+{0}' -f $Statement.Name)
|
('function\W+{0}' -f $Statement.Name)
|
||||||
) {
|
) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
$Statement.Name
|
$Statement.Name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user