Пример #1
0
        public static void Free(RemoveAsyncAwaitWalker walker)
        {
            walker.ShouldStop = false;
            walker.StopOnFirstAwaitExpression = false;
            walker.AwaitExpressions.Clear();

            _cachedInstance = walker;
        }
Пример #2
0
        public static RemoveAsyncAwaitWalker GetInstance()
        {
            RemoveAsyncAwaitWalker walker = _cachedInstance;

            if (walker != null)
            {
                _cachedInstance = null;
                return(walker);
            }
            else
            {
                return(new RemoveAsyncAwaitWalker());
            }
        }
 public RemoveAsyncAwaitResult(RemoveAsyncAwaitWalker walker)
 {
     Walker          = walker;
     AwaitExpression = null;
 }
Пример #4
0
 private RemoveAsyncAwaitAnalysis(RemoveAsyncAwaitWalker walker)
 {
     Walker          = walker;
     AwaitExpression = null;
 }