Merlin::Context(IdentT, NodeT)
Constructors
Instance methods
[](key : IdentT | Nil) : Context(IdentT, NodeT)
Source[]?(key : IdentT | Nil) : Context(IdentT, NodeT) | Nil
Sourceadd(key : IdentT, value : Context(IdentT, NodeT), clone : Bool = true, overwrite_subcontexts : Bool = true) : Nil
Sourceadd(key : IdentT | Nil, value : NodeT | Array(NodeT) | MatchedToken(IdentT) | Array(MatchedToken(IdentT))) : Nil
Sourceadd(value : MatchedToken(IdentT)) : Nil
Sourceadd(value : NodeT) : Nil
Sourceafter_last_position
Sourceafter_last_position?
Sourcebecome(value : NodeT | MatchedToken(IdentT)) : Nil
Sourceclear
Sourceclone
Sourcecopy_with(name = @name.dup, nodes = @nodes.dup, tokens = @tokens.dup, sub_contexts = @sub_contexts.clone)
Sourcedrop(key : IdentT | Nil) : Context(IdentT, NodeT) | Nil
Sourcedrop_context(key : IdentT | Nil) : Context(IdentT, NodeT) | Nil
Sourcedrop_contexts
Sourcedrop_nodes
Sourcedrop_tokens
Sourceempty?
Sourcefirst_position
Sourcefirst_position?
Sourcelast_position
Sourcelast_position?
Sourcemerge(from : Context(IdentT, NodeT), clone : Bool = true, overwrite_subcontexts : Bool = true) : Nil
Sourcename
Sourcename=(name : IdentT)
Sourcenodes
Sourcenodes?
Sourcereset(name : IdentT | Nil) : Nil
Sourcesubcontext_self(as_key : IdentT = @name.not_nil!) : Nil
Sourceto_subcontext(key : IdentT | Nil) : Nil
Sourcetokens
Sourcetokens?
Source