@@ -36,7 +36,7 @@ function Base.printstyled(io::IO, rootnode::MaybeTypedSyntaxNode;
3636 rt = gettyp(rootnode)
3737 nd = with_linenumber ? ndigits_linenumbers(rootnode, idxend) : 0
3838 rootnode = get_function_def(rootnode)
39- position = Int( first_byte(rootnode) ) - 1
39+ position = first_byte(rootnode) - 1
4040 with_linenumber && print_linenumber(io, rootnode, position + 1 , nd)
4141 if is_function_def(rootnode)
4242 # We're printing a MethodInstance
@@ -77,7 +77,7 @@ function show_src_expr(io::IO, node::MaybeTypedSyntaxNode, position::Int, pre::S
7777 position = show_src_expr(io, child, position, cpre, cpre2; type_annotations, iswarn, hide_type_stable, nd)
7878 ctype_annotate && show_annotation(io, cT, cpost, node. source, position; iswarn)
7979 end
80- return Int( catchup(io, node, position, nd, _lastidx+ 1 ) )
80+ return catchup(io, node, position, nd, _lastidx+ 1 )
8181end
8282
8383# should we print a type-annotation?
@@ -181,7 +181,7 @@ function catchup(io::IO, node::MaybeTypedSyntaxNode, position::Int, nd::Int, sto
181181 print_linenumber(io, node, position + i + 1 , nd)
182182 end
183183 end
184- position = stop - 1
184+ position = Int( stop - 1 )
185185 end
186186 return position
187187end
0 commit comments