syntax_text

func syntax_text<Category>(syntax: &Syntax<Category>) -> String

Materializes the syntax's tokens and trivia as source text without reparsing.

Splices are expanded without the protective grouping used by category materializers, so this is an inspection view rather than a validation step.

View Source
pub func syntax_text<Category>(syntax: &Syntax<Category>) -> String {
	materialize(raw: syntax.raw, group_splices: false).source
}