1
0
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:
yuyi 2022-08-02 04:15:56 +08:00 committed by GitHub
parent 7546d1450c
commit ce59fffb53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -554,7 +554,7 @@ fn (mut s Scanner) end_of_file() token.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()
timers.measure_pause('PARSE')
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 {
t := s.text_scan()
if s.comments_mode == .skip_comments && t.kind == .comment {