@@ -77,68 +77,68 @@ impl PluginCommentsProxy {
77
77
#[ swc_trace]
78
78
impl Comments for PluginCommentsProxy {
79
79
fn add_leading ( & self , pos : BytePos , cmt : Comment ) {
80
- swc_common:: comments:: COMMENTS . with ( |comments | {
81
- comments . add_leading ( pos, cmt) ;
80
+ swc_common:: comments:: COMMENTS . with ( |c | {
81
+ c . add_leading ( pos, cmt) ;
82
82
} ) ;
83
83
}
84
84
85
85
fn add_leading_comments ( & self , pos : BytePos , comments : Vec < Comment > ) {
86
- swc_common:: comments:: COMMENTS . with ( |comments | {
87
- comments . add_leading_comments ( pos, comments) ;
86
+ swc_common:: comments:: COMMENTS . with ( |c | {
87
+ c . add_leading_comments ( pos, comments) ;
88
88
} ) ;
89
89
}
90
90
91
91
fn has_leading ( & self , pos : BytePos ) -> bool {
92
- swc_common:: comments:: COMMENTS . with ( |comments| comments . has_leading ( pos) )
92
+ swc_common:: comments:: COMMENTS . with ( |c| c . has_leading ( pos) )
93
93
}
94
94
95
95
fn move_leading ( & self , from : BytePos , to : BytePos ) {
96
- swc_common:: comments:: COMMENTS . with ( |comments | {
97
- comments . move_leading ( from, to) ;
96
+ swc_common:: comments:: COMMENTS . with ( |c | {
97
+ c . move_leading ( from, to) ;
98
98
} ) ;
99
99
}
100
100
101
101
fn take_leading ( & self , pos : BytePos ) -> Option < Vec < Comment > > {
102
- swc_common:: comments:: COMMENTS . with ( |comments| comments . take_leading ( pos) )
102
+ swc_common:: comments:: COMMENTS . with ( |c| c . take_leading ( pos) )
103
103
}
104
104
105
105
fn get_leading ( & self , pos : BytePos ) -> Option < Vec < Comment > > {
106
- swc_common:: comments:: COMMENTS . with ( |comments| comments . get_leading ( pos) )
106
+ swc_common:: comments:: COMMENTS . with ( |c| c . get_leading ( pos) )
107
107
}
108
108
109
109
fn add_trailing ( & self , pos : BytePos , cmt : Comment ) {
110
- swc_common:: comments:: COMMENTS . with ( |comments | {
111
- comments . add_trailing ( pos, cmt) ;
110
+ swc_common:: comments:: COMMENTS . with ( |c | {
111
+ c . add_trailing ( pos, cmt) ;
112
112
} ) ;
113
113
}
114
114
115
115
fn add_trailing_comments ( & self , pos : BytePos , comments : Vec < Comment > ) {
116
- swc_common:: comments:: COMMENTS . with ( |comments | {
117
- comments . add_trailing_comments ( pos, comments) ;
116
+ swc_common:: comments:: COMMENTS . with ( |c | {
117
+ c . add_trailing_comments ( pos, comments) ;
118
118
} ) ;
119
119
}
120
120
121
121
fn has_trailing ( & self , pos : BytePos ) -> bool {
122
- swc_common:: comments:: COMMENTS . with ( |comments| comments . has_trailing ( pos) )
122
+ swc_common:: comments:: COMMENTS . with ( |c| c . has_trailing ( pos) )
123
123
}
124
124
125
125
fn move_trailing ( & self , from : BytePos , to : BytePos ) {
126
- swc_common:: comments:: COMMENTS . with ( |comments | {
127
- comments . move_trailing ( from, to) ;
126
+ swc_common:: comments:: COMMENTS . with ( |c | {
127
+ c . move_trailing ( from, to) ;
128
128
} ) ;
129
129
}
130
130
131
131
fn take_trailing ( & self , pos : BytePos ) -> Option < Vec < Comment > > {
132
- swc_common:: comments:: COMMENTS . with ( |comments| comments . take_trailing ( pos) )
132
+ swc_common:: comments:: COMMENTS . with ( |c| c . take_trailing ( pos) )
133
133
}
134
134
135
135
fn get_trailing ( & self , pos : BytePos ) -> Option < Vec < Comment > > {
136
- swc_common:: comments:: COMMENTS . with ( |comments| comments . get_trailing ( pos) )
136
+ swc_common:: comments:: COMMENTS . with ( |c| c . get_trailing ( pos) )
137
137
}
138
138
139
139
fn add_pure_comment ( & self , pos : BytePos ) {
140
- swc_common:: comments:: COMMENTS . with ( |comments | {
141
- comments . add_pure_comment ( pos) ;
140
+ swc_common:: comments:: COMMENTS . with ( |c | {
141
+ c . add_pure_comment ( pos) ;
142
142
} ) ;
143
143
}
144
144
}
0 commit comments