lib-ruby-parser 3.0.11

Ruby parser
Documentation
1
2
3
4
5
6
7
8
use super::Loc;

#[test]
fn test_loc_new() {
    let loc = Loc::new(1, 2);
    assert_eq!(loc.begin(), 1);
    assert_eq!(loc.end(), 2);
}