public override void VisitSimpleAssignment([NotNull] ISimpleAssignmentOperation operation) { if (operation.Target is ILocalReferenceOperation targetLocal && local.IsEqualTo(targetLocal.Local)) { TrySetEvent(operation.Value); } base.VisitSimpleAssignment(operation); }
public override void VisitVariableDeclarator([NotNull] IVariableDeclaratorOperation operation) { base.VisitVariableDeclarator(operation); if (currentLocal.IsEqualTo(operation.Symbol) && EndsBeforeMaxLocation(operation)) { IVariableInitializerOperation initializer = operation.GetVariableInitializer(); if (initializer != null) { AnalyzeAssignmentValue(initializer.Value); } } }