37 references to ExprFactory
Microsoft.CodeAnalysis.CSharp (37)
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (37)
304return ExprFactory("ArrayIndex", array, index); 308return ExprFactory("ArrayIndex", array, Indices(node.Indices)); 347return ExprFactory("NewArrayInit", boundType, Expressions(node.InitializerOpt.Initializers)); 358return ExprFactory("NewArrayBounds", boundType, Expressions(node.Bounds)); 364return ExprFactory("ArrayLength", Visit(node.Expression)); 377return ExprFactory("TypeAs", Visit(node.Operand), _bound.Typeof(node.Type)); 504((object)methodOpt == null) ? ExprFactory(opName, loweredLeft, loweredRight) : 505requiresLifted ? ExprFactory(opName, loweredLeft, loweredRight, _bound.Literal(isLifted && !TypeSymbol.Equals(methodOpt.ReturnType, type, TypeCompareKind.ConsiderEverything2)), _bound.MethodInfo(methodOpt)) : 506ExprFactory(opName, loweredLeft, loweredRight, _bound.MethodInfo(methodOpt)); 571return ExprFactory(WellKnownMemberNames.DelegateInvokeName, Visit(node.ReceiverOpt), Expressions(node.Arguments)); 577return ExprFactory( 590return ExprFactory("Condition", condition, consequence, alternative); 641var e2 = ExprFactory(node.Checked && SyntaxFacts.IsCheckedOperator(method.Name) ? "ConvertChecked" : "Convert", e1, _bound.Typeof(resultType), _bound.MethodInfo(method)); 677return ExprFactory(isChecked ? "ConvertChecked" : "Convert", expr, _bound.Typeof(type)); 732return ExprFactory( 745return ExprFactory("TypeIs", Visit(operand), _bound.Typeof(node.TargetType.Type)); 751return node.Type.IsExpressionTree() ? ExprFactory("Quote", result) : result; 766var parameter = ExprFactory( 791return VisitObjectCreationContinued(ExprFactory("New", _bound.Typeof(node.Type)), node.InitializerExpressionOpt); 802return ExprFactory("Coalesce", left, right, MakeConversionLambda(leftConversion, lambdaParamType, node.LeftConversion.Type)); 806return ExprFactory("Coalesce", left, right); 816var parameter = ExprFactory("Parameter", _bound.Typeof(fromType), _bound.Literal(parameterName)); 823ExprFactory( 884builder.Add(ExprFactory("ListBind", left, value)); 890builder.Add(ExprFactory("Bind", left, value)); 896builder.Add(ExprFactory("MemberBind", left, value)); 920BoundExpression elementInit = ExprFactory("ElementInit", _bound.MethodInfo(i.AddMethod), Expressions(i.Arguments)); 949return ExprFactory("ListInit", result, init); 951return ExprFactory("MemberInit", result, init); 969return ExprFactory("New", _bound.Typeof(node.Type)); 983return ExprFactory("New", ctor, args, _bound.ArrayOrEmpty(MemberInfoType, membersBuilder.ToImmutableAndFree())); 987return ExprFactory("New", ctor, args); 1032return ExprFactory("Property", receiver, _bound.MethodInfo(getMethod)); 1077var result = ExprFactory(opname, loweredArg); 1082? ExprFactory(opname, loweredArg) 1083: ExprFactory(opname, loweredArg, _bound.MethodInfo(node.MethodOpt)); 1100return ExprFactory(