Base:
method
Visit
Microsoft.CodeAnalysis.Operations.OperationVisitor<TArgument, TResult>.Visit(Microsoft.CodeAnalysis.IOperation, TArgument)
44 references to Visit
ILLink.RoslynAnalyzer (44)
DataFlow\LocalDataFlowVisitor.cs (39)
83
Visit
(operation, state);
90
var branchValue =
Visit
(branchValueOperation, state);
249
TValue value =
Visit
(operation.Value, state);
260
TValue instanceValue =
Visit
(propertyRef.Instance, state);
261
TValue value =
Visit
(operation.Value, state);
279
arguments.Add (
Visit
(val, state));
291
Visit
(eventRef.Instance, state);
292
return
Visit
(operation.Value, state);
296
TValue instanceValue =
Visit
(indexerRef.Instance, state);
297
TValue indexArgumentValue =
Visit
(indexerRef.Argument, state);
298
TValue value =
Visit
(operation.Value, state);
319
TValue value =
Visit
(operation.Value, state);
327
TValue arrayRef =
Visit
(arrayElementRef.ArrayReference, state);
328
TValue index =
Visit
(arrayElementRef.Indices[0], state);
329
TValue value =
Visit
(operation.Value, state);
334
TValue arrayRef =
Visit
(inlineArrayAccess.Instance, state);
335
TValue index =
Visit
(inlineArrayAccess.Argument, state);
336
TValue value =
Visit
(operation.Value, state);
358
Visit
(targetOperation, state);
368
return
Visit
(operation.Value, state);
432
TValue instanceValue =
Visit
(eventReference.Instance, state);
433
TValue value =
Visit
(operation.HandlerValue, state);
531
var value =
Visit
(capturedReference.Reference, state);
538
capturedValue =
Visit
(operation.Value, state);
548
Visit
(operation.Operation, state);
557
Visit
(operation.Target, state);
610
TValue instanceValue =
Visit
(operation.Instance, state);
616
arguments.Add (
Visit
(val, state));
628
Visit
(operation.Instance, state);
642
TValue instanceValue =
Visit
(operation.Instance, state);
643
TValue indexArgumentValue =
Visit
(operation.Argument, state);
667
return HandleArrayElementRead (
Visit
(operation.ArrayReference, state),
Visit
(operation.Indices[0], state), operation);
676
return HandleArrayElementRead (
Visit
(operation.Instance, state),
Visit
(operation.Argument, state), operation);
681
return
Visit
(operation.Value, state);
687
var value =
Visit
(operation.ReturnedValue, state);
698
var operandValue =
Visit
(operation.Operand, state);
806
TValue instanceValue =
Visit
(instance, state);
DataFlow\OperationWalker.cs (1)
17
Visit
(child, argument);
TrimAnalysis\TrimAnalysisVisitor.cs (4)
109
var arrayValue = ArrayValue.Create (
Visit
(operation.DimensionSizes[0], state));
110
var elements = operation.Initializer?.ElementValues.Select (val =>
Visit
(val, state)).ToArray () ?? System.Array.Empty<MultiValue> ();
189
MultiValue leftValue =
Visit
(operation.LeftOperand, argument);
190
MultiValue rightValue =
Visit
(operation.RightOperand, argument);