Skip tree traversal in case of no declarations
This commit is contained in:
1 parent
68ea4887b1
commit
b13b9a54ab
1 file changed
+2
@@ -1229,7 +1229,9 @@ processDeclarations = (sessionContext, allDeclareTimestamps, allDeclareAttribute
|
|||||||
children[child] = children[child].concat(children['*'])
|
children[child] = children[child].concat(children['*'])
|
||||||
func(leafParam, leafIsObject, leafTimestamp, children[child])
|
func(leafParam, leafIsObject, leafTimestamp, children[child])
|
||||||
|
|
||||||
|
if allDeclareTimestamps.size or allDeclareAttributeTimestamps.size or allDeclareAttributeValues.size
|
||||||
func(root, 1, 0, paths)
|
func(root, 1, 0, paths)
|
||||||
|
|
||||||
return virtualParameterDeclarations
|
return virtualParameterDeclarations
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user