public static RemoveRedundantAsyncAwaitWalker GetInstance() { RemoveRedundantAsyncAwaitWalker walker = _cachedInstance; if (walker != null) { _cachedInstance = null; walker.Reset(); return(walker); } else { return(new RemoveRedundantAsyncAwaitWalker()); } }
public static void Free(RemoveRedundantAsyncAwaitWalker walker) { walker.Reset(); _cachedInstance = walker; }