public void AddCondition(Expression condition) { if (_body != null) { AddCondition(condition, _body); _body = null; } else { _conditions[_conditions.Count - 1] = Ast.AndAlso( _conditions[_conditions.Count - 1], condition); } }
protected override void AddOldClassAccess(PythonType pt) { EnsureTmp(); _cb.AddCondition( Ast.Call( typeof(PythonOps).GetMethod(nameof(PythonOps.OldClassTryLookupOneSlot)), AstUtils.Constant(pt), AstUtils.Constant(pt.OldClass), AstUtils.Constant(_symName), _tmp ), _tmp ); }