Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function analyseEventFilterResult(node, eventFilter) {
assert(eventFilter instanceof EventFilter);
const selectClauseResults = checkSelectClauses(node, eventFilter.selectClauses);
const whereClauseResult = new subscription_service.ContentFilterResult();
return new subscription_service.EventFilterResult({
selectClauseResults: selectClauseResults,
selectClauseDiagnosticInfos: [],
whereClauseResult: whereClauseResult
});
}
function analyseEventFilterResult(
node: BaseNode,
eventFilter: EventFilter
): EventFilterResult {
if (!(eventFilter instanceof EventFilter)) {
throw new Error("Internal Error");
}
const selectClauseResults = checkSelectClauses(
node as UAObjectType,
eventFilter.selectClauses || []
);
const whereClauseResult = new ContentFilterResult();
return new EventFilterResult({
selectClauseDiagnosticInfos: [],
selectClauseResults,
whereClauseResult
});
}