def p_annotation(self, p):
        """annotation : ANNOTATION ID EQ ID args NL
                      | ANNOTATION ID EQ ID DOT ID args NL"""
        if len(p) < 8:
            args, kwargs = p[5]
            p[0] = AstAnnotationDef(
                self.path, p.lineno(1), p.lexpos(1), p[2], p[4], None, args, kwargs)
        else:
            args, kwargs = p[7]
            p[0] = AstAnnotationDef(
                self.path, p.lineno(1), p.lexpos(1), p[2], p[6], p[4], args, kwargs)
def p_annotation ( self , p ) : if len ( p ) < 8 : args , kwargs = p [ 5 ] p [ 0 ] = AstAnnotationDef ( self . path , p . lineno ( 1 ) , p . lexpos ( 1 ) , p [ 2 ] , p [ 4 ] , None , args , kwargs ) else : args , kwargs = p [ 7 ] p [ 0 ] = AstAnnotationDef ( self . path , p . lineno ( 1 ) , p . lexpos ( 1 ) , p [ 2 ] , p [ 6 ] , p [ 4 ] , args , kwargs )
annotation : ANNOTATION ID EQ ID args NL
                      | ANNOTATION ID EQ ID DOT ID args NL