sealmap-rust 0.4.0

Pure-Rust (syn) language adapter for sealmap: extracts symbols, relations and ordered call flows from Rust workspaces
Documentation
1
2
3
4
5
6
7
8
9
//! Compact printing of syn nodes, through the shared label rules.

use quote::ToTokens;
use sealmap_extract::labels::squeeze;

/// Print any syn node compactly (see [`squeeze`]).
pub(crate) fn tokens(node: &impl ToTokens) -> String {
    squeeze(&node.to_token_stream().to_string())
}