internal static TranslatedExpression WithILInstruction(this ExpressionWithResolveResult expression, IEnumerable <ILInstruction> instructions) { foreach (var inst in instructions) { expression.Expression.AddAnnotation(inst); } return(new TranslatedExpression(expression.Expression, expression.ResolveResult)); }
internal static TranslatedExpression WithoutILInstruction(this ExpressionWithResolveResult expression) { return(new TranslatedExpression(expression.Expression, expression.ResolveResult)); }
internal static TranslatedExpression WithILInstruction(this ExpressionWithResolveResult expression, ILInstruction instruction) { expression.Expression.AddAnnotation(instruction); return(new TranslatedExpression(expression.Expression, expression.ResolveResult)); }