class

Crst::PositionScanner

Inherits Crst::Visitor < Reference < Object

Traverses the AST and assigns line/column info to nodes by finding them in content.

Constructors

new(content : String)
Source

Instance methods

process(node : Node)

Logic to perform on each node.

Source
reset(new_content : String | Nil = nil)

Resets internal state so the scanner can be reused on a different document.

Source
scan(doc : Node)
Source