code: def visitInlineShapeOrRef(self, ctx: ShExDocParser.InlineShapeOrRefContext):
          
          if ctx.inlineShapeDefinition():
              from pyshexc.parser_impl.shex_shape_definition_parser import ShexShapeDefinitionParser
              shdef_parser = ShexShapeDefinitionParser(self.context, self.label)
              shdef_parser.visitChildren(ctx)
              self.expr = shdef_parser.shape
          else:
              self.expr = self.context.shapeRef_to_iriref(ctx.shapeRef())
docs: inlineShapeOrRef: inlineShapeDefinition | shapeRef