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