File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 325
325
# unrolled optimized version for that fast path. Empirically it seems we
326
326
# only hit the slow path about 5% of the time here.
327
327
i = stream. lookahead_index
328
- if n == 1 && i+ 1 <= length (stream. lookahead)
328
+ @inbounds if n == 1 && i+ 1 <= length (stream. lookahead)
329
329
if skip_newlines
330
330
k = kind (stream. lookahead[i])
331
331
if ! (k == K " Whitespace" || k == K " Comment" || k == K " NewlineWs" )
364
364
end
365
365
_buffer_lookahead_tokens (stream. lexer, stream. lookahead)
366
366
end
367
- k = kind (stream. lookahead[i])
367
+ k = @inbounds kind (stream. lookahead[i])
368
368
if ! ((k == K " Whitespace" || k == K " Comment" ) ||
369
369
(k == K " NewlineWs" && skip_newlines))
370
370
if n == 1
@@ -409,7 +409,7 @@ function peek_token(stream::ParseStream, n::Integer=1;
409
409
if ! skip_whitespace
410
410
i = stream. lookahead_index
411
411
end
412
- return stream. lookahead[i]
412
+ return @inbounds stream. lookahead[i]
413
413
end
414
414
415
415
function _peek_behind_fields (ranges, i)
You can’t perform that action at this time.
0 commit comments