components/org.wso2.carbon.siddhi.editor.core/src/main/resources/web/js/source-editor/completion-engine.js
/**
             * Handle the aggregation definition every suggestions
             *
             * @private
             * @param {string[]} regexResults Array of groups from the regex execution of the aggregation definition
             */
Handle the aggregation definition every suggestions
@private
@param {string[]} regexResults Array of groups from the regex execution of the aggregation definition
Handle the aggregation definition every suggestions @private @param { string [] } regexResults Array of groups from the regex execution of the aggregation definition
function handleAggregationDefinitionEverySuggestions(regexResults) {
                var everyClause = regexResults[13];
                var generalSuggestionsRegex = new RegExp("((?:^[a-zA-Z]*" + regex.comma + "$)" +
                    "|(?:^[a-zA-Z]*" + regex.tripleDot + "$))", "i");
                if (generalSuggestionsRegex.test(everyClause)) {
                    addCompletions(suggestions.aggregationTimeValueTypes
                        .map(function (type) {
                            return Object.assign({}, type, {
                                value: type.value + " ", priority: 2
                            })
                    }));
                }
            }
function handleAggregationDefinitionEverySuggestions ( regexResults ) { var everyClause = regexResults [ 13 ] ; var generalSuggestionsRegex = new RegExp ( "((?:^[a-zA-Z]*" + regex . comma + "$)" + "|(?:^[a-zA-Z]*" + regex . tripleDot + "$))" , "i" ) ; if ( generalSuggestionsRegex . test ( everyClause ) ) { addCompletions ( suggestions . aggregationTimeValueTypes . map ( function ( type ) { return Object . assign ( { } , type , { value : type . value + " " , priority : 2 } ) } ) ) ; } }
Handle the aggregation definition every suggestions
 @private
 @param {string[]} regexResults Array of groups from the regex execution of the aggregation definition
Handle the aggregation definition every suggestions @private @param { string [] } regexResults Array of groups from the regex execution of the aggregation definition
// Regexps used for identifying the suggestions // Add time values for the every clause