Fix ast types' _fields and use 0-based column
This commit is contained in:
@@ -6,12 +6,12 @@ expression: "parse_program(source, \"<test>\").unwrap()"
|
||||
Located {
|
||||
location: Location {
|
||||
row: 1,
|
||||
column: 1,
|
||||
column: 0,
|
||||
},
|
||||
end_location: Some(
|
||||
Location {
|
||||
row: 1,
|
||||
column: 12,
|
||||
column: 11,
|
||||
},
|
||||
),
|
||||
custom: (),
|
||||
@@ -20,12 +20,12 @@ expression: "parse_program(source, \"<test>\").unwrap()"
|
||||
Located {
|
||||
location: Location {
|
||||
row: 1,
|
||||
column: 1,
|
||||
column: 0,
|
||||
},
|
||||
end_location: Some(
|
||||
Location {
|
||||
row: 1,
|
||||
column: 5,
|
||||
column: 4,
|
||||
},
|
||||
),
|
||||
custom: (),
|
||||
@@ -34,12 +34,12 @@ expression: "parse_program(source, \"<test>\").unwrap()"
|
||||
Located {
|
||||
location: Location {
|
||||
row: 1,
|
||||
column: 1,
|
||||
column: 0,
|
||||
},
|
||||
end_location: Some(
|
||||
Location {
|
||||
row: 1,
|
||||
column: 2,
|
||||
column: 1,
|
||||
},
|
||||
),
|
||||
custom: (),
|
||||
@@ -51,12 +51,12 @@ expression: "parse_program(source, \"<test>\").unwrap()"
|
||||
Located {
|
||||
location: Location {
|
||||
row: 1,
|
||||
column: 4,
|
||||
column: 3,
|
||||
},
|
||||
end_location: Some(
|
||||
Location {
|
||||
row: 1,
|
||||
column: 5,
|
||||
column: 4,
|
||||
},
|
||||
),
|
||||
custom: (),
|
||||
@@ -73,12 +73,12 @@ expression: "parse_program(source, \"<test>\").unwrap()"
|
||||
value: Located {
|
||||
location: Location {
|
||||
row: 1,
|
||||
column: 8,
|
||||
column: 7,
|
||||
},
|
||||
end_location: Some(
|
||||
Location {
|
||||
row: 1,
|
||||
column: 12,
|
||||
column: 11,
|
||||
},
|
||||
),
|
||||
custom: (),
|
||||
@@ -87,12 +87,12 @@ expression: "parse_program(source, \"<test>\").unwrap()"
|
||||
Located {
|
||||
location: Location {
|
||||
row: 1,
|
||||
column: 8,
|
||||
column: 7,
|
||||
},
|
||||
end_location: Some(
|
||||
Location {
|
||||
row: 1,
|
||||
column: 9,
|
||||
column: 8,
|
||||
},
|
||||
),
|
||||
custom: (),
|
||||
@@ -106,12 +106,12 @@ expression: "parse_program(source, \"<test>\").unwrap()"
|
||||
Located {
|
||||
location: Location {
|
||||
row: 1,
|
||||
column: 11,
|
||||
column: 10,
|
||||
},
|
||||
end_location: Some(
|
||||
Location {
|
||||
row: 1,
|
||||
column: 12,
|
||||
column: 11,
|
||||
},
|
||||
),
|
||||
custom: (),
|
||||
|
||||
Reference in New Issue
Block a user