pub struct ParseCtx<'a> {
pub session: &'a Session,
pub scope: Scope<'a>,
pub rules: ParsePatternRules,
}
Fields§
§session: &'a Session
§scope: Scope<'a>
§rules: ParsePatternRules
Implementations§
source§impl<'a> ParseCtx<'a>
impl<'a> ParseCtx<'a>
pub fn with_scope(&self, scope: Scope<'a>) -> ParseCtx<'a>
pub fn with_rules(&self, rules: ParsePatternRules) -> ParseCtx<'a>
pub fn create_child_scope(&self, typ: ScopeType) -> Scope<'a>
sourcepub fn create_node(&self, loc: SourceRange<'a>, stx: Syntax<'a>) -> Node<'a>
pub fn create_node(&self, loc: SourceRange<'a>, stx: Syntax<'a>) -> Node<'a>
This node will be created in the current scope.