src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer_IfStatement.cs (1)
99ImmutableArray.Create(
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (12)
79return ImmutableArray.Create(map(items[0]));
82return ImmutableArray.Create(map(items[0]), map(items[1]));
85return ImmutableArray.Create(map(items[0]), map(items[1]), map(items[2]));
88return ImmutableArray.Create(map(items[0]), map(items[1]), map(items[2]), map(items[3]));
119return ImmutableArray.Create(map(items[0], arg));
122return ImmutableArray.Create(map(items[0], arg), map(items[1], arg));
125return ImmutableArray.Create(map(items[0], arg), map(items[1], arg), map(items[2], arg));
128return ImmutableArray.Create(map(items[0], arg), map(items[1], arg), map(items[2], arg), map(items[3], arg));
159return ImmutableArray.Create(map(items[0], 0, arg));
162return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg));
165return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg));
168return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg), map(items[3], 3, arg));
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (19)
41return ImmutableArray.CreateRange<T>(items);
58return ImmutableArray.CreateRange<T>(items);
75return ImmutableArray.CreateRange<T>(items);
87return ImmutableArray.Create<T>(items);
104return ImmutableArray.Create<T>(items);
120return ImmutableArray.Create<T>(items);
130return ImmutableArray.Create<byte>(stream.ToArray());
143return ImmutableArray.CreateRange(items, map);
158return ImmutableArray.CreateRange(items, map, arg);
179return ImmutableArray.Create(map(items[0], 0, arg));
182return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg));
185return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg));
188return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg), map(items[3], 3, arg));
494return ImmutableArray.Create(map(self[0], other[0]));
497return ImmutableArray.Create(map(self[0], other[0]), map(self[1], other[1]));
500return ImmutableArray.Create(map(self[0], other[0]), map(self[1], other[1]), map(self[2], other[2]));
503return ImmutableArray.Create(map(self[0], other[0]), map(self[1], other[1]), map(self[2], other[2]), map(self[3], other[3]));
1202? ImmutableArray.Create(symbol)
1203: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(ImmutableArray.Create((TNamedTypeSymbol)symbol));
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (4)
3101 => ImmutableArray.Create(_item0),
3112 => ImmutableArray.Create(_item0, _item1),
3123 => ImmutableArray.Create(_item0, _item1, _item2),
3134 => ImmutableArray.Create(_item0, _item1, _item2, _item3),
Binder\Binder_Expressions.cs (25)
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);
10112argumentPlaceholders = ImmutableArray.Create(startArgumentPlaceholder, lengthArgumentPlaceholder);
10119syntax, typeArgumentsOpt: default, method.Name, ImmutableArray.Create(method),
10399methods = ImmutableArray.Create(method);
Binder\Binder_Query.cs (24)
263result = MakeQueryInvocation(state.selectOrGroup, e, "GroupBy", ImmutableArray.Create(lambdaLeft, lambdaRight), d
303ImmutableArray.Create(state.fromExpression), state.fromExpression.Type);
424var resultSelectorLambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x1, x2), select.Expression, diagnostics.AccumulatesDependencies);
430ImmutableArray.Create(inExpression, outerKeySelectorLambda, innerKeySelectorLambda, resultSelectorLambda),
452var resultSelectorLambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x1, g), select.Expression, diagnostics.AccumulatesDependencies);
458ImmutableArray.Create(inExpression, outerKeySelectorLambda, innerKeySelectorLambda, resultSelectorLambda),
498ImmutableArray.Create(inExpression, outerKeySelectorLambda, innerKeySelectorLambda, resultSelectorLambda),
528ImmutableArray.Create(inExpression, outerKeySelectorLambda, innerKeySelectorLambda, resultSelectorLambda),
609var resultSelectorLambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x1, x2), select.Expression, diagnostics.AccumulatesDependencies);
615ImmutableArray.Create(collectionSelectorLambda, resultSelectorLambda),
662ImmutableArray.Create(collectionSelectorLambda, resultSelectorLambda),
699var result = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x1, x2), node, bodyFactory, withDependencies);
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);
807ImmutableArray.Create(
815return MakeConstruction(node, anonymousType, ImmutableArray.Create(field1Value, field2Value), diagnostics);
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());
BoundTree\Constructors.cs (4)
175return Synthesized(syntax, receiverOpt, initialBindingReceiverIsSubjectToCloning: initialBindingReceiverIsSubjectToCloning, method, ImmutableArray.Create(arg0));
180return Synthesized(syntax, receiverOpt, initialBindingReceiverIsSubjectToCloning: initialBindingReceiverIsSubjectToCloning, method, ImmutableArray.Create(arg0, arg1));
254: this(syntax, constructor, ImmutableArray.Create<BoundExpression>(arguments), default(ImmutableArray<string?>), default(ImmutableArray<RefKind>), false, default(ImmutableArray<int>), default(BitVector), null, null, constructor.ContainingType)
662return new BoundBlock(syntax, ImmutableArray<LocalSymbol>.Empty, ImmutableArray.Create(statement))
Compiler\MethodBodySynthesizer.cs (11)
106ImmutableArray.Create<BoundExpression>(new BoundLiteral(syntax, ConstantValue.Create(slotIndex), intType) { WasCompilerGenerated = true }),
126ImmutableArray.Create<BoundExpression>(new BoundLiteral(syntax, ConstantValue.Create(0), intType) { WasCompilerGenerated = true }),
154ImmutableArray.Create<BoundExpression>(new BoundLiteral(syntax, ConstantValue.Create(targetSubmissionIndex), intType) { WasCompilerGenerated = true }),
402arguments: ImmutableArray.Create<BoundExpression>(boundBackingField, boundParameter)),
416statements: ImmutableArray.Create<BoundStatement>(
421compareExchangeMethod = compareExchangeMethod.Construct(ImmutableArray.Create<TypeSymbol>(delegateType));
467arguments: ImmutableArray.Create<BoundExpression>(boundTmps[1], boundParameter)),
485arguments: ImmutableArray.Create<BoundExpression>(boundBackingField, boundTmps[2], boundTmps[1]));
517statements: ImmutableArray.Create<BoundStatement>(
566ImmutableArray.Create<BoundStatement>(
574ImmutableArray.Create<BoundStatement>(
Lowering\ClosureConversion\ClosureConversion.cs (7)
662var frameTypeParameters = ImmutableArray.Create(_currentTypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t)), 0, frame.Arity);
1025var realTypeArguments = ImmutableArray.Create(_currentTypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t)), 0, totalTypeArgumentCount - originalMethod.Arity);
1033var containerTypeArguments = ImmutableArray.Create(realTypeArguments, 0, containerAsFrame.Arity);
1034realTypeArguments = ImmutableArray.Create(realTypeArguments, containerAsFrame.Arity, realTypeArguments.Length - containerAsFrame.Arity);
1124sideEffects: ImmutableArray.Create<BoundExpression>(rewritten),
1248ImmutableArray.Create<LocalSymbol>(),
1731return new BoundBadExpression(F.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type);
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\Instrumentation\LocalStateTracingInstrumenter.cs (7)
445return ImmutableArray.Create(_factory.Sequence(new[] { value }, refAssignmentSourceIndex), index);
459return ImmutableArray.Create(addressOf, _factory.Sizeof(targetType), index);
479return ImmutableArray.Create(toString, index);
482return ImmutableArray.Create(_factory.Convert(parameter.Type, value), index);
539ImmutableArray.Create<BoundStatement>(logCallStatement, rewrittenFilterPrologue) :
540ImmutableArray.Create<BoundStatement>(logCallStatement));
603return _factory.Sequence(ImmutableArray.Create(temp.LocalSymbol), builder.ToImmutableAndFree(), temp);
Lowering\LocalRewriter\LocalRewriter.cs (8)
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));
588return BadExpression(syntax, resultType, ImmutableArray.Create(child1, child2));
720return block.Update(locals, block.LocalFunctions, block.HasUnsafeModifier, block.Instrumentation, ImmutableArray.Create(statement));
732ImmutableArray.Create(statement));
849.Construct(ImmutableArray.Create(elementType)),
850ImmutableArray.Create(
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (17)
107locals: ImmutableArray.Create(boundTemp.LocalSymbol),
108sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignment),
705return _factory.Sequence(ImmutableArray.Create(temp.LocalSymbol), ImmutableArray.Create<BoundExpression>(tempAssignment), result);
853sideEffects: ImmutableArray.Create<BoundExpression>(nonNull),
1098locals: ImmutableArray.Create<LocalSymbol>(boundTempX.LocalSymbol, boundTempY.LocalSymbol),
1099sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignmentX, tempAssignmentY),
1287locals: ImmutableArray.Create<LocalSymbol>(boundTempX.LocalSymbol, boundTempY.LocalSymbol),
1288sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignmentX, tempAssignmentY),
1397sideEffects: ImmutableArray.Create<BoundExpression>(sideEffect),
1734locals: ImmutableArray.Create<LocalSymbol>(boundTemp.LocalSymbol),
1735sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignment),
1795locals: ImmutableArray.Create<LocalSymbol>(boundTempX.LocalSymbol, boundTempY.LocalSymbol),
1796sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignmentX, tempAssignmentY),
1883locals: ImmutableArray.Create<LocalSymbol>(boundTempX.LocalSymbol, boundTempY.LocalSymbol),
1884sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignmentX, tempAssignmentY),
1965sideEffects: ImmutableArray.Create<BoundExpression>(nonNullValue),
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (15)
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));
576Construct(ImmutableArray.Create(TypeWithAnnotations.Create(inlineArrayType), elementType));
605inlineArrayAsSpan = inlineArrayAsSpan.Construct(ImmutableArray.Create(TypeWithAnnotations.Create(inlineArrayType), 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 (10)
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);
137marshalArguments = ImmutableArray.Create<BoundExpression>(removeDelegate, rewrittenArgument);
152marshalArguments = ImmutableArray.Create<BoundExpression>(addDelegate, removeDelegate, rewrittenArgument);
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),
334ImmutableArray.Create(rewrittenReceiver, rewrittenArgument), ErrorTypeSymbol.UnknownResultType);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (22)
260tryBlock: new BoundBlock(forEachSyntax, locals: ImmutableArray<LocalSymbol>.Empty, statements: ImmutableArray.Create(whileLoop)),
269locals: ImmutableArray.Create(enumeratorVar),
270statements: ImmutableArray.Create<BoundStatement>(enumeratorVarDecl, tryFinally));
281locals: ImmutableArray.Create(enumeratorVar),
282statements: ImmutableArray.Create<BoundStatement>(enumeratorVarDecl, whileLoop));
412statements: ImmutableArray.Create(alwaysOrMaybeDisposeStmt));
466locals: ImmutableArray.Create(disposableVar),
467statements: ImmutableArray.Create(disposableVarDecl, ifStmt));
630arrayVarDecl = new BoundStatementList(arrayVarDecl.Syntax, ImmutableArray.Create(collectionVarInitializationPreamble, arrayVarDecl)).MakeCompilerGenerated();
660statements: ImmutableArray.Create<BoundStatement>(arrayVarDecl, positionVarDecl));
693outerLocals: preambleLocal is null ? ImmutableArray.Create<LocalSymbol>(collectionTemp, positionVar) : ImmutableArray.Create<LocalSymbol>(preambleLocal, collectionTemp, positionVar),
855statements: ImmutableArray.Create(iteratorVariableInitialization, rewrittenBody));
944indices: ImmutableArray.Create<BoundExpression>(boundPositionVar),
953statements: ImmutableArray.Create<BoundStatement>(arrayVarDecl, positionVarDecl));
989outerLocals: ImmutableArray.Create<LocalSymbol>(arrayVar, positionVar),
1096ImmutableArray<BoundExpression> dimensionArgument = ImmutableArray.Create(
1123indices: ImmutableArray.Create((BoundExpression[])boundPositionVar),
1150ImmutableArray<BoundExpression> dimensionArgument = ImmutableArray.Create(
1197outerLocals: ImmutableArray.Create(positionVar[dimension]),
1211ImmutableArray.Create(arrayVar).Concat(upperVar.AsImmutableOrNull()),
1212ImmutableArray.Create(arrayVarDecl).Concat(upperVarDecl.AsImmutableOrNull()).Add(forLoop));
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (9)
80locals: ImmutableArray.Create(boundTemp.LocalSymbol),
81statements: ImmutableArray.Create(expressionStatement, tryFinally));
117exitCallExpr = new BoundBadExpression(lockSyntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(boundLockTemp), ErrorTypeSymbol.UnknownResultType);
170ImmutableArray.Create(boundLockTemp.LocalSymbol, boundLockTakenTemp.LocalSymbol),
171ImmutableArray.Create(
176BoundBlock.SynthesizedNoLocals(lockSyntax, ImmutableArray.Create<BoundStatement>(
212enterCallExpr = new BoundBadExpression(lockSyntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(boundLockTemp), ErrorTypeSymbol.UnknownResultType);
221ImmutableArray.Create(boundLockTemp.LocalSymbol),
222ImmutableArray.Create(
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (5)
211arguments = ImmutableArray.Create(boundCoalesce.LeftOperand);
389return BoundCall.Synthesized(syntax, receiverOpt: null, initialBindingReceiverIsSubjectToCloning: ThreeState.Unknown, method, ImmutableArray.Create(loweredFirst, loweredSecond, loweredThird));
402return BoundCall.Synthesized(syntax, receiverOpt: null, initialBindingReceiverIsSubjectToCloning: ThreeState.Unknown, method, ImmutableArray.Create(loweredFirst, loweredSecond, loweredThird, loweredFourth));
729ImmutableArray.Create(temp.LocalSymbol),
730ImmutableArray.Create<BoundExpression>(store),
Lowering\SyntheticBoundNodeFactory.cs (16)
455return Block(ImmutableArray.Create(statements));
460return Block(locals, ImmutableArray.Create(statements));
470return Block(locals, localFunctions, ImmutableArray.Create(statements));
495return new BoundStatementList(Syntax, ImmutableArray.Create(first, second)) { WasCompilerGenerated = true };
831return Call(receiver, method, ImmutableArray.Create(arg0), useStrictArgumentRefKinds);
836return Call(receiver, method, ImmutableArray.Create(arg0, arg1), useStrictArgumentRefKinds);
841return Call(receiver, method, ImmutableArray.Create<BoundExpression>(args));
845=> Call(receiver, WellKnownMethod(method), ImmutableArray.Create(arg0));
987return MakeSequence(ImmutableArray.Create<LocalSymbol>(temp), parts);
1055=> SwitchSection(ImmutableArray.Create(value), statements);
1058=> new(values, ImmutableArray.Create(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,
Symbols\AliasSymbol.cs (3)
75return new AliasSymbolFromResolvedTarget(targetSymbol, aliasToken.ValueText, containingSymbol, ImmutableArray.Create(aliasToken.GetLocation()), isExtern);
286: base(syntax.Alias!.Name.Identifier.ValueText, containingSymbol, ImmutableArray.Create(syntax.Alias!.Name.Identifier.GetLocation()), isExtern: false)
294: base(syntax.Identifier.ValueText, containingSymbol, ImmutableArray.Create(syntax.Identifier.GetLocation()), isExtern: true)
Symbols\Synthesized\SynthesizedInlineArrayAsReadOnlySpanMethod.cs (2)
15this.SetTypeParameters(ImmutableArray.Create<TypeParameterSymbol>(new SynthesizedSimpleMethodTypeParameterSymbol(this, 0, "TBuffer"), new SynthesizedSimpleMethodTypeParameterSymbol(this, 1, "TElement")));
17this.SetParameters(ImmutableArray.Create<ParameterSymbol>(SynthesizedParameterSymbol.Create(this, TypeWithAnnotations.Create(TypeParameters[0]), 0, RefKind.In, "buffer"),
Symbols\Synthesized\SynthesizedInlineArrayAsSpanMethod.cs (2)
15this.SetTypeParameters(ImmutableArray.Create<TypeParameterSymbol>(new SynthesizedSimpleMethodTypeParameterSymbol(this, 0, "TBuffer"), new SynthesizedSimpleMethodTypeParameterSymbol(this, 1, "TElement")));
17this.SetParameters(ImmutableArray.Create<ParameterSymbol>(SynthesizedParameterSymbol.Create(this, TypeWithAnnotations.Create(TypeParameters[0]), 0, RefKind.Ref, "buffer"),
Symbols\Synthesized\SynthesizedInlineArrayElementRefMethod.cs (2)
15this.SetTypeParameters(ImmutableArray.Create<TypeParameterSymbol>(new SynthesizedSimpleMethodTypeParameterSymbol(this, 0, "TBuffer"), new SynthesizedSimpleMethodTypeParameterSymbol(this, 1, "TElement")));
17this.SetParameters(ImmutableArray.Create<ParameterSymbol>(SynthesizedParameterSymbol.Create(this, TypeWithAnnotations.Create(TypeParameters[0]), 0, RefKind.Ref, "buffer"),
Symbols\Synthesized\SynthesizedInlineArrayElementRefReadOnlyMethod.cs (2)
15this.SetTypeParameters(ImmutableArray.Create<TypeParameterSymbol>(new SynthesizedSimpleMethodTypeParameterSymbol(this, 0, "TBuffer"), new SynthesizedSimpleMethodTypeParameterSymbol(this, 1, "TElement")));
17this.SetParameters(ImmutableArray.Create<ParameterSymbol>(SynthesizedParameterSymbol.Create(this, TypeWithAnnotations.Create(TypeParameters[0]), 0, RefKind.In, "buffer"),
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer_IfStatement.cs (1)
99ImmutableArray.Create(
Binding\Binder_Expressions.vb (10)
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)
337ImmutableArray.Create(BindRValue(arguments(0).Expression, diagnostics)),
1665initializers = ImmutableArray.Create(Of BoundExpression)(arrayInitialization)
3134If(receiver IsNot Nothing, ImmutableArray.Create(receiver), ImmutableArray(Of BoundExpression).Empty),
3743ImmutableArray.Create(
3768Dim boundArguments = ImmutableArray.Create(Of BoundExpression)(arg)
3792boundArguments:=ImmutableArray.Create(Of BoundExpression)(arg),
3824ImmutableArray.Create(
Binding\Binder_Operators.vb (9)
604ImmutableArray.Create(Of MethodSymbol)(
608ImmutableArray.Create(Of BoundExpression)(left, right),
618ImmutableArray.Create(Of BoundExpression)(left, right),
746PassArguments(node, bitwiseAnalysis, ImmutableArray.Create(Of BoundExpression)(left, right), diagnostics)
753ImmutableArray.Create(Of MethodSymbol)(
757ImmutableArray.Create(Of BoundExpression)(leftPlaceholder, argumentInfo.Arguments(1)),
1255ImmutableArray.Create(Of MethodSymbol)(
1259ImmutableArray.Create(Of BoundExpression)(operand),
1269ImmutableArray.Create(Of BoundExpression)(operand),
Binding\Binder_Query.vb (77)
222ImmutableArray.Create(Of Binder)(intoBinder),
239ImmutableArray.Create(Of Binder)(intoBinder),
272ImmutableArray.Create(Of Binder)(intoBinder),
316ImmutableArray.Create(letSelectorParam))
346underlyingExpression = BadExpression(aggregate, ImmutableArray.Create(Of BoundExpression)(source, letSelectorLambda),
358ImmutableArray.Create(Of BoundExpression)(letSelectorLambda),
404ImmutableArray.Create(Of Binder)(firstSelectSelectorBinder, intoBinder),
434ImmutableArray.Create(selectSelectorParam))
541underlyingExpression = BadExpression(aggregate, ImmutableArray.Create(Of BoundExpression)(letOperator, selectSelectorLambda),
553ImmutableArray.Create(Of BoundExpression)(selectSelectorLambda),
562ImmutableArray.Create(Of Binder)(firstSelectSelectorBinder, intoBinder),
598ImmutableArray.Create(param))
624ImmutableArray.Create(Of BoundExpression)(selectorLambda),
662ImmutableArray.Create(param))
685boundCallOrBadExpression = BadExpression(clauseSyntax, ImmutableArray.Create(Of BoundExpression)(source, selectorLambda),
695ImmutableArray.Create(Of BoundExpression)(selectorLambda),
704ImmutableArray.Create(Of Binder)(selectorBinder),
781ImmutableArray.Create(Me),
799ImmutableArray.Create(param))
822boundCallOrBadExpression = BadExpression(variable, ImmutableArray.Create(Of BoundExpression)(source, selectorLambda),
841ImmutableArray.Create(Of BoundExpression)(selectorLambda),
850ImmutableArray.Create(Of Binder)(selectorBinder),
986ImmutableArray.Create(rangeVar),
988ImmutableArray.Create(Me),
996ImmutableArray.Create(Me),
1024ImmutableArray.Create(manySelectorParam))
1075ImmutableArray.Create(joinSelectorParamLeft, joinSelectorParamRight))
1092lambdaBinders = ImmutableArray.Create(Of Binder)(manySelectorBinder, joinSelectorBinder)
1120lambdaBinders = ImmutableArray.Create(Of Binder)(manySelectorBinder)
1137boundCallOrBadExpression = BadExpression(variable, ImmutableArray.Create(Of BoundExpression)(source, manySelectorLambda, joinSelectorLambda),
1157ImmutableArray.Create(Of BoundExpression)(manySelectorLambda, joinSelectorLambda),
1294ImmutableArray.Create(absorbingJoin.Binders.Last),
1308ImmutableArray.Create(absorbingJoin.Binders.Last),
1405ImmutableArray.Create(rangeVar),
1468ImmutableArray.Create(joinSelectorParamLeft, joinSelectorParamRight))
1486lambdaBinders = ImmutableArray.Create(Of Binder)(outerKeyBinder, innerKeyBinder, joinSelectorBinder)
1504lambdaBinders = ImmutableArray.Create(Of Binder)(outerKeyBinder, innerKeyBinder)
1519boundCallOrBadExpression = BadExpression(join, ImmutableArray.Create(Of BoundExpression)(outer, inner, outerKeyLambda, innerKeyLambda, joinSelectorLambda),
1534ImmutableArray.Create(Of BoundExpression)(inner, outerKeyLambda, innerKeyLambda, joinSelectorLambda),
1651ImmutableArray.Create(rangeVar),
1702boundCallOrBadExpression = BadExpression(groupJoin, ImmutableArray.Create(Of BoundExpression)(outer, inner, outerKeyLambda, innerKeyLambda, intoLambda),
1720ImmutableArray.Create(Of BoundExpression)(inner, outerKeyLambda, innerKeyLambda, intoLambda),
1729ImmutableArray.Create(Of Binder)(outerKeyBinder, innerKeyBinder, intoBinder),
1799lambdaBinders = ImmutableArray.Create(Of Binder)(keysLambdaBinder, intoBinder)
1802lambdaBinders = ImmutableArray.Create(Of Binder)(keysLambdaBinder, itemsLambdaBinder, intoBinder)
1809ImmutableArray.Create(Of BoundExpression)(source).AddRange(groupByArguments),
1870ImmutableArray.Create(itemsParam))
1914ImmutableArray.Create(keysParam))
2122ImmutableArray.Create(keyParam, groupParam))
2319ImmutableArray.Create(param))
2376boundCallOrBadExpression = BadExpression(operatorSyntax, ImmutableArray.Create(Of BoundExpression)(source, filterLambda),
2386ImmutableArray.Create(Of BoundExpression)(filterLambda),
2395ImmutableArray.Create(Of Binder)(filterBinder),
2484boundCallOrBadExpression = BadExpression(partition, ImmutableArray.Create(source, boundCount),
2494ImmutableArray.Create(boundCount),
2537ImmutableArray.Create(Me),
2554ImmutableArray.Create(param))
2573boundCallOrBadExpression = BadExpression(ordering, ImmutableArray.Create(Of BoundExpression)(sourceOrPreviousOrdering, keyLambda),
2607ImmutableArray.Create(Of BoundExpression)(keyLambda),
2626ImmutableArray.Create(Of Binder)(keyBinder),
2754declaredRangeVariables = ImmutableArray.Create(Of RangeVariableSymbol)(rangeVar)
2764declaredRangeVariables = ImmutableArray.Create(RangeVariableSymbol.CreateForErrorRecovery(Me, selectorSyntax, selector.Type))
2945declaredRangeVariables = ImmutableArray.Create(rangeVar)
3010declaredRangeVariables = ImmutableArray.Create(Of RangeVariableSymbol)(
3099declaredRangeVariables = ImmutableArray.Create(Of RangeVariableSymbol)(groupRangeVar)
3276ImmutableArray.Create(outerKeyParam))
3286ImmutableArray.Create(innerKeyParam))
3924ImmutableArray.Create(aggregationParam))
3948arguments = ImmutableArray.Create(Of BoundExpression)(aggregationLambda)
3956ImmutableArray.Create(m_GroupReference).AddRange(arguments),
3976ImmutableArray.Create(Of Binder)(aggregationBinder),
4234ImmutableArray.Create(variable), variableType,
4267ImmutableArray.Create(param))
4295ImmutableArray.Create(Of BoundExpression)(selectorLambda),
4305ImmutableArray.Create(Of Binder)(selectorBinder),
4394ImmutableArray.Create(Of TypeSymbol)(inferredType)),
4692childBoundNodes = ImmutableArray.Create(If(methodGroup, source))
Binding\Binder_Statements.vb (14)
72Return New BoundBadStatement(node, ImmutableArray.Create(Of BoundNode)(condition), hasErrors:=True)
229ImmutableArray.Create(Of BoundNode)(BindBooleanExpression(whileOrUntilClause.Condition, diagnostics)))
240ImmutableArray.Create(Of BoundNode)(BindBooleanExpression(whenClause.Filter, diagnostics)))
400locals = ImmutableArray.Create(localForFunctionValue)
847Return New BoundBadStatement(node, ImmutableArray.Create(Of BoundNode)(boundLabelExpression), hasErrors:=True)
2469Return New BoundBadStatement(node, ImmutableArray.Create(Of BoundNode)(target), True)
2589ImmutableArray.Create(fireMethod),
3064nextVariables = ImmutableArray.Create(boundVariable)
3611ImmutableArray.Create(controlVariable),
3802ImmutableArray.Create(collection),
3855ImmutableArray.Create(collection),
3903ImmutableArray.Create(DirectCast(member, MethodSymbol)),
3926ImmutableArray.Create(DirectCast(member, MethodSymbol)),
3959ImmutableArray.Create(DirectCast(member, PropertySymbol)),
Binding\Binder_XmlLiterals.vb (21)
27ImmutableArray.Create(Of BoundExpression)(str),
42ImmutableArray.Create(Of BoundExpression)(declaration, New BoundLiteral(syntax, ConstantValue.Nothing, Nothing)),
63ImmutableArray.Create(Of BoundExpression)(version, encoding, standalone),
83ImmutableArray.Create(Of BoundExpression)(target, data),
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))
369ImmutableArray.Create(Of BoundExpression)(prefixesPlaceholder, namespacesPlaceholder, xmlnsAttributesPlaceholder, expr),
426ImmutableArray.Create(Of BoundExpression)(prefix, [namespace]),
431objectCreation = BindInvocationExpressionIfGroupNotNothing(syntax, group, ImmutableArray.Create(Of BoundExpression)(prefix, [namespace]), diagnostics)
490ImmutableArray.Create(Of BoundExpression)(name, value),
503ImmutableArray.Create(Of BoundExpression)(name, value),
666memberAccess = BindInvocationExpressionIfGroupNotNothing(syntax, group, ImmutableArray.Create(Of BoundExpression)(receiver, name), diagnostics)
674memberAccess = BadExpression(syntax, ImmutableArray.Create(receiver, name), Compilation.GetSpecialType(SpecialType.System_String))
713arguments = ImmutableArray.Create(Of BoundExpression)(name)
720arguments = ImmutableArray.Create(Of BoundExpression)(receiver, name)
734memberAccess = BadExpression(syntax, ImmutableArray.Create(receiver, name), ErrorTypeSymbol.UnknownResultType)
858Dim objectCreation = BindInvocationExpressionIfGroupNotNothing(syntax, group, ImmutableArray.Create(Of BoundExpression)(localName, [namespace]), diagnostics)
894Dim objectCreation = BindInvocationExpressionIfGroupNotNothing(syntax, group, ImmutableArray.Create(Of BoundExpression)([namespace]), diagnostics)
919ImmutableArray.Create(Of BoundExpression)(value),
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (17)
72ImmutableArray.Create(Of LocalSymbol)(temp),
486ImmutableArray.Create(left, right), Nothing, memberSymbol.ReturnType)
525ImmutableArray.Create(left, right), Nothing, memberSymbol.ReturnType)
589ImmutableArray.Create(left), Nothing, memberSymbol.ReturnType)
594ImmutableArray.Create(right), Nothing, memberSymbol.ReturnType)
637ImmutableArray.Create(left, right), Nothing, memberSymbol.ReturnType)
665ImmutableArray.Create(left, right), Nothing, memberSymbol.ReturnType)
698ImmutableArray.Create(left,
730ImmutableArray.Create(left,
763ImmutableArray.Create(left,
788ImmutableArray.Create(left, right), Nothing, memberSymbol.ReturnType, suppressObjectClone:=True)
1013ImmutableArray.Create(Of LocalSymbol)(leftTemp),
1014ImmutableArray.Create(Of BoundExpression)(leftInit),
1040ImmutableArray.Create(If(operandHasValue, NullableValueOrDefault(operand), operand)),
1138ImmutableArray.Create(Of LocalSymbol)(temp),
1139ImmutableArray.Create(tempInit),
1453ImmutableArray.Create(Of BoundExpression)(leftCallInput, rightCallInput),
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (11)
676ImmutableArray.Create(inputToOperatorMethod),
697ImmutableArray.Create(Of LocalSymbol)(temp),
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_ForEach.vb (12)
282ImmutableArray.Create(Of BoundExpression)(boundIndex.MakeRValue()),
297ImmutableArray.Create(Of BoundExpression)(boundIndex.MakeRValue()),
302ImmutableArray.Create(Of BoundExpression)(boundIndex.MakeRValue()), elementType, hasErrors:=True)
445incrementAssignment = New BoundStatementList(statementSyntax, ImmutableArray.Create(epilogue, incrementAssignment))
451Dim rewrittenBodyStatements = ImmutableArray.Create(Of BoundStatement)(currentAssignment,
461ImmutableArray.Create(Of LocalSymbol)(forEachStatement.DeclaredOrInferredLocalOpt),
606Dim rewrittenBodyStatements = ImmutableArray.Create(Of BoundStatement)(DirectCast(Visit(boundCurrentAssignment), BoundStatement),
611Dim rewrittenBodyBlock As BoundBlock = New BoundBlock(syntaxNode, Nothing, If(node.DeclaredOrInferredLocalOpt IsNot Nothing, ImmutableArray.Create(Of LocalSymbol)(node.DeclaredOrInferredLocalOpt), ImmutableArray(Of LocalSymbol).Empty), rewrittenBodyStatements)
659ImmutableArray.Create(Of BoundStatement)(boundEnumeratorAssignment,
664ImmutableArray.Create(Of BoundStatement)(disposalStatement)),
719ImmutableArray.Create(rewrittenBoundLocal, rewrittenCondition),
720ImmutableArray.Create(Of BoundExpression)(rewrittenBoundLocal)),
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (28)
80Return New BoundArrayCreation(node, ImmutableArray.Create(bounds), initializer, booleanArrayType)
113Dim arrayCreation = New BoundArrayCreation(node, ImmutableArray.Create(bounds), Nothing, objectArrayType)
140Dim indices = ImmutableArray.Create(indexExpr)
151Return New BoundSequence(node, ImmutableArray.Create(arrayTemp), sideeffects.ToImmutableAndFree, arrayTempRef, arrayTempRef.Type)
177rewrittenArguments = ImmutableArray.Create(rewrittenValue)
202Dim arrayCreation = New BoundArrayCreation(node, ImmutableArray.Create(bounds), Nothing, objectArrayType)
241Return New BoundSequence(node, ImmutableArray.Create(arrayTemp), sideeffects.ToImmutableAndFree, arrayTempRef, arrayTempRef.Type)
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),
375ImmutableArray.Create(Of BoundExpression)(value, getTypeExpr),
455ImmutableArray.Create(assignment),
492Dim callArgs = ImmutableArray.Create(Of BoundExpression)(receiver,
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))
557callArgs = ImmutableArray.Create(Of BoundExpression)(receiver,
569callArgs = ImmutableArray.Create(Of BoundExpression)(receiver,
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))
628callArgs = ImmutableArray.Create(Of BoundExpression)(receiver,
637callArgs = ImmutableArray.Create(Of BoundExpression)(receiver,
798Dim callArgs = ImmutableArray.Create(Of BoundExpression)(receiver,
841ImmutableArray.Create(Of LocalSymbol)(valueArrayTemp, copyBackFlagArrayTemp, valueTemp),
842ImmutableArray.Create(Of BoundExpression)(store).Concat(copyBackBuilder.ToImmutableAndFree),
959Return New BoundArrayCreation(node, ImmutableArray.Create(bounds), initializer, typeArrayType)
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (6)
226ImmutableArray.Create(Of BoundExpression)(flag, newFlagInstance, New BoundLiteral(syntax, ConstantValue.Nothing, flag.Type)),
293New BoundStatementList(syntax, ImmutableArray.Create(flagStateAssignTwo, rewrittenInitialization)),
305locals = ImmutableArray.Create(boundLockTakenLocal.LocalSymbol)
307statementsInTry = ImmutableArray.Create(boundMonitorEnterCall, conditionalValueInit)
311statementsInTry = ImmutableArray.Create(Of BoundStatement)(conditionalValueInit)
328ImmutableArray.Create(flagStateAssignOne, monitorExit))
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\LocalRewriter\LocalRewriter_SyncLock.vb (10)
99ImmutableArray.Create(Of BoundExpression)(boundLockObjectLocal),
117locals = ImmutableArray.Create(Of LocalSymbol)(tempLockObjectLocal, boundLockTakenLocal.LocalSymbol)
119tryStatements = ImmutableArray.Create(Of BoundStatement)(boundMonitorEnterCallStatement,
122locals = ImmutableArray.Create(tempLockObjectLocal)
124tryStatements = ImmutableArray.Create(Of BoundStatement)(DirectCast(Visit(node.Body), BoundBlock))
138ImmutableArray.Create(Of BoundStatement)(statementInFinally))
199parameters = ImmutableArray.Create(Of BoundExpression)(boundLockObject, boundLockTakenLocal)
205parameters = ImmutableArray.Create(Of BoundExpression)(boundLockObject)
244ImmutableArray.Create(Of BoundExpression)(boundLockObject),
249boundMonitorExitCall = New BoundBadExpression(syntaxNode, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(boundLockObject), ErrorTypeSymbol.UnknownResultType, hasErrors:=True)
Lowering\SyntheticBoundNodeFactory.vb (11)
241Return nullableType.Construct(ImmutableArray.Create(type))
330Return Block(ImmutableArray.Create(Of BoundStatement)(statements))
334Return Block(locals, ImmutableArray.Create(Of BoundStatement)(statements))
348Dim boundNode As New BoundStatementList(Syntax, ImmutableArray.Create(first, second))
459Dim boundNode = New BoundBadExpression(_syntax, LookupResultKind.Empty, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(subExpressions), ErrorTypeSymbol.UnknownResultType, hasErrors:=True)
471Dim boundNode = New BoundObjectCreationExpression(_syntax, ctor, ImmutableArray.Create(args), Nothing, ctor.ContainingType)
590Return [Call](receiver, method, ImmutableArray.Create(Of BoundExpression)(args))
678Return Sequence(ImmutableArray.Create(Of LocalSymbol)(temp), parts)
692Dim sectionsArray = ImmutableArray.CreateRange(Of BoundCaseBlock)(sections)
740Dim boundCaseBlock = New BoundCaseBlock(_syntax, boundCaseStatement, Block(ImmutableArray.Create(Of BoundStatement)(statements)))
1039Return New BoundArrayCreation(_syntax, ImmutableArray.Create(Of BoundExpression)(Literal(elements.Length)), boundArrayInit, arrayType)
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()),
Symbols\Source\SynthesizedEntryPointSymbol.vb (6)
307ImmutableArray.Create(Of LocalSymbol)(scriptLocal.LocalSymbol),
308ImmutableArray.Create(Of BoundStatement)(scriptAssignment, scriptInitialize, returnStatement)).MakeCompilerGenerated()
321_parameters = ImmutableArray.Create(Of ParameterSymbol)(New SynthesizedParameterSymbol(Me, submissionArrayType, ordinal:=0, isByRef:=False, name:="submissionArray"))
369ImmutableArray.Create(Of BoundExpression)(submissionArrayParameter),
387ImmutableArray.Create(Of LocalSymbol)(submissionLocal.LocalSymbol),
388ImmutableArray.Create(Of BoundStatement)(submissionAssignment, returnStatement)).MakeCompilerGenerated()
Symbols\Source\SynthesizedMainTypeEntryPoint.vb (3)
75New BoundMethodGroup(syntaxNode, Nothing, ImmutableArray.Create(runMethod), LookupResultKind.Good, Nothing, QualificationKind.QualifiedViaTypeName),
76ImmutableArray.Create(instance), Nothing, diagnostics,
82Return New BoundBlock(syntaxNode, Nothing, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(statement, New BoundReturnStatement(syntaxNode, Nothing, Nothing, Nothing)))
Symbols\Source\SynthesizedSubmissionConstructorSymbol.vb (5)
36_parameters = ImmutableArray.Create(Of ParameterSymbol)(
52ImmutableArray.Create(Of BoundStatement)(New BoundReturnStatement(node, Nothing, Nothing, Nothing)))
79New BoundArrayAccess(syntax, submissionArrayReference, ImmutableArray.Create(Of BoundExpression)(New BoundLiteral(syntax, ConstantValue.Create(slotIndex), intType)), isLValue:=True, type:=objectType),
93New BoundArrayAccess(syntax, submissionArrayReference, ImmutableArray.Create(Of BoundExpression)(New BoundLiteral(syntax, ConstantValue.Create(0), intType)), isLValue:=False, type:=objectType),
113New BoundArrayAccess(syntax, submissionArrayReference, ImmutableArray.Create(Of BoundExpression)(New BoundLiteral(syntax, ConstantValue.Create(targetSubmissionId), intType)), isLValue:=False, type:=objectType),
Symbols\Tuples\TupleTypeSymbol.vb (4)
336Me.New(If((locationOpt Is Nothing), ImmutableArray(Of Location).Empty, ImmutableArray.Create(Of Location)(locationOpt)),
403Return TupleTypeSymbol.Create(If((locationOpt Is Nothing), ImmutableArray(Of Location).Empty, ImmutableArray.Create(Of Location)(locationOpt)),
554Dim namedTypeSymbol As NamedTypeSymbol = wellKnownType.Construct(ImmutableArray.Create(Of TypeSymbol)(elementTypes, (chainLength - 1) * (TupleTypeSymbol.RestPosition - 1), remainder))
563Dim typeArguments As ImmutableArray(Of TypeSymbol) = ImmutableArray.Create(Of TypeSymbol)(elementTypes, ([loop] - 1) * (TupleTypeSymbol.RestPosition - 1), TupleTypeSymbol.RestPosition - 1).Add(namedTypeSymbol)
src\Analyzers\VisualBasic\CodeFixes\AddObsoleteAttribute\VisualBasicAddObsoleteAttributeCodeFixProvider.vb (1)
18ImmutableArray.Create(
src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\GenerateConstructorDiagnosticIds.vb (3)
21Friend Shared ReadOnly AllDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30057, BC30272, BC30274, BC30389, BC30455, BC32006, BC30512, BC30387, BC30516)
22Friend Shared ReadOnly TooManyArgumentsDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30057)
23Friend Shared ReadOnly CannotConvertDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30512, BC32006, BC30311, BC36625)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\GenerateParameterizedMemberCodeFixProvider.vb (1)
50Return ImmutableArray.Create(BC30518, BC30519, BC30520, BC30521, BC30057, BC30112, BC30451, BC30455, BC30456, BC30401, BC30516, BC32016, BC32045, BC32087, BC36625, BC30107, BC30108, BC30109, BC30110, BC30111)
AddImport\VisualBasicAddImportCodeFixProvider.vb (1)
98Return ImmutableArray.Create(BC30002, BC30451, BC30456, BC32042, BC36593, BC32045, BC30389, BC31504, BC32016, BC36610,
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (1)
53Return ImmutableArray.Create(BC30025, BC30026, BC30027, BC30081, BC30082, BC30083, BC30084, BC30085, BC30185, BC30253, BC30384, BC30481, BC30624, BC30625,
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.vb (1)
48Return ImmutableArray.Create(BC30781, BC30782, BC30783, BC30784, BC30240, BC30065, BC30066, BC30067, BC30089, BC30096, BC30097, BC30099, BC30393, BC30689)
src\Analyzers\VisualBasic\Analyzers\NamingStyle\VisualBasicNamingStyleDiagnosticAnalyzer.vb (1)
15ImmutableArray.Create(
src\Analyzers\VisualBasic\CodeFixes\AddObsoleteAttribute\VisualBasicAddObsoleteAttributeCodeFixProvider.vb (1)
18ImmutableArray.Create(
src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\GenerateConstructorDiagnosticIds.vb (3)
21Friend Shared ReadOnly AllDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30057, BC30272, BC30274, BC30389, BC30455, BC32006, BC30512, BC30387, BC30516)
22Friend Shared ReadOnly TooManyArgumentsDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30057)
23Friend Shared ReadOnly CannotConvertDiagnosticIds As ImmutableArray(Of String) = ImmutableArray.Create(BC30512, BC32006, BC30311, BC36625)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\GenerateParameterizedMemberCodeFixProvider.vb (1)
50Return ImmutableArray.Create(BC30518, BC30519, BC30520, BC30521, BC30057, BC30112, BC30451, BC30455, BC30456, BC30401, BC30516, BC32016, BC32045, BC32087, BC36625, BC30107, BC30108, BC30109, BC30110, BC30111)