mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-25 06:01:02 +03:00
feat(skd-decompile): use=false на outputParameters item
Build-OutputParameters теперь читает <dcscor:use>false</dcscor:use> на
item и сохраняет значение в форме {value, use: false}.
Эффект на sample30: −198 строк diff.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
8009a8150f
commit
480d828c35
@@ -1,4 +1,4 @@
|
|||||||
# skd-decompile v0.44 — Decompile 1C DCS Template.xml to JSON DSL (draft)
|
# skd-decompile v0.45 — Decompile 1C DCS Template.xml to JSON DSL (draft)
|
||||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||||
param(
|
param(
|
||||||
[Parameter(Mandatory)]
|
[Parameter(Mandatory)]
|
||||||
@@ -1640,8 +1640,15 @@ function Build-OutputParameters {
|
|||||||
$val = $it.SelectSingleNode("dcscor:value", $ns)
|
$val = $it.SelectSingleNode("dcscor:value", $ns)
|
||||||
if (-not $pName -or -not $val) { continue }
|
if (-not $pName -or -not $val) { continue }
|
||||||
$vType = Get-LocalXsiType $val
|
$vType = Get-LocalXsiType $val
|
||||||
if ($vType -eq 'LocalStringType') { $d[$pName] = Get-MLText $val }
|
if ($vType -eq 'LocalStringType') { $rawVal = Get-MLText $val }
|
||||||
else { $d[$pName] = $val.InnerText }
|
else { $rawVal = $val.InnerText }
|
||||||
|
# <dcscor:use>false</...> → wrapper {value, use: false}
|
||||||
|
$useV = Get-Text $it "dcscor:use"
|
||||||
|
if ($useV -eq 'false') {
|
||||||
|
$d[$pName] = [ordered]@{ value = $rawVal; use = $false }
|
||||||
|
} else {
|
||||||
|
$d[$pName] = $rawVal
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $d
|
return $d
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user