Skip to main content

inline_blank_node

Function inline_blank_node 

Source
pub fn inline_blank_node(
    query: Query<'_, '_, (&Element, &Source, &RopeC, &Label, &PositionComponent, &DynLang, &mut CodeActionRequest)>,
    config: Res<'_, ServerConfig>,
)
Expand description

Code action: the inverse of extract_blank_node. When the cursor sits on a labelled blank node _:bN that is defined by exactly one statement and referenced in exactly one other place, inline the definition back into an anonymous blank node [ … ]. For example:

<#s> foaf:knows _:b0 .
_:b0 foaf:name "Alice" .

becomes

<#s> foaf:knows [ foaf:name "Alice" ] .

Generic over the language marker L, mirroring extract_blank_node.