(node: dict)
| 267 | |
| 268 | |
| 269 | def node_compare(node: dict) -> ASTNodeIdentifier: |
| 270 | stmt = ASTNodeIdentifier(node_type='compare') |
| 271 | |
| 272 | left = ASTNodeIdentifier(node_type='compare_left') |
| 273 | left += extract_identifier(node['left']) |
| 274 | stmt += left |
| 275 | |
| 276 | comparators = ASTNodeIdentifier(node_type='compare_comparators') |
| 277 | stmt += comparators |
| 278 | for c in node['comparators']: |
| 279 | comparators += extract_identifier(c) |
| 280 | |
| 281 | ops = ASTNodeIdentifier(node_type='compare_ops') |
| 282 | stmt += ops |
| 283 | for op in node['ops']: |
| 284 | ops += extract_identifier(op) |
| 285 | |
| 286 | return stmt |
| 287 | |
| 288 | |
| 289 | AST_NODE_TYPES = { |
nothing calls this directly
no test coverage detected