@@ -17,7 +17,11 @@ function Test-YamlNodeGraph {
1717 [System.Collections.Generic.Dictionary [int , string ]] $FingerprintCache ,
1818
1919 [Parameter (Mandatory )]
20- [System.Security.Cryptography.HashAlgorithm ] $FingerprintHasher
20+ [System.Security.Cryptography.HashAlgorithm ] $FingerprintHasher ,
21+
22+ [Parameter ()]
23+ [AllowNull ()]
24+ [pscustomobject ] $RemovalWorkState
2125 )
2226
2327 $scalarTags = [System.Collections.Generic.HashSet [string ]]::new(
@@ -94,7 +98,8 @@ function Test-YamlNodeGraph {
9498 $keyFingerprint = Get-YamlNodeFingerprint `
9599 - Node $entryNode.Entries [0 ].Key `
96100 - Active ([System.Collections.Generic.HashSet [int ]]::new()) `
97- - Cache $FingerprintCache - Hasher $FingerprintHasher
101+ - Cache $FingerprintCache - Hasher $FingerprintHasher `
102+ - RemovalWorkState $RemovalWorkState
98103 if (-not $orderedKeys.Add ($keyFingerprint )) {
99104 $keyNode = $entryNode.Entries [0 ].Key
100105 throw (New-YamlException - Start $keyNode.Start - End $keyNode.End `
@@ -127,7 +132,8 @@ function Test-YamlNodeGraph {
127132 $entry = $current.Entries [$index ]
128133 $fingerprint = Get-YamlNodeFingerprint - Node $entry.Key `
129134 - Active ([System.Collections.Generic.HashSet [int ]]::new()) `
130- - Cache $FingerprintCache - Hasher $FingerprintHasher
135+ - Cache $FingerprintCache - Hasher $FingerprintHasher `
136+ - RemovalWorkState $RemovalWorkState
131137 if (-not $keys.Add ($fingerprint )) {
132138 throw (New-YamlException - Start $entry.Key.Start - End $entry.Key.End `
133139 - ErrorId ' YamlDuplicateKey' - Message (
0 commit comments