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 23 24 25 26 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import {seq, tok, Expression, plus, ver, optPrio, alt} from "../combi"; import {WParenLeftW, WParenRightW} from "../../1_lexer/tokens"; import {ComponentName, Source, Field} from "."; import {Version} from "../../../version"; import {IStatementRunnable} from "../statement_runnable"; import {ComponentChain} from "./component_chain"; export class CorrespondingBody extends Expression { public getRunnable(): IStatementRunnable { const mapping = seq("MAPPING", plus(seq(ComponentName, "=", ComponentChain))); const baseParen = seq("BASE", tok(WParenLeftW), Source, tok(WParenRightW)); const discarding = ver(Version.v751, "DISCARDING DUPLICATES"); return seq( optPrio("DEEP"), optPrio(baseParen), Source, optPrio(discarding), optPrio(mapping), optPrio("CHANGING CONTROL"), optPrio(seq("EXCEPT", alt(plus(Field), "*"))), ); } } |