Skip to content

Commit e1fe502

Browse files
Kenomlechu
andauthored
Update src/syntax_tree.jl
Co-authored-by: Em Chu <[email protected]>
1 parent cb9fdf6 commit e1fe502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/syntax_tree.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function Base.getproperty(data::SyntaxData, name::Symbol)
6666
# Allow access for compatibility. It was renamed (with changed) semantics
6767
# to `byte_end::UInt32` to match the rest of the code base, which identified
6868
# nodes, by their last byte.
69-
return Int(getfield(data, :byte_end) - getfield(data, :raw).node_span + UInt32(1))
69+
return Int(getfield(data, :byte_end) - getfield(data, :raw).span + UInt32(1))
7070
end
7171
return getfield(data, name)
7272
end

0 commit comments

Comments
 (0)