Exemple #1
0
 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));
 }
Exemple #2
0
 internal static TranslatedExpression WithoutILInstruction(this ExpressionWithResolveResult expression)
 {
     return(new TranslatedExpression(expression.Expression, expression.ResolveResult));
 }
Exemple #3
0
 internal static TranslatedExpression WithILInstruction(this ExpressionWithResolveResult expression, ILInstruction instruction)
 {
     expression.Expression.AddAnnotation(instruction);
     return(new TranslatedExpression(expression.Expression, expression.ResolveResult));
 }