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 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 6x 6x 6x 6x 6x 6x 1x 1x | import {IStatement} from "./_statement"; import {verNot, seq, opt, alt, tok} from "../combi"; import {Constant, FieldChain, FormName} from "../expressions"; import {Version} from "../../../version"; import {IStatementRunnable} from "../statement_runnable"; import {ParenRightW, WParenLeft} from "../../1_lexer/tokens"; export class Field implements IStatement { public getMatcher(): IStatementRunnable { const module = seq("MODULE", FormName, opt(alt("ON INPUT", "ON REQUEST"))); const values = seq("VALUES", tok(WParenLeft), "BETWEEN", Constant, "AND", Constant, tok(ParenRightW)); const ret = seq("FIELD", FieldChain, opt(alt(module, values))); return verNot(Version.Cloud, ret); } } |