(node: dict)
| 247 | |
| 248 | |
| 249 | def node_if(node: dict) -> ASTNodeIdentifier: |
| 250 | stmt = ASTNodeIdentifier(node_type='if') |
| 251 | body = ASTNodeIdentifier(node_type='if_body') |
| 252 | |
| 253 | for b in node['body']: |
| 254 | body += extract_identifier(b) |
| 255 | stmt += body |
| 256 | |
| 257 | orelse = ASTNodeIdentifier(node_type='if_orelse') |
| 258 | for o in node['orelse']: |
| 259 | orelse += extract_identifier(o) |
| 260 | stmt += orelse |
| 261 | |
| 262 | test = ASTNodeIdentifier(node_type='if_test') |
| 263 | test += extract_identifier(node['test']) |
| 264 | stmt += test |
| 265 | |
| 266 | return stmt |
| 267 | |
| 268 | |
| 269 | def node_compare(node: dict) -> ASTNodeIdentifier: |
nothing calls this directly
no test coverage detected