internal CPythonConstant GetConstant(CPythonType type) { CPythonConstant constant; if (!_constants.TryGetValue(type, out constant)) { _constants[type] = constant = new CPythonConstant(type); } return(constant); }
internal CPythonConstant GetConstant(IPythonType type) { CPythonConstant constant; if (_constants.TryGetValue(type, out constant)) { return constant; } _constants[type] = constant = new CPythonConstant(type); return constant; }
internal CPythonConstant GetConstant(IPythonType type) { CPythonConstant constant; if (_constants.TryGetValue(type, out constant) || (constant = _inner?.GetConstant(type)) != null) { return constant; } _constants[type] = constant = new CPythonConstant(type); return constant; }