func syntax_context_with_scope(context: SyntaxContext, scope: SyntaxScope) -> SyntaxContextReturns a context with the scope appended once.
View Source
pub func syntax_context_with_scope(context: SyntaxContext, scope: SyntaxScope) -> SyntaxContext {
if contains_scope(context: context, scope: scope) { return context }
let scopes = context.scopes
scopes.push(scope)
SyntaxContext(scopes: scopes)
}