copy_quote_context

func copy_quote_context(context: &QuoteContext) -> QuoteContext

Copies a quote context, including an owned copy of its definition-site scopes.

View Source
pub func copy_quote_context(context: &QuoteContext) -> QuoteContext {
	QuoteContext(
		definition_site: copy_syntax_context(context: context.definition_site),
		expansion_scope: context.expansion_scope
	)
}