@@ -40,7 +40,7 @@ protected ExpressionVisitor()
40
40
/// Visits an Expression.
41
41
/// </summary>
42
42
/// <param name="node">The Expression.</param>
43
- /// <returns>The Expression (posibly modified) .</returns>
43
+ /// <returns>The result of visiting the Expression .</returns>
44
44
protected virtual T Visit ( Expression node )
45
45
{
46
46
if ( node == null )
@@ -116,7 +116,7 @@ protected virtual T Visit(Expression node)
116
116
/// Visits an Expression list.
117
117
/// </summary>
118
118
/// <param name="nodes">The Expression list.</param>
119
- /// <returns>The Expression list (possibly modified) .</returns>
119
+ /// <returns>The result of visiting the Expressions .</returns>
120
120
protected T Visit ( ReadOnlyCollection < Expression > nodes )
121
121
{
122
122
for ( int i = 0 , n = nodes . Count ; i < n ; i ++ )
@@ -130,7 +130,7 @@ protected T Visit(ReadOnlyCollection<Expression> nodes)
130
130
/// Visits a BinaryExpression.
131
131
/// </summary>
132
132
/// <param name="node">The BinaryExpression.</param>
133
- /// <returns>The BinaryExpression (possibly modified) .</returns>
133
+ /// <returns>The result of visiting the Expression .</returns>
134
134
protected virtual T VisitBinary ( BinaryExpression node )
135
135
{
136
136
this . Visit ( node . Left ) ;
@@ -143,7 +143,7 @@ protected virtual T VisitBinary(BinaryExpression node)
143
143
/// Visits a ConditionalExpression.
144
144
/// </summary>
145
145
/// <param name="node">The ConditionalExpression.</param>
146
- /// <returns>The ConditionalExpression (possibly modified) .</returns>
146
+ /// <returns>The result of visiting the Expression .</returns>
147
147
protected virtual T VisitConditional ( ConditionalExpression node )
148
148
{
149
149
this . Visit ( node . Test ) ;
@@ -156,7 +156,7 @@ protected virtual T VisitConditional(ConditionalExpression node)
156
156
/// Visits a ConstantExpression.
157
157
/// </summary>
158
158
/// <param name="node">The ConstantExpression.</param>
159
- /// <returns>The ConstantExpression (possibly modified) .</returns>
159
+ /// <returns>The result of visiting the Expression .</returns>
160
160
protected virtual T VisitConstant ( ConstantExpression node )
161
161
{
162
162
return default ( T ) ;
@@ -166,7 +166,7 @@ protected virtual T VisitConstant(ConstantExpression node)
166
166
/// Visits an ElementInit.
167
167
/// </summary>
168
168
/// <param name="node">The ElementInit.</param>
169
- /// <returns>The ElementInit (possibly modified) .</returns>
169
+ /// <returns>The result of visiting the Expression .</returns>
170
170
protected virtual T VisitElementInit ( ElementInit node )
171
171
{
172
172
this . Visit ( node . Arguments ) ;
@@ -180,7 +180,7 @@ protected virtual T VisitElementInit(ElementInit node)
180
180
/// Visits an ElementInit list.
181
181
/// </summary>
182
182
/// <param name="nodes">The ElementInit list.</param>
183
- /// <returns>The ElementInit list (possibly modified) .</returns>
183
+ /// <returns>The result of visiting the Expressions .</returns>
184
184
protected T VisitElementInitList (
185
185
ReadOnlyCollection < ElementInit > nodes )
186
186
{
@@ -195,7 +195,7 @@ protected T VisitElementInitList(
195
195
/// Visits an InvocationExpression.
196
196
/// </summary>
197
197
/// <param name="node">The InvocationExpression.</param>
198
- /// <returns>The InvocationExpression (possibly modified) .</returns>
198
+ /// <returns>The result of visiting the Expression .</returns>
199
199
protected virtual T VisitInvocation ( InvocationExpression node )
200
200
{
201
201
this . Visit ( node . Arguments ) ;
@@ -210,7 +210,7 @@ protected virtual T VisitInvocation(InvocationExpression node)
210
210
/// Visits a LambdaExpression.
211
211
/// </summary>
212
212
/// <param name="node">The LambdaExpression.</param>
213
- /// <returns>The LambdaExpression (possibly modified) .</returns>
213
+ /// <returns>The result of visiting the Expression .</returns>
214
214
protected virtual T VisitLambda ( LambdaExpression node )
215
215
{
216
216
this . Visit ( node . Body ) ;
@@ -221,7 +221,7 @@ protected virtual T VisitLambda(LambdaExpression node)
221
221
/// Visits a ListInitExpression.
222
222
/// </summary>
223
223
/// <param name="node">The ListInitExpression.</param>
224
- /// <returns>The ListInitExpression (possibly modified) .</returns>
224
+ /// <returns>The result of visiting the Expression .</returns>
225
225
protected virtual T VisitListInit ( ListInitExpression node )
226
226
{
227
227
this . VisitNew ( node . NewExpression ) ;
@@ -233,7 +233,7 @@ protected virtual T VisitListInit(ListInitExpression node)
233
233
/// Visits a MemberExpression.
234
234
/// </summary>
235
235
/// <param name="node">The MemberExpression.</param>
236
- /// <returns>The MemberExpression (possibly modified) .</returns>
236
+ /// <returns>The result of visiting the Expression .</returns>
237
237
protected virtual T VisitMember ( MemberExpression node )
238
238
{
239
239
this . Visit ( node . Expression ) ;
@@ -244,7 +244,7 @@ protected virtual T VisitMember(MemberExpression node)
244
244
/// Visits a MemberAssignment.
245
245
/// </summary>
246
246
/// <param name="node">The MemberAssignment.</param>
247
- /// <returns>The MemberAssignment (possibly modified) .</returns>
247
+ /// <returns>The result of visiting the Expression .</returns>
248
248
protected virtual T VisitMemberAssignment ( MemberAssignment node )
249
249
{
250
250
this . Visit ( node . Expression ) ;
@@ -255,7 +255,7 @@ protected virtual T VisitMemberAssignment(MemberAssignment node)
255
255
/// Visits a MemberBinding.
256
256
/// </summary>
257
257
/// <param name="node">The MemberBinding.</param>
258
- /// <returns>The MemberBinding (possibly modified) .</returns>
258
+ /// <returns>The result of visiting the Expression .</returns>
259
259
protected virtual T VisitMemberBinding ( MemberBinding node )
260
260
{
261
261
switch ( node . BindingType )
@@ -278,7 +278,7 @@ protected virtual T VisitMemberBinding(MemberBinding node)
278
278
/// Visits a MemberBinding list.
279
279
/// </summary>
280
280
/// <param name="nodes">The MemberBinding list.</param>
281
- /// <returns>The MemberBinding list (possibly modified) .</returns>
281
+ /// <returns>The result of visiting the Expression .</returns>
282
282
protected virtual T VisitMemberBindingList ( ReadOnlyCollection < MemberBinding > nodes )
283
283
{
284
284
for ( int i = 0 , n = nodes . Count ; i < n ; i ++ )
@@ -292,7 +292,7 @@ protected virtual T VisitMemberBindingList(ReadOnlyCollection<MemberBinding> nod
292
292
/// Visits a MemberInitExpression.
293
293
/// </summary>
294
294
/// <param name="node">The MemberInitExpression.</param>
295
- /// <returns>The MemberInitExpression (possibly modified) .</returns>
295
+ /// <returns>The result of visiting the Expression .</returns>
296
296
protected virtual T VisitMemberInit ( MemberInitExpression node )
297
297
{
298
298
this . VisitNew ( node . NewExpression ) ;
@@ -304,7 +304,7 @@ protected virtual T VisitMemberInit(MemberInitExpression node)
304
304
/// Visits a MemberListBinding.
305
305
/// </summary>
306
306
/// <param name="node">The MemberListBinding.</param>
307
- /// <returns>The MemberListBinding (possibly modified) .</returns>
307
+ /// <returns>The result of visiting the Expression .</returns>
308
308
protected virtual T VisitMemberListBinding ( MemberListBinding node )
309
309
{
310
310
this . VisitElementInitList ( node . Initializers ) ;
@@ -315,7 +315,7 @@ protected virtual T VisitMemberListBinding(MemberListBinding node)
315
315
/// Visits a MemberMemberBinding.
316
316
/// </summary>
317
317
/// <param name="node">The MemberMemberBinding.</param>
318
- /// <returns>The MemberMemberBinding (possibly modified) .</returns>
318
+ /// <returns>The result of visiting the Expression .</returns>
319
319
protected virtual T VisitMemberMemberBinding ( MemberMemberBinding node )
320
320
{
321
321
this . VisitMemberBindingList ( node . Bindings ) ;
@@ -326,7 +326,7 @@ protected virtual T VisitMemberMemberBinding(MemberMemberBinding node)
326
326
/// Visits a MethodCallExpression.
327
327
/// </summary>
328
328
/// <param name="node">The MethodCallExpression.</param>
329
- /// <returns>The MethodCallExpression (possibly modified) .</returns>
329
+ /// <returns>The result of visiting the Expression .</returns>
330
330
protected virtual T VisitMethodCall ( MethodCallExpression node )
331
331
{
332
332
this . Visit ( node . Object ) ;
@@ -338,7 +338,7 @@ protected virtual T VisitMethodCall(MethodCallExpression node)
338
338
/// Visits a NewExpression.
339
339
/// </summary>
340
340
/// <param name="node">The NewExpression.</param>
341
- /// <returns>The NewExpression (possibly modified) .</returns>
341
+ /// <returns>The result of visiting the Expression .</returns>
342
342
protected virtual T VisitNew ( NewExpression node )
343
343
{
344
344
this . Visit ( node . Arguments ) ;
@@ -349,7 +349,7 @@ protected virtual T VisitNew(NewExpression node)
349
349
/// Visits a NewArrayExpression.
350
350
/// </summary>
351
351
/// <param name="node">The NewArrayExpression.</param>
352
- /// <returns>The NewArrayExpression (possibly modified) .</returns>
352
+ /// <returns>The result of visiting the Expression .</returns>
353
353
protected virtual T VisitNewArray ( NewArrayExpression node )
354
354
{
355
355
this . Visit ( node . Expressions ) ;
@@ -360,7 +360,7 @@ protected virtual T VisitNewArray(NewArrayExpression node)
360
360
/// Visits a ParameterExpression.
361
361
/// </summary>
362
362
/// <param name="node">The ParameterExpression.</param>
363
- /// <returns>The ParameterExpression (possibly modified) .</returns>
363
+ /// <returns>The result of visiting the Expression .</returns>
364
364
protected virtual T VisitParameter ( ParameterExpression node )
365
365
{
366
366
return default ( T ) ;
@@ -370,7 +370,7 @@ protected virtual T VisitParameter(ParameterExpression node)
370
370
/// Visits a TypeBinaryExpression.
371
371
/// </summary>
372
372
/// <param name="node">The TypeBinaryExpression.</param>
373
- /// <returns>The TypeBinaryExpression (possibly modified) .</returns>
373
+ /// <returns>The result of visiting the Expression .</returns>
374
374
protected virtual T VisitTypeBinary ( TypeBinaryExpression node )
375
375
{
376
376
this . Visit ( node . Expression ) ;
@@ -381,7 +381,7 @@ protected virtual T VisitTypeBinary(TypeBinaryExpression node)
381
381
/// Visits a UnaryExpression.
382
382
/// </summary>
383
383
/// <param name="node">The UnaryExpression.</param>
384
- /// <returns>The UnaryExpression (possibly modified) .</returns>
384
+ /// <returns>The result of visiting the Expression .</returns>
385
385
protected virtual T VisitUnary ( UnaryExpression node )
386
386
{
387
387
this . Visit ( node . Operand ) ;
0 commit comments