def visitTripleConstraint(self, ctx: ShExDocParser.TripleConstraintContext):
<EOL>if ctx.senseFlags():<EOL><INDENT>self.visit(ctx.senseFlags())<EOL><DEDENT>self.visit(ctx.predicate())<EOL>self.visit(ctx.inlineShapeExpression())<EOL>self._card_annotations_and_semacts(ctx)<EOL>
tripleConstraint: senseFlags? predicate inlineShapeExpression cardinality? annotation* semanticActions