def visitAnnotation(self, ctx: ShExDocParser.AnnotationContext):
<EOL>annot = Annotation(self.context.predicate_to_IRI(ctx.predicate()))<EOL>if ctx.iri():<EOL><INDENT>annot.object = self.context.iri_to_iriref(ctx.iri())<EOL><DEDENT>else:<EOL><INDENT>annot.object = self.context.literal_to_ObjectLiteral(ctx.literal())<EOL><DEDENT>self.annotations.append(annot)<EOL>
annotation: '//' predicate (iri | literal)