MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / script_attribute_value

Function script_attribute_value

internal/cbm/extract_imports.c:2016–2022  ·  view source on GitHub ↗

The text of a attribute's value, or "" when it carries none * (` `), so every attribute reads through one path. */

Source from the content-addressed store, hash-verified

2014/* The text of a <script> attribute's value, or "" when it carries none
2015 * (`<script type>`), so every attribute reads through one path. */
2016static const char *script_attribute_value(CBMExtractCtx *ctx, TSNode attribute) {
2017 TSNode value_node = attribute;
2018 if (!find_first_descendant_of(attribute, "attribute_value", &value_node)) {
2019 return "";
2020 }
2021 return cbm_node_text(ctx->arena, value_node, ctx->source);
2022}
2023
2024/* Apply one <script> attribute to the parse decision. Returns false when the
2025 * attribute rules the block out of inline extraction:

Callers 1

apply_script_attributeFunction · 0.85

Calls 2

find_first_descendant_ofFunction · 0.85
cbm_node_textFunction · 0.85

Tested by

no test coverage detected