private void TrySetMethodInvocationPendingName(Expression methodExpression) { if (this.state != RenameVariables.State.SearchForPossibleNames) { return; } V_0 = this.GetExpressionKind(); if (V_0 != 5 && V_0 != 3) { return; } if (methodExpression as MethodReferenceExpression == null) { return; } V_1 = ((MethodReferenceExpression)methodExpression).get_Method(); stackVariable12 = V_1.get_Name(); if (stackVariable12 == null) { dummyVar0 = stackVariable12; stackVariable12 = V_1.get_FullName(); } V_2 = stackVariable12; if (V_2.Contains("`")) { V_2 = V_2.Substring(0, V_2.IndexOf('\u0060')); } if (this.TryNameByGetMethod(V_2, V_0)) { return; } dummyVar1 = this.TryNameByToMethod(V_2, V_0); return; }
private bool CanBeInLoop(ILogicalConstruct node, ICollection <ILogicalConstruct> nodesInLoop, ILogicalConstruct loopHeader) { if (node == null) { return(false); } if (node == loopHeader) { return(true); } V_0 = node.get_SameParentPredecessors().GetEnumerator(); try { while (V_0.MoveNext()) { V_1 = V_0.get_Current() as ILogicalConstruct; if (V_1 != null) { if (nodesInLoop.Contains(V_1) && !this.removedEdges.TryGetValue(V_1, out V_2) || !V_2.Contains(node)) { continue; } V_3 = false; goto Label1; } else { V_3 = false; goto Label1; } } goto Label0; } finally { ((IDisposable)V_0).Dispose(); } Label1: return(V_3); Label0: return(true); }