| 942 | } |
| 943 | |
| 944 | static bool php_doc_comment(const CBMExtractCtx *ctx, TSNode n) { |
| 945 | if (!php_kind(n, "comment")) { |
| 946 | return false; |
| 947 | } |
| 948 | uint32_t b = ts_node_start_byte(n); |
| 949 | size_t len = ts_node_end_byte(n) - b; |
| 950 | return len > PHP_PREFIX_LEN + SKIP_ONE && memcmp(ctx->source + b, "/**", PHP_PREFIX_LEN) == 0 && |
| 951 | ctx->source[b + PHP_PREFIX_LEN] != '*'; |
| 952 | } |
| 953 | |
| 954 | /* The doc blocks right above a type's properties, constants and cases. */ |
| 955 | static void php_loose_type(CBMExtractCtx *ctx, TSNode decl, cbm_doclink_taken_fn taken) { |
no test coverage detected