public PredictionContext getCachedContext(PredictionContext context) { if (sharedContextCache == null) { return(context); } lock (sharedContextCache) { PredictionContext.IdentityHashMap visited = new PredictionContext.IdentityHashMap(); return(PredictionContext.GetCachedContext(context, sharedContextCache, visited)); } }
public virtual PredictionContext GetCachedContext(PredictionContext context) { return(PredictionContext.GetCachedContext(context, contextCache, new PredictionContext.IdentityHashMap())); }