コード例 #1
0
 public override TResult VisitOperatorDeclaration(OperatorDeclaration operatorDeclaration)
 {
     Debug.Assert(currentMethod == null);
     try {
         currentMethod = operatorDeclaration.GetSymbol() as IMethod;
         return(base.VisitOperatorDeclaration(operatorDeclaration));
     } finally {
         currentMethod = null;
     }
 }
コード例 #2
0
ファイル: ContextTrackingVisitor.cs プロジェクト: zz110/ILSpy
        public override TResult VisitOperatorDeclaration(OperatorDeclaration operatorDeclaration)
        {
            var oldMethod = currentMethod;

            try {
                currentMethod = operatorDeclaration.GetSymbol() as IMethod;
                return(base.VisitOperatorDeclaration(operatorDeclaration));
            } finally {
                currentMethod = oldMethod;
            }
        }