1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: fix error pos on default value (#6338)

This commit is contained in:
Daniel Däschle
2020-09-09 15:34:41 +02:00
committed by GitHub
parent 78e28a72ed
commit 3a146a6dbe
17 changed files with 56 additions and 43 deletions

View File

@ -4,28 +4,28 @@ module websocket
struct MessageEventHandler {
handler SocketMessageFn
handler2 SocketMessageFn2
is_ref bool = false
is_ref bool
ref voidptr
}
struct ErrorEventHandler {
handler SocketErrorFn
handler2 SocketErrorFn2
is_ref bool = false
is_ref bool
ref voidptr
}
struct OpenEventHandler {
handler SocketOpenFn
handler2 SocketOpenFn2
is_ref bool = false
is_ref bool
ref voidptr
}
struct CloseEventHandler {
handler SocketCloseFn
handler2 SocketCloseFn2
is_ref bool = false
is_ref bool
ref voidptr
}

View File

@ -21,7 +21,7 @@ const (
// Client represents websocket client state
pub struct Client {
is_server bool = false
is_server bool
mut:
ssl_conn &openssl.SSLConn
flags []Flag
@ -38,7 +38,7 @@ pub:
pub mut:
conn net.TcpConn
nonce_size int = 16 // you can try 18 too
panic_on_callback bool = false
panic_on_callback bool
state State
resource_name string
last_pong_ut u64

View File

@ -18,7 +18,7 @@ mut:
close_callbacks []CloseEventHandler
pub:
port int
is_ssl bool = false
is_ssl bool
pub mut:
ping_interval int = 30 // in seconds
state State