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