1 write to _bound
Microsoft.CodeAnalysis.CSharp (1)
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
102_bound = new SyntheticBoundNodeFactory(null, compilationState.Type, node, compilationState, diagnostics);
147 references to _bound
Microsoft.CodeAnalysis.CSharp (147)
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (147)
31_ExpressionType = _bound.WellKnownType(WellKnownType.System_Linq_Expressions_Expression); 44_ParameterExpressionType = _bound.WellKnownType(WellKnownType.System_Linq_Expressions_ParameterExpression); 57_ElementInitType = _bound.WellKnownType(WellKnownType.System_Linq_Expressions_ElementInit); 71_MemberBindingType = _bound.WellKnownType(WellKnownType.System_Linq_Expressions_MemberBinding); 90_MemberInfoType = _bound.WellKnownType(WellKnownType.System_Reflection_MemberInfo); 98private BindingDiagnosticBag Diagnostics { get { return _bound.Diagnostics; } } 103_int32Type = _bound.SpecialType(SpecialType.System_Int32); 104_objectType = _bound.SpecialType(SpecialType.System_Object); 105_nullableType = _bound.SpecialType(SpecialType.System_Nullable_T); 106_IEnumerableType = _bound.SpecialType(SpecialType.System_Collections_Generic_IEnumerable_T); 172SyntaxNode old = _bound.Syntax; 173_bound.Syntax = node.Syntax; 175_bound.Syntax = old; 176return _bound.Convert(ExpressionType, result); 302return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__ArrayIndex_Expression_Expression, array, index); 306return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__ArrayIndex_Expression_Expressions, array, Indices(node.Indices)); 323return _bound.ArrayOrEmpty(ExpressionType, builder.ToImmutableAndFree()); 334return _bound.ArrayOrEmpty(ExpressionType, builder.ToImmutableAndFree()); 340var boundType = _bound.Typeof(arrayType.ElementType, _bound.WellKnownType(WellKnownType.System_Type)); 345return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__NewArrayInit, boundType, Expressions(node.InitializerOpt.Initializers)); 356return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__NewArrayBounds, boundType, Expressions(node.Bounds)); 362return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__ArrayLength, Visit(node.Expression)); 369var operand = _bound.Null(_bound.SpecialType(SpecialType.System_Object)); 375return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__TypeAs, Visit(node.Operand), _bound.Typeof(node.Type, _bound.WellKnownType(WellKnownType.System_Type))); 495left = _bound.Default(right.Type); 499right = _bound.Default(left.Type); 570((object)methodOpt == null) ? _bound.StaticCall(opFactory, loweredLeft, loweredRight) : 572_bound.StaticCall(opFactory, loweredLeft, loweredRight, 573_bound.Literal(isLifted && !TypeSymbol.Equals(methodOpt.ReturnType, type, TypeCompareKind.ConsiderEverything2)), 574_bound.MethodInfo(methodOpt, _bound.WellKnownType(WellKnownType.System_Reflection_MethodInfo))) : 575_bound.StaticCall(opFactory, loweredLeft, loweredRight, 576_bound.MethodInfo(methodOpt, _bound.WellKnownType(WellKnownType.System_Reflection_MethodInfo))); 594return _bound.SpecialType(possiblePromote); 620var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(Diagnostics, _bound.Compilation.Assembly); 621var kind = _bound.Compilation.Conversions.ClassifyConversionFromType(oldType, newType, isChecked: false, ref useSiteInfo).Kind; 641return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__Invoke, Visit(node.ReceiverOpt), Expressions(node.Arguments)); 647return _bound.StaticCall( 649method.RequiresInstanceReceiver ? Visit(node.ReceiverOpt) : _bound.Null(ExpressionType), 650_bound.MethodInfo(method, _bound.WellKnownType(WellKnownType.System_Reflection_MethodInfo)), 660return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__Condition, condition, consequence, alternative); 711var e2 = _bound.StaticCall(node.Checked && SyntaxFacts.IsCheckedOperator(method.Name) ? 714e1, _bound.Typeof(resultType, _bound.WellKnownType(WellKnownType.System_Type)), 715_bound.MethodInfo(method, _bound.WellKnownType(WellKnownType.System_Reflection_MethodInfo))); 738return Convert(Constant(_bound.Null(_objectType)), _objectType, node.Type, false, node.ExplicitCastInCode); 751return _bound.StaticCall(isChecked ? 754expr, _bound.Typeof(type, _bound.WellKnownType(WellKnownType.System_Type))); 759var nullObject = _bound.Null(_objectType); 760receiver = requiresInstanceReceiver ? nullObject : receiver.Type.IsReferenceType ? receiver : _bound.Convert(_objectType, receiver); 762var createDelegate = _bound.WellKnownMethod(WellKnownMember.System_Reflection_MethodInfo__CreateDelegate, isOptional: true); 767unquoted = _bound.Call(_bound.MethodInfo(method, createDelegate.ContainingType), createDelegate, _bound.Typeof(delegateType, createDelegate.Parameters[0].Type), receiver); 772createDelegate = _bound.SpecialMethod(SpecialMember.System_Delegate__CreateDelegate); 773unquoted = _bound.Call(null, createDelegate, 774_bound.Typeof(delegateType, createDelegate.Parameters[0].Type), 776_bound.MethodInfo(method, createDelegate.Parameters[2].Type)); 810var receiver = node.FieldSymbol.IsStatic ? _bound.Null(ExpressionType) : Visit(node.ReceiverOpt); 811return _bound.StaticCall( 813receiver, _bound.FieldInfo(node.FieldSymbol)); 821operand = _bound.Null(_objectType); 824return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__TypeIs, Visit(operand), _bound.Typeof(node.TargetType.Type, _bound.WellKnownType(WellKnownType.System_Type))); 830return node.Type.IsExpressionTree() ? _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__Quote, result) : result; 841var param = _bound.SynthesizedLocal(ParameterExpressionType); 843var parameterReference = _bound.Local(param); 845var parameter = _bound.StaticCall( 847_bound.Typeof(_typeMap.SubstituteType(p.Type).Type, _bound.WellKnownType(WellKnownType.System_Type)), _bound.Literal(p.Name)); 848initializers.Add(_bound.AssignmentExpression(parameterReference, parameter)); 853var result = _bound.Sequence(locals.ToImmutableAndFree(), initializers.ToImmutableAndFree(), 854_bound.StaticCall( 858_bound.ArrayOrEmpty(ParameterExpressionType, parameters.ToImmutableAndFree()))); 870return VisitObjectCreationContinued(_bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__New_Type, _bound.Typeof(node.Type, _bound.WellKnownType(WellKnownType.System_Type))), node.InitializerExpressionOpt); 881return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__Coalesce_Lambda, left, right, MakeConversionLambda(leftConversion, lambdaParamType, node.LeftConversion.Type)); 885return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__Coalesce, left, right); 892ParameterSymbol lambdaParameter = _bound.SynthesizedParameter(fromType, parameterName); 893var param = _bound.SynthesizedLocal(ParameterExpressionType); 894var parameterReference = _bound.Local(param); 895var parameter = _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__Parameter, _bound.Typeof(fromType, _bound.WellKnownType(WellKnownType.System_Type)), _bound.Literal(parameterName)); 897var convertedValue = Visit(_bound.Convert(toType, _bound.Parameter(lambdaParameter), conversion)); 899var result = _bound.Sequence( 901ImmutableArray.Create<BoundExpression>(_bound.AssignmentExpression(parameterReference, parameter)), 902_bound.StaticCall( 905_bound.ArrayOrEmpty(ParameterExpressionType, ImmutableArray.Create<BoundExpression>(parameterReference)))); 914return _bound.Convert(MemberInfoType, _bound.FieldInfo((FieldSymbol)symbol)); 916return _bound.MethodInfo(((PropertySymbol)symbol).GetOwnOrInheritedSetMethod(), _bound.WellKnownType(WellKnownType.System_Reflection_MethodInfo)); 918return _bound.Convert(MemberInfoType, _bound.FieldInfo(((EventSymbol)symbol).AssociatedField)); 929return _bound.Convert(MemberInfoType, _bound.FieldInfo((FieldSymbol)symbol)); 931return _bound.MethodInfo(((PropertySymbol)symbol).GetOwnOrInheritedGetMethod(), _bound.WellKnownType(WellKnownType.System_Reflection_MethodInfo)); 933return _bound.Convert(MemberInfoType, _bound.FieldInfo(((EventSymbol)symbol).AssociatedField)); 963builder.Add(_bound.StaticCall(sym.Kind is SymbolKind.Property ? 972builder.Add(_bound.StaticCall(sym.Kind is SymbolKind.Property ? 981builder.Add(_bound.StaticCall(sym.Kind is SymbolKind.Property ? 993return _bound.ArrayOrEmpty(MemberBindingType, builder.ToImmutableAndFree()); 1008BoundExpression elementInit = _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__ElementInit, 1009_bound.MethodInfo(i.AddMethod, _bound.WellKnownType(WellKnownType.System_Reflection_MethodInfo)), 1014return _bound.ArrayOrEmpty(ElementInitType, builder.ToImmutableAndFree()); 1039return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__ListInit, result, init); 1041return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__MemberInit, result, init); 1059return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__New_Type, _bound.Typeof(node.Type, _bound.WellKnownType(WellKnownType.System_Type))); 1062var ctor = _bound.ConstructorInfo(node.Constructor); 1063var args = _bound.Convert(_IEnumerableType.Construct(ExpressionType), Expressions(node.Arguments)); 1070membersBuilder.Add(_bound.MethodInfo(AnonymousTypeManager.GetAnonymousTypeProperty(anonType, i).GetMethod, _bound.WellKnownType(WellKnownType.System_Reflection_MethodInfo))); 1073return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__New_ConstructorInfo_Expressions_MemberInfos, 1074ctor, args, _bound.ArrayOrEmpty(MemberInfoType, membersBuilder.ToImmutableAndFree())); 1078return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__New_ConstructorInfo_IEnumerableExpressions, ctor, args); 1103var receiver = node.PropertySymbol.IsStatic ? _bound.Null(ExpressionType) : Visit(node.ReceiverOpt); 1123return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__Property, receiver, _bound.MethodInfo(getMethod, _bound.WellKnownType(WellKnownType.System_Reflection_MethodInfo))); 1191var result = _bound.StaticCall(opFactory, loweredArg); 1196? _bound.StaticCall(opFactory, loweredArg) 1197: _bound.StaticCall(opFactory, loweredArg, _bound.MethodInfo(node.MethodOpt, _bound.WellKnownType(WellKnownType.System_Reflection_MethodInfo))); 1204return _bound.StaticCall( 1206_bound.Convert(_objectType, node), 1207_bound.Typeof(node.Type, _bound.WellKnownType(WellKnownType.System_Type)));