Lines Matching refs:_check_content

1984     def _check_content(self, source, ast_node, content):
1995 self._check_content(s, lam.body, 'None')
1996 self._check_content(s, lam.args.args[0], 'x')
1997 self._check_content(s, lam.args.vararg, 'y')
2009 self._check_content(s, fdef.body[0], 'return True')
2010 self._check_content(s, fdef.args.args[0], 'x: int')
2011 self._check_content(s, fdef.args.args[0].annotation, 'int')
2012 self._check_content(s, fdef.args.kwarg, 'kwargs: Any')
2013 self._check_content(s, fdef.args.kwarg.annotation, 'Any')
2018 self._check_content(s, call.func, 'func')
2019 self._check_content(s, call.keywords[0].value, '2')
2020 self._check_content(s, call.keywords[1].value, 'kw')
2025 self._check_content(s, call.func, 'x[0]')
2035 self._check_content(s, cdef.bases[1], 'B')
2036 self._check_content(s, cdef.body[0], 'x: int = 0')
2041 self._check_content(s, cdef.keywords[0].value, 'abc.ABCMeta')
2099 self._check_content(s, while_loop.test, 'True')
2100 self._check_content(s, if_stmt.body[0], 'x = None')
2101 self._check_content(s, if_stmt.orelse[0].test, 'other()')
2102 self._check_content(s, for_loop.target, 'x, y')
2103 self._check_content(s, try_stmt.body[0], 'raise RuntimeError')
2104 self._check_content(s, try_stmt.handlers[0].type, 'TypeError')
2110 self._check_content(s, binop, 'x + y')
2125 self._check_content(s, binop.left, 'arg_one')
2126 self._check_content(s, binop.right, 'arg_two')
2147 self._check_content(s1, i1.value, 'f()[1, 2]')
2148 self._check_content(s1, i1.value.slice, '1, 2')
2149 self._check_content(s2, i2.slice.lower, 'a.b')
2150 self._check_content(s2, i2.slice.upper, 'c.d')
2151 self._check_content(sm, im.slice.elts[0].upper, 'f ()')
2152 self._check_content(sm, im.slice.elts[1].lower, 'g ()')
2163 self._check_content(s, binop.right, '4')
2164 self._check_content(s, binop.left, '1 * 2 + (3 )')
2165 self._check_content(s, binop.left.right, '3')
2175 self._check_content(s, bop.values[1],
2188 self._check_content(s1, t1, '()')
2189 self._check_content(s2, t2, '1 ,')
2190 self._check_content(s3, t3, '(1 , 2 )')
2196 self._check_content(s, call, s)
2197 self._check_content(s, call.args[0], 'x. y .z')
2203 self._check_content(s, v, 'a + b')
2207 self._check_content(s2, v, 'a + b')
2220 self._check_content(s, v, s)
2224 self._check_content(s2, v, s)
2231 self._check_content(s1, c1.elts[0], '{}')
2232 self._check_content(s1, c1.elts[1], '{1, }')
2233 self._check_content(s1, c1.elts[2], '{1, 2,}')
2234 self._check_content(s2, c2.keys[1], 'f ()')
2235 self._check_content(s2, c2.values[1], 'g ()')
2244 self._check_content(s, cmp.generators[0].iter, 'things')
2245 self._check_content(s, cmp.elt.generators[0].iter, 'stuff')
2246 self._check_content(s, cmp.elt.generators[0].ifs[0], 'cond.x')
2247 self._check_content(s, cmp.elt.generators[0].target, 'x, y')
2256 self._check_content(s, fdef.body[0].value, 'yield x')
2257 self._check_content(s, fdef.body[1].value, 'await y')
2288 self._check_content(s, v, 'v = 1')
2289 self._check_content(s, w, 'w = 1')
2290 self._check_content(s, x, 'x = 1')
2291 self._check_content(s, y, 'y = 1')
2292 self._check_content(s, z, 'z = 1')