components/org.wso2.carbon.siddhi.editor.core/src/main/resources/web/js/source-editor/completion-engine.js
/**
             * Handle the query section limit suggestions for the query
             *
             * @private
             * @param {string[]} regexResults Array of groups from the regex execution of the query
             * @param {string} fullEditorText Complete editor text before the cursor
             */
Handle the query section limit suggestions for the query
@private
@param {string[]} regexResults Array of groups from the regex execution of the query
@param {string} fullEditorText Complete editor text before the cursor
Handle the query section limit suggestions for the query @private @param { string [] } regexResults Array of groups from the regex execution of the query @param { string } fullEditorText Complete editor text before the cursor
function handleLimitSuggestions(regexResults, fullEditorText) {
                var limitClause = regexResults[14];
                var afterLimitClauseRegex = new RegExp("\\s+[a-zA-Z_0-9]*$");
                if (afterLimitClauseRegex.test(limitClause)) {
                    addCompletions(["output", "insert", "delete", "update", "update or insert into"]
                        .map(function (completion) {
                                return {value: completion + " ", priority: 2};
                            }
                        ));
                }
            }
function handleLimitSuggestions ( regexResults , fullEditorText ) { var limitClause = regexResults [ 14 ] ; var afterLimitClauseRegex = new RegExp ( "\\s+[a-zA-Z_0-9]*$" ) ; if ( afterLimitClauseRegex . test ( limitClause ) ) { addCompletions ( [ "output" , "insert" , "delete" , "update" , "update or insert into" ] . map ( function ( completion ) { return { value : completion + " " , priority : 2 } ; } ) ) ; } }
Handle the query section limit suggestions for the query
 @private
 @param {string[]} regexResults Array of groups from the regex execution of the query
 @param {string} fullEditorText Complete editor text before the cursor
Handle the query section limit suggestions for the query @private @param { string [] } regexResults Array of groups from the regex execution of the query @param { string } fullEditorText Complete editor text before the cursor
// Regexps used for identifying the suggestions // Testing to find the relevant suggestion // TODO: uncomment these lines when the backend supports constant int and long attribute values(of definitions) for limit // addAttributesOfSourcesAsCompletionsFromQueryIn( //     regexResults, fullEditorText, 3, 2, //     [constants.STREAMS, constants.EVENT_TABLES, constants.WINDOWS, constants.AGGREGATIONS] // ); // addAttributesOfStandardStatefulSourcesAsCompletionsFromQueryIn( //     regexResults, fullEditorText, 3, 2 // ); // addAttributesOfStreamOrTableReferencesAsCompletionsFromQueryIn( //     regexResults, fullEditorText, 3, 2 // ); // addCompletions(suggestions.logicalOperatorList.map(function (suggestion) { //     return Object.assign({}, suggestion, { //         priority: 2 //     }); // }));