mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
don't allow calling private functions/methods
This commit is contained in:
@ -239,7 +239,7 @@ fn (t Token) str() string {
|
||||
fn (t Token) is_decl() bool {
|
||||
// TODO return t in [FUNC ,TIP, CONST, IMPORT_CONST ,AT ,EOF]
|
||||
return t == ENUM || t == INTERFACE || t == FUNC || t == STRUCT || t == TIP ||
|
||||
t == CONST || t == IMPORT_CONST || t == AT || t == EOF
|
||||
t == CONST || t == IMPORT_CONST || t == AT || t == PUB || t == EOF
|
||||
}
|
||||
|
||||
const (
|
||||
|
Reference in New Issue
Block a user