private void populateQueryContext(SiddhiElement siddhiElement, @NotNull ParserRuleContext ctx) {

        if (siddhiElement != null && siddhiElement.getQueryContextStartIndex() == null &&
                siddhiElement.getQueryContextEndIndex() == null) {
            siddhiElement.setQueryContextStartIndex(new int[]{ctx.getStart().getLine(),
                    ctx.getStart().getCharPositionInLine()});
            siddhiElement.setQueryContextEndIndex(new int[]{ctx.getStop().getLine(),
                    ctx.getStop().getCharPositionInLine() + 1 + ctx.getStop().getStopIndex()
                            - ctx.getStop().getStartIndex()});
        }
    }
{@inheritDoc}
<p>The default implementation returns the result of calling
{@link #visitChildren} on {@code ctx}.</p>

@param ctx
modules/siddhi-query-compiler/src/main/java/io/siddhi/query/compiler/internal/SiddhiQLBaseVisitorImpl.java