public override TResult VisitOperatorDeclaration(OperatorDeclaration operatorDeclaration) { Debug.Assert(currentMethod == null); try { currentMethod = operatorDeclaration.GetSymbol() as IMethod; return(base.VisitOperatorDeclaration(operatorDeclaration)); } finally { currentMethod = null; } }
public override TResult VisitOperatorDeclaration(OperatorDeclaration operatorDeclaration) { var oldMethod = currentMethod; try { currentMethod = operatorDeclaration.GetSymbol() as IMethod; return(base.VisitOperatorDeclaration(operatorDeclaration)); } finally { currentMethod = oldMethod; } }