public AIRegistryPrior AllocatePrior(ExprPriorNode key) { AIRegistryPrior service = AllocateAIRegistryPrior(); _priors.Put(key, service); return(service); }
public AIRegistryPrior GetOrAllocatePrior(ExprPriorNode key) { AIRegistryPrior existing = _priors.Get(key); if (existing != null) { return(existing); } return(AllocatePrior(key)); }