All files / src/abap/5_syntax/expressions sql_set_op_group.ts

81.81% Statements 18/22
33.33% Branches 1/3
100% Functions 1/1
81.81% Lines 18/22

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 231x 1x 1x 1x 1x 1x 1x 1x 3x 3x 3x 3x 3x     3x 3x     3x 1x 1x  
import * as Expressions from "../../2_statements/expressions";
import {ExpressionNode} from "../../nodes";
import {SyntaxInput} from "../_syntax_input";
import {Select} from "./select";
 
export class SQLSetOpGroup {
 
  public static runSyntax(node: ExpressionNode, input: SyntaxInput): void {
    if (node.findDirectExpression(Expressions.SQLFrom)) {
      Select.runSyntax(node, input, true);
    }
 
    for (const group of node.findDirectExpressions(Expressions.SQLSetOpGroup)) {
      SQLSetOpGroup.runSyntax(group, input);
    }
 
    for (const setop of node.findDirectExpressions(Expressions.SQLSetOp)) {
      SQLSetOpGroup.runSyntax(setop, input);
    }
  }
 
}