1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
#![ doc( html_logo_url = "https://raw.githubusercontent.com/Wandalen/wTools/master/asset/img/logo_v3_trans_square.png" ) ]
#![ doc( html_favicon_url = "https://raw.githubusercontent.com/Wandalen/wTools/alpha/asset/img/logo_v3_trans_square_icon_small_v2.ico" ) ]
#![ doc( html_root_url = "https://docs.rs/proc_macro_tools/latest/proc_macro_tools/" ) ]
#![ doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/", "Readme.md" ) ) ]

// qqq : review every page of generated documentation improve how it look as well as its content
//
// attr
// Protected namespace of the module.
// container_kind
// Protected namespace of the module.
// dependency
// Dependencies of the module.
// derive
// Protected namespace of the module.
// diag
// Protected namespace of the module.
// drop
// Protected namespace of the module.
// exposed
// Exposed namespace of the module.

#[ cfg( all( feature = "enabled", feature = "attr" ) ) ]
pub mod attr;
#[ cfg( all( feature = "enabled", feature = "attr_prop" ) ) ]
pub mod attr_prop;
#[ cfg( all( feature = "enabled", feature = "components" ) ) ]
pub mod components;
#[ cfg( all( feature = "enabled", feature = "ct" ) ) ]
pub mod ct;
#[ cfg( all( feature = "enabled", feature = "container_kind" ) ) ]
pub mod container_kind;
#[ cfg( all( feature = "enabled", feature = "derive" ) ) ]
pub mod derive;
#[ cfg( all( feature = "enabled", feature = "diag" ) ) ]
pub mod diag;
#[ cfg( all( feature = "enabled", feature = "drop" ) ) ]
pub mod drop;
#[ cfg( all( feature = "enabled", feature = "equation" ) ) ]
pub mod equation;
#[ cfg( all( feature = "enabled", feature = "generic_args" ) ) ]
pub mod generic_args;
#[ cfg( all( feature = "enabled", feature = "generic_params" ) ) ]
pub mod generic_params;
#[ cfg( all( feature = "enabled", feature = "item" ) ) ]
pub mod item;
#[ cfg( all( feature = "enabled", feature = "item_struct" ) ) ]
pub mod item_struct;
#[ cfg( all( feature = "enabled", feature = "name" ) ) ]
pub mod name;
#[ cfg( all( feature = "enabled", feature = "kw" ) ) ]
pub mod kw;
#[ cfg( all( feature = "enabled", feature = "phantom" ) ) ]
pub mod phantom;
#[ cfg( all( feature = "enabled", feature = "punctuated" ) ) ]
pub mod punctuated;
#[ cfg( all( feature = "enabled", feature = "quantifier" ) ) ]
pub mod quantifier;
#[ cfg( all( feature = "enabled", feature = "struct_like" ) ) ]
pub mod struct_like;
#[ cfg( all( feature = "enabled", feature = "tokens" ) ) ]
pub mod tokens;
#[ cfg( all( feature = "enabled", feature = "typ" ) ) ]
pub mod typ;

#[ cfg( all( feature = "enabled" ) ) ]
pub mod iter;

///
/// Dependencies of the module.
///

#[ cfg( feature = "enabled" ) ]
#[ allow( unused_imports ) ]
pub mod dependency
{
  pub use ::syn;
  pub use ::quote;
  pub use ::proc_macro2;
  pub use ::interval_adapter;
  pub use ::clone_dyn_types;
  pub use ::former_types;
}

#[ doc( inline ) ]
#[ allow( unused_imports ) ]
#[ cfg( feature = "enabled" ) ]
pub use protected::*;

// qqq : put every file of the first level under feature

/// Protected namespace of the module.
#[ cfg( feature = "enabled" ) ]
#[ allow( unused_imports ) ]
pub mod protected
{

  mod _all
  {
    use super::super::*;
    pub use orphan::*;

    #[ cfg( feature = "attr" ) ]
    pub use attr::orphan::*;
    #[ cfg( feature = "attr_prop" ) ]
    pub use attr_prop::orphan::*;
    #[ cfg( feature = "components" ) ]
    pub use components::orphan::*;
    #[ cfg( feature = "container_kind" ) ]
    pub use container_kind::orphan::*;
    #[ cfg( feature = "ct" ) ]
    pub use ct::orphan::*;
    #[ cfg( feature = "derive" ) ]
    pub use derive::orphan::*;
    #[ cfg( feature = "diag" ) ]
    pub use diag::orphan::*;
    #[ cfg( feature = "drop" ) ]
    pub use drop::orphan::*;
    #[ cfg( feature = "equation" ) ]
    pub use equation::orphan::*;
    #[ cfg( feature = "generic_args" ) ]
    pub use generic_args::orphan::*;
    #[ cfg( feature = "generic_params" ) ]
    pub use generic_params::orphan::*;
    #[ cfg( feature = "item" ) ]
    pub use item::orphan::*;
    #[ cfg( feature = "item_struct" ) ]
    pub use item_struct::orphan::*;
    #[ cfg( feature = "name" ) ]
    pub use name::orphan::*;
    #[ cfg( feature = "kw" ) ]
    pub use kw::orphan::*;
    #[ cfg( feature = "phantom" ) ]
    pub use phantom::orphan::*;
    #[ cfg( feature = "punctuated" ) ]
    pub use punctuated::orphan::*;
    #[ cfg( feature = "quantifier" ) ]
    pub use quantifier::orphan::*;
    #[ cfg( feature = "struct_like" ) ]
    pub use struct_like::orphan::*;
    #[ cfg( feature = "tokens" ) ]
    pub use tokens::orphan::*;
    #[ cfg( feature = "typ" ) ]
    pub use typ::orphan::*;

    pub use iter::orphan::*;

  }

  #[ doc( inline ) ]
  pub use _all::*;

}

/// Parented namespace of the module.
#[ cfg( feature = "enabled" ) ]
  #[ allow( unused_imports ) ]
pub mod orphan
{

  // xxx : remove pub?
  mod _all
  {
    use super::super::*;
    pub use exposed::*;
  }

  #[ doc( inline ) ]
  pub use _all::*;

}

/// Exposed namespace of the module.
#[ cfg( feature = "enabled" ) ]
#[ allow( unused_imports ) ]
pub mod exposed
{
  use super::*;

  mod _all
  {
    use super::super::*;
    pub use prelude::*;

    #[ cfg( feature = "attr" ) ]
    pub use attr::exposed::*;
    #[ cfg( feature = "attr_prop" ) ]
    pub use attr_prop::exposed::*;
    #[ cfg( feature = "components" ) ]
    pub use components::exposed::*;
    #[ cfg( feature = "container_kind" ) ]
    pub use container_kind::exposed::*;
    #[ cfg( feature = "ct" ) ]
    pub use ct::exposed::*;
    #[ cfg( feature = "derive" ) ]
    pub use derive::exposed::*;
    #[ cfg( feature = "diag" ) ]
    pub use diag::exposed::*;
    #[ cfg( feature = "drop" ) ]
    pub use drop::exposed::*;
    #[ cfg( feature = "equation" ) ]
    pub use equation::exposed::*;
    #[ cfg( feature = "generic_args" ) ]
    pub use generic_args::exposed::*;
    #[ cfg( feature = "generic_params" ) ]
    pub use generic_params::exposed::*;
    #[ cfg( feature = "item" ) ]
    pub use item::exposed::*;
    #[ cfg( feature = "item_struct" ) ]
    pub use item_struct::exposed::*;
    #[ cfg( feature = "name" ) ]
    pub use name::exposed::*;
    #[ cfg( feature = "kw" ) ]
    pub use kw::exposed::*;
    #[ cfg( feature = "phantom" ) ]
    pub use phantom::exposed::*;
    #[ cfg( feature = "punctuated" ) ]
    pub use punctuated::exposed::*;
    #[ cfg( feature = "quantifier" ) ]
    pub use quantifier::exposed::*;
    #[ cfg( feature = "struct_like" ) ]
    pub use struct_like::exposed::*;
    #[ cfg( feature = "tokens" ) ]
    pub use tokens::exposed::*;
    #[ cfg( feature = "typ" ) ]
    pub use typ::exposed::*;

    pub use iter::exposed::*;

  }

  #[ doc( inline ) ]
  pub use _all::*;

}

/// Prelude to use essentials: `use my_module::prelude::*`.
#[ cfg( feature = "enabled" ) ]
#[ allow( unused_imports ) ]
pub mod prelude
{

  mod _all
  {
    use super::super::*;
    // pub use prelude::*;

    #[ cfg( feature = "attr" ) ]
    pub use attr::prelude::*;
    #[ cfg( feature = "attr_prop" ) ]
    pub use attr_prop::prelude::*;
    #[ cfg( feature = "components" ) ]
    pub use components::prelude::*;
    #[ cfg( feature = "container_kind" ) ]
    pub use container_kind::prelude::*;
    #[ cfg( feature = "ct" ) ]
    pub use ct::prelude::*;
    #[ cfg( feature = "derive" ) ]
    pub use derive::prelude::*;
    #[ cfg( feature = "diag" ) ]
    pub use diag::prelude::*;
    #[ cfg( feature = "drop" ) ]
    pub use drop::prelude::*;
    #[ cfg( feature = "equation" ) ]
    pub use equation::prelude::*;
    #[ cfg( feature = "generic_args" ) ]
    pub use generic_args::prelude::*;
    #[ cfg( feature = "generic_params" ) ]
    pub use generic_params::prelude::*;
    #[ cfg( feature = "item" ) ]
    pub use item::prelude::*;
    #[ cfg( feature = "item_struct" ) ]
    pub use item_struct::prelude::*;
    #[ cfg( feature = "name" ) ]
    pub use name::prelude::*;
    #[ cfg( feature = "kw" ) ]
    pub use kw::exposed::*;
    #[ cfg( feature = "phantom" ) ]
    pub use phantom::prelude::*;
    #[ cfg( feature = "punctuated" ) ]
    pub use punctuated::prelude::*;
    #[ cfg( feature = "quantifier" ) ]
    pub use quantifier::prelude::*;
    #[ cfg( feature = "struct_like" ) ]
    pub use struct_like::prelude::*;
    #[ cfg( feature = "tokens" ) ]
    pub use tokens::prelude::*;
    #[ cfg( feature = "typ" ) ]
    pub use typ::prelude::*;

    pub use iter::prelude::*;

  }

  #[ doc( inline ) ]
  pub use _all::*;

  #[ doc( inline ) ]
  pub use ::interval_adapter::prelude::*;

  #[ doc( inline ) ]
  pub use ::syn;

  #[ doc( inline ) ]
  #[ allow( unused_imports ) ]
  pub use ::proc_macro2;

  #[ doc( inline ) ]
  #[ allow( unused_imports ) ]
  pub use ::quote;

  #[ doc( inline ) ]
  #[ allow( unused_imports ) ]
  pub use ::quote::
  {
    quote,
    quote as qt,
    quote_spanned,
    format_ident,
  };

  // #[ doc( inline ) ]
  // #[ allow( unused_imports ) ]
  // pub use ::syn::spanned::Spanned;

  #[ doc( inline ) ]
  #[ allow( unused_imports ) ]
  pub use syn::
  {
    parse::ParseStream,
    Token,
    spanned::Spanned,
    braced,
    bracketed,
    custom_keyword,
    custom_punctuation,
    parenthesized,
    parse_macro_input,
    parse_quote,
    parse_quote as parse_qt,
    parse_quote_spanned,
    parse_quote_spanned as parse_qt_spanned,
  };

}

// qqq : introduce features. make it smart. discuss list of features before implementing