| 1966 | } |
| 1967 | |
| 1968 | static CBMPythonDirectiveKind python_directive_for(const WalkState *state, |
| 1969 | uint32_t function_scope_id, const char *name) { |
| 1970 | for (int i = state ? state->python_directive_count - 1 : -1; i >= 0; i--) { |
| 1971 | const CBMPythonDirective *directive = &state->python_directives[i]; |
| 1972 | if (directive->function_scope_id == function_scope_id && directive->name && |
| 1973 | strcmp(directive->name, name) == 0) { |
| 1974 | return (CBMPythonDirectiveKind)directive->kind; |
| 1975 | } |
| 1976 | } |
| 1977 | return 0; |
| 1978 | } |
| 1979 | |
| 1980 | static uint32_t python_enclosing_function_namespace(const WalkState *state, |
| 1981 | uint32_t inner_function_id) { |
no outgoing calls
no test coverage detected