| 1 | // for vls module test |
| 2 | module sample_mod2 |
| 3 | |
| 4 | // public |
| 5 | |
| 6 | pub struct PublicStruct2 { |
| 7 | data_int int |
| 8 | data_string string |
| 9 | data_u8 u8 |
| 10 | } |
| 11 | |
| 12 | pub const public_const2 = 'a public const' |
| 13 | |
| 14 | pub enum PublicEnum2 { |
| 15 | a |
| 16 | b |
| 17 | c |
| 18 | } |
| 19 | |
| 20 | pub interface PublicInterface2 { |
| 21 | val int |
| 22 | method() string |
| 23 | } |
| 24 | |
| 25 | pub type PublicAlias2 = u8 | u16 | int |
| 26 | |
| 27 | pub fn public_fn2(val int) string { |
| 28 | return '${val}' |
| 29 | } |
| 30 | |
| 31 | // private |
| 32 | |
| 33 | struct PrivateStruct2 { |
| 34 | data int |
| 35 | data_string string |
| 36 | } |
| 37 | |
| 38 | const private_const2 = 'a private const' |
| 39 | |
| 40 | enum PrivateEnum2 { |
| 41 | a |
| 42 | b |
| 43 | c |
| 44 | } |
| 45 | |
| 46 | interface PrivateInterface2 { |
| 47 | val int |
| 48 | method() string |
| 49 | } |
| 50 | |
| 51 | type PrivateAlias2 = u8 | u16 | int |
| 52 | |
| 53 | fn private_fn2(val int) string { |
| 54 | return '${val}' |
| 55 | } |
| 56 | |