node.getChild(string) vs DB.getChild(node, string)
I have recently heard in Discord that there are changes coming around this (if I understand correctly).
In case it helps anyone, here are some regex replace strings I wrote up.
I used this to change node.getChild() to DB.getChild(node)
Code:
([\( ])([0-9A-Za-z]+[\(\)]*)(?<!DB)\.getChild\((.+)\)
Code:
$1DB.getChild($2, $3)
I didn't see any false positives in my code, but I would recommend only using regex replace on your code if you're using version control to vet all its changes.
I used this to change node.getChildren() to DB.getChildren(node)
Code:
([\( ])([0-9A-Za-z]+[\(\)]*)(?<!DB)\.getChildren\(\)
Code:
$1DB.getChildren($2)
Unfortunately, I haven't found a really good method of doing this for getValue, setValue, getType, and other functions that also exist for interface objects. These all result in many false positives (although it's still a time saver compared to changing everything by hand).