File tree 14 files changed +17
-18
lines changed
14 files changed +17
-18
lines changed Original file line number Diff line number Diff line change 16
16
// https://github.com/dtolnay/syn
17
17
//
18
18
// - The DeriveInput syntax tree which represents input of a derive macro:
19
- // https://docs.rs/syn/1 .0/syn/struct.DeriveInput.html
19
+ // https://docs.rs/syn/2 .0/syn/struct.DeriveInput.html
20
20
//
21
21
// - An example of a derive macro implemented using Syn:
22
22
// https://github.com/dtolnay/syn/tree/master/examples/heapsize
Original file line number Diff line number Diff line change 40
40
// https://github.com/dtolnay/quote
41
41
//
42
42
// - Joining together the type name + "Builder" to make the builder's name:
43
- // https://docs.rs/syn/1 .0/syn/struct.Ident.html
43
+ // https://docs.rs/syn/2 .0/syn/struct.Ident.html
44
44
45
45
use derive_builder:: Builder ;
46
46
Original file line number Diff line number Diff line change 25
25
//
26
26
// Resources:
27
27
//
28
- // - Relevant syntax tree types :
28
+ // - Relevant syntax tree type :
29
29
// https://docs.rs/syn/2.0/syn/struct.Attribute.html
30
30
31
31
use derive_builder:: Builder ;
Original file line number Diff line number Diff line change 12
12
// https://doc.rust-lang.org/std/macro.compile_error.html
13
13
//
14
14
// - Lowering a syn::Error into an invocation of compile_error:
15
- // https://docs.rs/syn/1 .0/syn/struct.Error.html#method.to_compile_error
15
+ // https://docs.rs/syn/2 .0/syn/struct.Error.html#method.to_compile_error
16
16
17
17
use derive_builder:: Builder ;
18
18
Original file line number Diff line number Diff line change 9
9
// Resources:
10
10
//
11
11
// - The DeriveInput syntax tree which represents input of a derive macro:
12
- // https://docs.rs/syn/1 .0/syn/struct.DeriveInput.html
12
+ // https://docs.rs/syn/2 .0/syn/struct.DeriveInput.html
13
13
//
14
14
// - An example of a derive macro implemented using Syn:
15
15
// https://github.com/dtolnay/syn/tree/master/examples/heapsize
Original file line number Diff line number Diff line change 15
15
//
16
16
// Resources:
17
17
//
18
- // - Relevant syntax tree types:
19
- // https://docs.rs/syn/1.0/syn/struct.Attribute.html
20
- // https://docs.rs/syn/1.0/syn/enum.Meta.html
18
+ // - Relevant syntax tree type:
19
+ // https://docs.rs/syn/2.0/syn/struct.Attribute.html
21
20
//
22
21
// - Macro for applying a format string to some runtime value:
23
22
// https://doc.rust-lang.org/std/macro.format_args.html
Original file line number Diff line number Diff line change 10
10
// Resources:
11
11
//
12
12
// - Representation of generics in the Syn syntax tree:
13
- // https://docs.rs/syn/1 .0/syn/struct.Generics.html
13
+ // https://docs.rs/syn/2 .0/syn/struct.Generics.html
14
14
//
15
15
// - A helper for placing generics into an impl signature:
16
- // https://docs.rs/syn/1 .0/syn/struct.Generics.html#method.split_for_impl
16
+ // https://docs.rs/syn/2 .0/syn/struct.Generics.html#method.split_for_impl
17
17
//
18
18
// - Example code from Syn which deals with type parameters:
19
19
// https://github.com/dtolnay/syn/tree/master/examples/heapsize
Original file line number Diff line number Diff line change 17
17
// Resources:
18
18
//
19
19
// - The relevant types in the input will be represented in this syntax tree
20
- // node: https://docs.rs/syn/1 .0/syn/struct.TypePath.html
20
+ // node: https://docs.rs/syn/2 .0/syn/struct.TypePath.html
21
21
22
22
use derive_debug:: CustomDebug ;
23
23
use std:: fmt:: Debug ;
Original file line number Diff line number Diff line change 15
15
// Resources:
16
16
//
17
17
// - Parsing in Syn:
18
- // https://docs.rs/syn/1 .0/syn/parse/index.html
18
+ // https://docs.rs/syn/2 .0/syn/parse/index.html
19
19
//
20
20
// - An example of a function-like procedural macro implemented using Syn:
21
21
// https://github.com/dtolnay/syn/tree/master/examples/lazy-static
Original file line number Diff line number Diff line change 18
18
// Resources:
19
19
//
20
20
// - Example of creating a new Ident from a string:
21
- // https://docs.rs/syn/1 .0/syn/struct.Ident.html
21
+ // https://docs.rs/syn/2 .0/syn/struct.Ident.html
22
22
23
23
use seq:: seq;
24
24
Original file line number Diff line number Diff line change 26
26
// https://github.com/dtolnay/syn
27
27
//
28
28
// - The syn::Item type which represents a parsed enum as a syntax tree:
29
- // https://docs.rs/syn/1 .0/syn/enum.Item.html
29
+ // https://docs.rs/syn/2 .0/syn/enum.Item.html
30
30
31
31
use sorted:: sorted;
32
32
Original file line number Diff line number Diff line change 24
24
// Resources
25
25
//
26
26
// - The syn::Error type:
27
- // https://docs.rs/syn/1 .0/syn/struct.Error.html
27
+ // https://docs.rs/syn/2 .0/syn/struct.Error.html
28
28
29
29
use sorted:: sorted;
30
30
Original file line number Diff line number Diff line change 61
61
// Resources:
62
62
//
63
63
// - The VisitMut trait to iterate and mutate a syntax tree:
64
- // https://docs.rs/syn/1 .0/syn/visit_mut/trait.VisitMut.html
64
+ // https://docs.rs/syn/2 .0/syn/visit_mut/trait.VisitMut.html
65
65
//
66
66
// - The ExprMatch struct:
67
- // https://docs.rs/syn/1 .0/syn/struct.ExprMatch.html
67
+ // https://docs.rs/syn/2 .0/syn/struct.ExprMatch.html
68
68
69
69
use sorted:: sorted;
70
70
Original file line number Diff line number Diff line change 11
11
// Resources:
12
12
//
13
13
// - The syn::Pat syntax tree which forms the left hand side of a match arm:
14
- // https://docs.rs/syn/1 .0/syn/enum.Pat.html
14
+ // https://docs.rs/syn/2 .0/syn/enum.Pat.html
15
15
16
16
use sorted:: sorted;
17
17
You can’t perform that action at this time.
0 commit comments