diff options
author | Aleksey Kladov <[email protected]> | 2018-01-12 19:05:46 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-01-12 19:05:46 +0000 |
commit | f31d85860771b0c4c8d232d79e4a3489a051ba9d (patch) | |
tree | 931adff1f926fa41943b726282f20822ade8ee36 /tests/data/parser/ok | |
parent | c111a1f7b8b9da2b4691c792e1658b2888ff5420 (diff) |
G: visibility
Diffstat (limited to 'tests/data/parser/ok')
-rw-r--r-- | tests/data/parser/ok/0012_visibility.rs | 5 | ||||
-rw-r--r-- | tests/data/parser/ok/0012_visibility.txt | 84 |
2 files changed, 89 insertions, 0 deletions
diff --git a/tests/data/parser/ok/0012_visibility.rs b/tests/data/parser/ok/0012_visibility.rs new file mode 100644 index 000000000..75b1db121 --- /dev/null +++ b/tests/data/parser/ok/0012_visibility.rs | |||
@@ -0,0 +1,5 @@ | |||
1 | fn a() {} | ||
2 | pub fn b() {} | ||
3 | pub(crate) fn c() {} | ||
4 | pub(super) fn d() {} | ||
5 | pub(in foo::bar::baz) fn e() {} | ||
diff --git a/tests/data/parser/ok/0012_visibility.txt b/tests/data/parser/ok/0012_visibility.txt new file mode 100644 index 000000000..8324c48d5 --- /dev/null +++ b/tests/data/parser/ok/0012_visibility.txt | |||
@@ -0,0 +1,84 @@ | |||
1 | FILE@[0; 98) | ||
2 | FN_ITEM@[0; 10) | ||
3 | FN_KW@[0; 2) | ||
4 | WHITESPACE@[2; 3) | ||
5 | IDENT@[3; 4) | ||
6 | L_PAREN@[4; 5) | ||
7 | R_PAREN@[5; 6) | ||
8 | WHITESPACE@[6; 7) | ||
9 | L_CURLY@[7; 8) | ||
10 | R_CURLY@[8; 9) | ||
11 | WHITESPACE@[9; 10) | ||
12 | FN_ITEM@[10; 24) | ||
13 | VISIBILITY@[10; 14) | ||
14 | PUB_KW@[10; 13) | ||
15 | WHITESPACE@[13; 14) | ||
16 | FN_KW@[14; 16) | ||
17 | WHITESPACE@[16; 17) | ||
18 | IDENT@[17; 18) | ||
19 | L_PAREN@[18; 19) | ||
20 | R_PAREN@[19; 20) | ||
21 | WHITESPACE@[20; 21) | ||
22 | L_CURLY@[21; 22) | ||
23 | R_CURLY@[22; 23) | ||
24 | WHITESPACE@[23; 24) | ||
25 | FN_ITEM@[24; 45) | ||
26 | VISIBILITY@[24; 35) | ||
27 | PUB_KW@[24; 27) | ||
28 | L_PAREN@[27; 28) | ||
29 | CRATE_KW@[28; 33) | ||
30 | R_PAREN@[33; 34) | ||
31 | WHITESPACE@[34; 35) | ||
32 | FN_KW@[35; 37) | ||
33 | WHITESPACE@[37; 38) | ||
34 | IDENT@[38; 39) | ||
35 | L_PAREN@[39; 40) | ||
36 | R_PAREN@[40; 41) | ||
37 | WHITESPACE@[41; 42) | ||
38 | L_CURLY@[42; 43) | ||
39 | R_CURLY@[43; 44) | ||
40 | WHITESPACE@[44; 45) | ||
41 | FN_ITEM@[45; 66) | ||
42 | VISIBILITY@[45; 56) | ||
43 | PUB_KW@[45; 48) | ||
44 | L_PAREN@[48; 49) | ||
45 | SUPER_KW@[49; 54) | ||
46 | R_PAREN@[54; 55) | ||
47 | WHITESPACE@[55; 56) | ||
48 | FN_KW@[56; 58) | ||
49 | WHITESPACE@[58; 59) | ||
50 | IDENT@[59; 60) | ||
51 | L_PAREN@[60; 61) | ||
52 | R_PAREN@[61; 62) | ||
53 | WHITESPACE@[62; 63) | ||
54 | L_CURLY@[63; 64) | ||
55 | R_CURLY@[64; 65) | ||
56 | WHITESPACE@[65; 66) | ||
57 | FN_ITEM@[66; 98) | ||
58 | VISIBILITY@[66; 88) | ||
59 | PUB_KW@[66; 69) | ||
60 | L_PAREN@[69; 70) | ||
61 | IDENT@[70; 72) | ||
62 | PATH@[72; 86) | ||
63 | PATH@[72; 81) | ||
64 | PATH@[72; 76) | ||
65 | PATH_SEGMENT@[72; 76) | ||
66 | WHITESPACE@[72; 73) | ||
67 | IDENT@[73; 76) | ||
68 | COLONCOLON@[76; 78) | ||
69 | PATH_SEGMENT@[78; 81) | ||
70 | IDENT@[78; 81) | ||
71 | COLONCOLON@[81; 83) | ||
72 | PATH_SEGMENT@[83; 86) | ||
73 | IDENT@[83; 86) | ||
74 | R_PAREN@[86; 87) | ||
75 | WHITESPACE@[87; 88) | ||
76 | FN_KW@[88; 90) | ||
77 | WHITESPACE@[90; 91) | ||
78 | IDENT@[91; 92) | ||
79 | L_PAREN@[92; 93) | ||
80 | R_PAREN@[93; 94) | ||
81 | WHITESPACE@[94; 95) | ||
82 | L_CURLY@[95; 96) | ||
83 | R_CURLY@[96; 97) | ||
84 | WHITESPACE@[97; 98) | ||