mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
scanner: make scan_all_tokens_in_buffer() private (#15312)
This commit is contained in:
parent
7546d1450c
commit
ce59fffb53
@ -554,7 +554,7 @@ fn (mut s Scanner) end_of_file() token.Token {
|
|||||||
return s.new_eof_token()
|
return s.new_eof_token()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (mut s Scanner) scan_all_tokens_in_buffer() {
|
fn (mut s Scanner) scan_all_tokens_in_buffer() {
|
||||||
mut timers := util.get_timers()
|
mut timers := util.get_timers()
|
||||||
timers.measure_pause('PARSE')
|
timers.measure_pause('PARSE')
|
||||||
util.timing_start('SCAN')
|
util.timing_start('SCAN')
|
||||||
@ -571,7 +571,7 @@ pub fn (mut s Scanner) scan_all_tokens_in_buffer() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (mut s Scanner) scan_remaining_text() {
|
fn (mut s Scanner) scan_remaining_text() {
|
||||||
for {
|
for {
|
||||||
t := s.text_scan()
|
t := s.text_scan()
|
||||||
if s.comments_mode == .skip_comments && t.kind == .comment {
|
if s.comments_mode == .skip_comments && t.kind == .comment {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user