Exemplo n.º 1
0
        public static void Free(RemoveAsyncAwaitWalker walker)
        {
            walker.ShouldStop = false;
            walker.StopOnFirstAwaitExpression = false;
            walker.AwaitExpressions.Clear();

            _cachedInstance = walker;
        }
Exemplo n.º 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;
 }
Exemplo n.º 4
0
 private RemoveAsyncAwaitAnalysis(RemoveAsyncAwaitWalker walker)
 {
     Walker          = walker;
     AwaitExpression = null;
 }