MCPcopy Create free account
hub / github.com/csskit/csskit / from_query

Method from_query

crates/csskit_ast/src/selector/matcher/node_data.rs:18–21  ·  view source on GitHub ↗
(node: VisitNode)

Source from the content-addressed store, hash-verified

16impl NodeData {
17 #[inline]
18 pub(crate) fn from_query(node: VisitNode) -> Self {
19 let node_id = node.node_id.expect("NodeData only stores queryable nodes");
20 Self { node_id, span: node.span, metadata: node.self_metadata(), properties: PropertyValues::from_query(&node) }
21 }
22}

Callers

nothing calls this directly

Calls 1

self_metadataMethod · 0.45

Tested by

no test coverage detected