public AIRegistryPrevious AllocatePrevious(ExprPreviousNode previousNode) { AIRegistryPrevious service = AllocateAIRegistryPrevious(); _previous.Put(previousNode, service); return(service); }
public AIRegistryPrevious GetOrAllocatePrevious(ExprPreviousNode key) { AIRegistryPrevious existing = _previous.Get(key); if (existing != null) { return(existing); } return(AllocatePrevious(key)); }