Description
The warning "Counterintuitive placement detected. Wrap the discriminator or assert in an empty sequence to evaluate before the contents. (id: discouragedDiscriminatorPlacement)"
Is issued when an assert/discriminator appears on a sequence, without regard to whether that assert/discriminator uses testKind 'expression' or 'pattern'.
It should be issued only for testKind 'expression'.
See DFDL spec Section 9.5 Evaluation Order for Statement Annotations