Binder\Binder_Expressions.cs (24)
164ImmutableArray.Create(BindToTypeForErrorRecovery(childNode)),
220ImmutableArray.Create(BindToTypeForErrorRecovery(expr)),
854node, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(BindToTypeForErrorRecovery(BindValue(node.Expression, BindingDiagnosticBag.Discarded, BindValueKind.RefersToLocation))),
1006ImmutableArray.Create(BindValue(arguments[0].Expression, diagnostics, BindValueKind.RValue)) :
1042ImmutableArray.Create<BoundExpression>(boundArgument), CreateErrorType("void"));
1643symbols: ImmutableArray.Create(symbol),
1644childBoundNodes: ImmutableArray.Create(BindToTypeForErrorRecovery(expression)),
4185ImmutableArray.Create(boundExpression.ExpressionSymbol),
4186ImmutableArray.Create(boundExpression));
4562typeArguments: ImmutableArray.Create(elementTypeWithAnnotations),
5409return new BoundBadExpression(node, LookupResultKind.NotInvocable, StaticCast<Symbol>.From(type.InstanceConstructors), ImmutableArray.Create(argument), type);
5419argument.Syntax, default, WellKnownMemberNames.DelegateInvokeName, ImmutableArray.Create(sourceDelegate.DelegateInvokeMethod),
5553return new BoundBadExpression(node, LookupResultKind.NotCreatable, ImmutableArray.Create<Symbol?>(type), children.ToImmutableAndFree(), type) { WasCompilerGenerated = wasCompilerGenerated };
6309ImmutableArray.Create(boundElementInitializer),
6537ImmutableArray.Create((BoundExpression)addElementPlaceholder),
7777return new BoundBadExpression(node, LookupResultKind.Ambiguous, lookupResult.Symbols.AsImmutable(), ImmutableArray.Create(boundLeft), CreateErrorType(rightName), hasErrors: true);
7814return new BoundBadExpression(node, lookupResult.Kind, symbols.AsImmutable(), ImmutableArray.Create(boundLeft), CreateErrorType(rightName), hasErrors: true);
8160(object)symbolOpt == null ? ImmutableArray<Symbol>.Empty : ImmutableArray.Create(symbolOpt),
8161boundLeft == null ? ImmutableArray<BoundExpression>.Empty : ImmutableArray.Create(BindToTypeForErrorRecovery(boundLeft)),
9197Construct(ImmutableArray.Create(elementField.TypeWithAnnotations));
9373var argumentPlaceholders = ImmutableArray.Create(new BoundImplicitIndexerValuePlaceholder(convertedArguments[0].Syntax, int32) { WasCompilerGenerated = true });
10040argumentPlaceholders = ImmutableArray.Create(intPlaceholder);
10119syntax, typeArgumentsOpt: default, method.Name, ImmutableArray.Create(method),
10399methods = ImmutableArray.Create(method);
Binder\Binder_Query.cs (11)
303ImmutableArray.Create(state.fromExpression), state.fromExpression.Type);
736yExpression = new BoundBadExpression(yExpression.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(yExpression), CreateErrorType());
742yExpression = new BoundBadExpression(yExpression.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(yExpression), yExpression.Type);
752var lambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x), let.Expression, bodyFactory, diagnostics.AccumulatesDependencies);
803field2Value = new BoundBadExpression(field2Value.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(field2Value), field2Value.Type, true);
828return MakeQueryUnboundLambda(qvm, ImmutableArray.Create(parameter), expression, withDependencies);
844return MakeQueryUnboundLambda(expression, new QueryUnboundLambdaState(this, qvm, ImmutableArray.Create(parameter), (LambdaSymbol lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag diagnostics) =>
880return MakeQueryInvocation(node, receiver, methodName, default(SeparatedSyntaxList<TypeSyntax>), default(ImmutableArray<TypeWithAnnotations>), ImmutableArray.Create(arg), diagnostics
906return MakeQueryInvocation(node, receiver, methodName, new SeparatedSyntaxList<TypeSyntax>(new SyntaxNodeOrTokenList(typeArgSyntax, 0)), ImmutableArray.Create(typeArg), ImmutableArray<BoundExpression>.Empty, diagnostics
975receiver = new BoundBadExpression(receiver.Syntax, LookupResultKind.NotAValue, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(receiver), CreateErrorType());
997receiver = new BoundBadExpression(receiver.Syntax, LookupResultKind.NotAValue, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(receiver), CreateErrorType());
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (9)
351return new BoundBadExpression(node.Syntax, default(LookupResultKind), ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), ExpressionType);
382return new BoundBadExpression(node.Syntax, 0, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), ExpressionType);
856ImmutableArray.Create<TypeSymbol>(underlyingDelegateType),
900ImmutableArray.Create(param),
901ImmutableArray.Create<BoundExpression>(_bound.AssignmentExpression(parameterReference, parameter)),
905_bound.ArrayOrEmpty(ParameterExpressionType, ImmutableArray.Create<BoundExpression>(parameterReference))));
1091return new BoundBadExpression(node.Syntax, default(LookupResultKind), ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type);
1098return new BoundBadExpression(node.Syntax, default(LookupResultKind), ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type);
1130return new BoundBadExpression(node.Syntax, default(LookupResultKind), ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type);
Lowering\LocalRewriter\LocalRewriter.cs (6)
173return new BoundBadStatement(statement.Syntax, ImmutableArray.Create<BoundNode>(statement), hasErrors: true);
578return BadExpression(node.Syntax, node.Type, ImmutableArray.Create(node));
583return BadExpression(syntax, resultType, ImmutableArray.Create(child));
720return block.Update(locals, block.LocalFunctions, block.HasUnsafeModifier, block.Instrumentation, ImmutableArray.Create(statement));
732ImmutableArray.Create(statement));
849.Construct(ImmutableArray.Create(elementType)),
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (13)
243return _factory.StaticCall(asImmutableArray.Construct(ImmutableArray.Create(elementType)), ImmutableArray.Create(arrayCreation));
378ImmutableArray.Create(temp.LocalSymbol),
425var typeArgs = ImmutableArray.Create(elementType);
498arguments: ImmutableArray.Create(span),
571var inlineArrayType = _factory.ModuleBuilderOpt.EnsureInlineArrayTypeExists(syntax, _factory, arrayLength, _diagnostics.DiagnosticBag).Construct(ImmutableArray.Create(elementType));
748ImmutableArray.Create<BoundExpression>(
774ImmutableArray.Create(GetKnownLengthExpression(elements, numberIncludingLastSpread, localsBuilder)),
1025var typeArguments = ImmutableArray.Create(elementType);
1071rewrittenReceiver = _factory.New(constructor, ImmutableArray.Create<BoundExpression>(knownLengthTemp));
1076rewrittenReceiver = _factory.New(constructor, ImmutableArray.Create(knownLengthExpression));
1348var iterationVariables = ImmutableArray.Create(iterationVariable);
1421ImmutableArray.Create(statement),
Lowering\LocalRewriter\LocalRewriter_Event.cs (7)
54var rewrittenArguments = ImmutableArray.Create<BoundExpression>(rewrittenArgument);
124rewrittenArguments: ImmutableArray.Create<BoundExpression>(removeDelegate));
128clearCall = new BoundBadExpression(syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(removeDelegate), ErrorTypeSymbol.UnknownResultType);
181: ImmutableArray.Create<LocalSymbol>(boundTemp.LocalSymbol);
265getOrCreateCall = new BoundBadExpression(syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(fieldAccess), ErrorTypeSymbol.UnknownResultType);
287return new BoundBadExpression(syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(getOrCreateCall), ErrorTypeSymbol.UnknownResultType);
333return new BoundBadExpression(node.Syntax, LookupResultKind.NotCreatable, ImmutableArray.Create<Symbol?>(node.Event),
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (4)
80locals: ImmutableArray.Create(boundTemp.LocalSymbol),
117exitCallExpr = new BoundBadExpression(lockSyntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(boundLockTemp), ErrorTypeSymbol.UnknownResultType);
212enterCallExpr = new BoundBadExpression(lockSyntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(boundLockTemp), ErrorTypeSymbol.UnknownResultType);
221ImmutableArray.Create(boundLockTemp.LocalSymbol),
Lowering\SyntheticBoundNodeFactory.cs (9)
831return Call(receiver, method, ImmutableArray.Create(arg0), useStrictArgumentRefKinds);
845=> Call(receiver, WellKnownMethod(method), ImmutableArray.Create(arg0));
987return MakeSequence(ImmutableArray.Create<LocalSymbol>(temp), parts);
1055=> SwitchSection(ImmutableArray.Create(value), statements);
1538arrayEmpty = arrayEmpty.Construct(ImmutableArray.Create(elementType));
1550ImmutableArray.Create<BoundExpression>(Literal(elements.Length)),
1559ImmutableArray.Create<BoundExpression>(length),
1595return new BoundCatchBlock(Syntax, ImmutableArray.Create(local), source, source.Type, exceptionFilterPrologueOpt: null, exceptionFilterOpt: null, body: block, isSynthesizedAsyncCatchAll: false);
1845sideEffects: ImmutableArray.Create<BoundExpression>(nonNullValue),
Operations\CSharpOperationFactory.cs (7)
402return ImmutableArray.Create(CreateVariableDeclaratorInternal((BoundLocalDeclaration)declaration, (declarationSyntax as VariableDeclarationSyntax)?.Variables[0] ?? declarationSyntax));
1645return new ArrayElementReferenceOperation(instance, ImmutableArray.Create(argument), _semanticModel, syntax, type, isImplicit);
1726ImmutableArray<IFieldSymbol> initializedFields = ImmutableArray.Create<IFieldSymbol>(boundFieldEqualsValue.Field.GetPublicSymbol());
1735ImmutableArray<IPropertySymbol> initializedProperties = ImmutableArray.Create<IPropertySymbol>(boundPropertyEqualsValue.Property.GetPublicSymbol());
2147return new VariableDeclarationGroupOperation(ImmutableArray.Create(multiVariableDeclaration), _semanticModel, varStatement, isImplicit);
2169var variableDeclaration = new VariableDeclarationGroupOperation(ImmutableArray.Create(multiVariableDeclaration), _semanticModel, declarationGroupSyntax, isImplicit);
2884propertySubpatterns: ImmutableArray.Create(result), declaredSymbol: null,
Binding\Binder_Expressions.vb (7)
297Return New BoundBadExpression(node, LookupResultKind.Empty, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), resultType, hasErrors:=True)
305Return New BoundBadExpression(node, resultKind, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), resultType, hasErrors:=True)
326Return New BoundBadExpression(wrappedExpression.Syntax, resultKind, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(wrappedExpression), wrappedExpression.Type, hasErrors:=True)
1665initializers = ImmutableArray.Create(Of BoundExpression)(arrayInitialization)
3134If(receiver IsNot Nothing, ImmutableArray.Create(receiver), ImmutableArray(Of BoundExpression).Empty),
3768Dim boundArguments = ImmutableArray.Create(Of BoundExpression)(arg)
3792boundArguments:=ImmutableArray.Create(Of BoundExpression)(arg),
Binding\Binder_Query.vb (27)
222ImmutableArray.Create(Of Binder)(intoBinder),
239ImmutableArray.Create(Of Binder)(intoBinder),
272ImmutableArray.Create(Of Binder)(intoBinder),
358ImmutableArray.Create(Of BoundExpression)(letSelectorLambda),
553ImmutableArray.Create(Of BoundExpression)(selectSelectorLambda),
624ImmutableArray.Create(Of BoundExpression)(selectorLambda),
695ImmutableArray.Create(Of BoundExpression)(selectorLambda),
704ImmutableArray.Create(Of Binder)(selectorBinder),
781ImmutableArray.Create(Me),
841ImmutableArray.Create(Of BoundExpression)(selectorLambda),
850ImmutableArray.Create(Of Binder)(selectorBinder),
988ImmutableArray.Create(Me),
996ImmutableArray.Create(Me),
1120lambdaBinders = ImmutableArray.Create(Of Binder)(manySelectorBinder)
1809ImmutableArray.Create(Of BoundExpression)(source).AddRange(groupByArguments),
2386ImmutableArray.Create(Of BoundExpression)(filterLambda),
2395ImmutableArray.Create(Of Binder)(filterBinder),
2494ImmutableArray.Create(boundCount),
2537ImmutableArray.Create(Me),
2607ImmutableArray.Create(Of BoundExpression)(keyLambda),
2626ImmutableArray.Create(Of Binder)(keyBinder),
3948arguments = ImmutableArray.Create(Of BoundExpression)(aggregationLambda)
3956ImmutableArray.Create(m_GroupReference).AddRange(arguments),
3976ImmutableArray.Create(Of Binder)(aggregationBinder),
4295ImmutableArray.Create(Of BoundExpression)(selectorLambda),
4305ImmutableArray.Create(Of Binder)(selectorBinder),
4692childBoundNodes = ImmutableArray.Create(If(methodGroup, source))
Binding\Binder_XmlLiterals.vb (8)
27ImmutableArray.Create(Of BoundExpression)(str),
188ImmutableArray.Create(Of BoundExpression)(argument),
303sideEffectBuilder.Add(BindInvocationExpressionIfGroupNotNothing(syntax, addGroup, ImmutableArray.Create(Of BoundExpression)(expr), diagnostics))
319sideEffectBuilder.Add(BindInvocationExpressionIfGroupNotNothing(syntax, addGroup, ImmutableArray.Create(Of BoundExpression)(attribute), diagnostics))
327sideEffectBuilder.Add(BindInvocationExpressionIfGroupNotNothing(syntax, addGroup, ImmutableArray.Create(Of BoundExpression)(xmlnsAttributesPlaceholder), diagnostics))
713arguments = ImmutableArray.Create(Of BoundExpression)(name)
894Dim objectCreation = BindInvocationExpressionIfGroupNotNothing(syntax, group, ImmutableArray.Create(Of BoundExpression)([namespace]), diagnostics)
919ImmutableArray.Create(Of BoundExpression)(value),
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (10)
676ImmutableArray.Create(inputToOperatorMethod),
812ImmutableArray.Create(operand), Nothing, memberSymbol.ReturnType)
890ImmutableArray.Create(operand), Nothing, memberSymbol.ReturnType)
984ImmutableArray.Create(operand),
990ImmutableArray.Create(operand), Nothing, memberSymbol.ReturnType)
1035ImmutableArray.Create(operand), Nothing, memberSymbol.ReturnType)
1123ImmutableArray.Create(operand),
1129ImmutableArray.Create(operand), Nothing, memberSymbol.ReturnType)
1172ImmutableArray.Create(operand), Nothing, memberSymbol.ReturnType)
1225ImmutableArray.Create(operand), Nothing, mathRound.ReturnType)
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (18)
80Return New BoundArrayCreation(node, ImmutableArray.Create(bounds), initializer, booleanArrayType)
113Dim arrayCreation = New BoundArrayCreation(node, ImmutableArray.Create(bounds), Nothing, objectArrayType)
140Dim indices = ImmutableArray.Create(indexExpr)
177rewrittenArguments = ImmutableArray.Create(rewrittenValue)
202Dim arrayCreation = New BoundArrayCreation(node, ImmutableArray.Create(bounds), Nothing, objectArrayType)
253ImmutableArray.Create(indexExpr),
273Return New BoundArrayCreation(node, ImmutableArray.Create(bounds), Nothing, objectArrayType)
294Return New BoundArrayCreation(node, ImmutableArray.Create(bounds), initializer, objectArrayType)
327Return New BoundArrayCreation(node, ImmutableArray.Create(bounds), initializer, stringArrayType)
344Dim indices = ImmutableArray.Create(index)
349ImmutableArray.Create(index),
455ImmutableArray.Create(assignment),
531Return New BoundSequence(syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(memberAccess), Nothing, Me.GetSpecialType(SpecialType.System_Void))
536Return New BoundSequence(syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(memberAccess), Nothing, Me.GetSpecialType(SpecialType.System_Void))
610Return New BoundSequence(syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(invocation), Nothing, Me.GetSpecialType(SpecialType.System_Void))
615Return New BoundSequence(syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(invocation), Nothing, Me.GetSpecialType(SpecialType.System_Void))
842ImmutableArray.Create(Of BoundExpression)(store).Concat(copyBackBuilder.ToImmutableAndFree),
959Return New BoundArrayCreation(node, ImmutableArray.Create(bounds), initializer, typeArrayType)
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (7)
21ImmutableArray.Create(expr),
26Return New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), nullableType, hasErrors:=True)
206Return If(isOptional, Nothing, New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), expr.Type.GetNullableUnderlyingType(), hasErrors:=True))
219ImmutableArray.Create(defaultValue),
255Return New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), expr.Type.GetNullableUnderlyingType(), hasErrors:=True)
283Return New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr),
529ImmutableArray.Create(sideeffects),
Lowering\UseTwiceRewriter.vb (5)
90receiver = New Result(New BoundSequence(capture.Syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(capture), boundTemp, boundTemp.Type),
97receiver = New Result(New BoundSequence(capture.Syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(capture), boundTemp, boundTemp.Type),
323receiver = New Result(New BoundSequence(capture.Syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(capture), boundTemp, boundTemp.Type),
347ImmutableArray.Create(Of BoundExpression)(clone),
358ImmutableArray.Create(Of BoundExpression)(receiver.First.MakeRValue()),