public UnaryOpDelegate FindUnaryOpIntrinsic(UnaryOpKey key, bool checkDependencies = true) { var result = UnaryOpIntrinsics.GetValueOrDefault(key, null); if (result == null && mDependencies != null) { foreach (var dependency in mDependencies) { result = dependency.FindUnaryOpIntrinsic(key, checkDependencies); if (result != null) { break; } } } return(result); }
//---------------------------------------------------------------UnaryOpIntrinsics public void CreateUnaryOpIntrinsic(UnaryOpKey key, UnaryOpDelegate intrinsic) { UnaryOpIntrinsics.TryAdd(key, intrinsic); }