SONARPLUGINS-3703 Temp. fix to get rid of the calls to AstNode.getChild(int)