Skip tree traversal in case of no declarations

This commit is contained in:
Zaid Abdulla committed 2017-07-04 02:35:58 -07:00
1 parent 68ea4887b1
commit b13b9a54ab
1 file changed
+3 -1
+3 -1
View File
@@ -1229,7 +1229,9 @@ processDeclarations = (sessionContext, allDeclareTimestamps, allDeclareAttribute
children[child] = children[child].concat(children['*'])
func(leafParam, leafIsObject, leafTimestamp, children[child])
func(root, 1, 0, paths)
if allDeclareTimestamps.size or allDeclareAttributeTimestamps.size or allDeclareAttributeValues.size
func(root, 1, 0, paths)
return virtualParameterDeclarations