#NEWLINE# def _checkInsideGenerator( provider , node , source_ref ) : #NEWLINE# #INDENT# if provider . isCompiledPythonModule ( ) : #NEWLINE# #INDENT# SyntaxErrors . raiseSyntaxError ( "'yield' outside function" , source_ref , ( None if ( python_version < 300 ) else node . col_offset ) ) #NEWLINE# #UNINDENT# if provider . isExpressionCoroutineObjectBody ( ) : #NEWLINE# #INDENT# SyntaxErrors . raiseSyntaxError ( ( "'%s' inside async function" % ( ( 'yield' if ( node . __class__ is ast . Yield ) else 'yield from' ) , ) ) , source_ref , ( node . col_offset + 3 ) ) #NEWLINE# #UNINDENT# assert provider . isExpressionGeneratorObjectBody ( ) , source_ref