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 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import {seq, ver, Expression, optPrio, opt, altPrio, plusPrio, tok, AlsoIn} from "../combi";
import {SQLFieldName, Dynamic, SQLField, SQLAsName, Constant, SimpleFieldChain2} from ".";
import {Release} from "../../../version";
import {IStatementRunnable} from "../statement_runnable";
import {SQLPathForColumn} from "./sql_path_for_column";
import {WAt} from "../../1_lexer/tokens";
export class SQLFieldListLoopGreedy extends Expression {
public getRunnable(): IStatementRunnable {
const comma = opt(ver(Release.v740sp05, ",", {also: AlsoIn.OpenABAP}));
const as = seq("AS", SQLAsName);
const abap = ver(Release.v740sp05, seq(tok(WAt), SimpleFieldChain2), {also: AlsoIn.OpenABAP});
const entry = seq(altPrio(SQLField, abap, SQLPathForColumn, SQLFieldName, Constant), optPrio(as), comma);
const fieldList = plusPrio(entry);
return altPrio("*", Dynamic, fieldList);
}
}
|