class
Crst::PositionScanner
- Crst::PositionScanner
- Crst::Visitor
- Reference
- Object
Overview
Traverses the AST and assigns line/column info to nodes by finding them in content.
Defined in:
crst/position_scanner.crConstructors
Instance Method Summary
-
#process(node : Node)
Logic to perform on each node.
-
#reset(new_content : String | Nil = nil)
Resets internal state so the scanner can be reused on a different document.
- #scan(doc : Node)
Instance methods inherited from class Crst::Visitor
process(node : Crst::Node)
process,
visit(node : Crst::Node)
visit
Constructor Detail
Instance Method Detail
Description copied from class Crst::Visitor
Logic to perform on each node.
def reset(new_content : String | Nil = nil)
#
Resets internal state so the scanner can be reused on a different document.