src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (4)
3131 => ImmutableArray.Create(_item0),
3142 => ImmutableArray.Create(_item0, _item1),
3153 => ImmutableArray.Create(_item0, _item1, _item2),
3164 => ImmutableArray.Create(_item0, _item1, _item2, _item3),
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (4)
3131 => ImmutableArray.Create(_item0),
3142 => ImmutableArray.Create(_item0, _item1),
3153 => ImmutableArray.Create(_item0, _item1, _item2),
3164 => ImmutableArray.Create(_item0, _item1, _item2, _item3),
Binder\Binder_Expressions.cs (25)
176ImmutableArray.Create(AdjustBadExpressionChild(BindToTypeForErrorRecovery(childNode))),
244ImmutableArray.Create(AdjustBadExpressionChild(BindToTypeForErrorRecovery(expr))),
893node, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(BindToTypeForErrorRecovery(BindValue(node.Expression, BindingDiagnosticBag.Discarded, BindValueKind.RefersToLocation))),
1045ImmutableArray.Create(BindValue(arguments[0].Expression, diagnostics, BindValueKind.RValue)) :
1081ImmutableArray.Create<BoundExpression>(boundArgument), CreateErrorType("void"));
1741symbols: ImmutableArray.Create(symbol),
1742childBoundNodes: ImmutableArray.Create(BindToTypeForErrorRecovery(expression)),
4325ImmutableArray.Create(boundExpression.ExpressionSymbol),
4326ImmutableArray.Create(boundExpression));
4702typeArguments: ImmutableArray.Create(elementTypeWithAnnotations),
5632return new BoundBadExpression(node, LookupResultKind.NotInvocable, StaticCast<Symbol>.From(type.InstanceConstructors), ImmutableArray.Create(argument), type);
5642argument.Syntax, default, WellKnownMemberNames.DelegateInvokeName, ImmutableArray.Create(sourceDelegate.DelegateInvokeMethod),
5776return new BoundBadExpression(node, LookupResultKind.NotCreatable, ImmutableArray.Create<Symbol?>(type), children.ToImmutableAndFree(), type) { WasCompilerGenerated = wasCompilerGenerated };
6508ImmutableArray.Create(boundElementInitializer),
6736ImmutableArray.Create((BoundExpression)addElementPlaceholder),
8052return new BoundBadExpression(node, LookupResultKind.Ambiguous, lookupResult.Symbols.AsImmutable(), ImmutableArray.Create(AdjustBadExpressionChild(boundLeft)), CreateErrorType(rightName), hasErrors: true);
8090return new BoundBadExpression(node, lookupResult.Kind, symbols.AsImmutable(), ImmutableArray.Create(AdjustBadExpressionChild(boundLeft)), CreateErrorType(rightName), hasErrors: true);
8541(object)symbolOpt == null ? ImmutableArray<Symbol>.Empty : ImmutableArray.Create(symbolOpt),
8542boundLeft == null ? ImmutableArray<BoundExpression>.Empty : ImmutableArray.Create(AdjustBadExpressionChild(BindToTypeForErrorRecovery(boundLeft))),
9847Construct(ImmutableArray.Create(elementField.TypeWithAnnotations));
10023var argumentPlaceholders = ImmutableArray.Create(new BoundImplicitIndexerValuePlaceholder(convertedArguments[0].Syntax, int32) { WasCompilerGenerated = true });
10692argumentPlaceholders = ImmutableArray.Create(intPlaceholder);
10764argumentPlaceholders = ImmutableArray.Create(startArgumentPlaceholder, lengthArgumentPlaceholder);
10771syntax, typeArgumentsOpt: default, method.Name, ImmutableArray.Create(method),
11043methods = 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),
704var result = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x1, x2), node, bodyFactory, withDependencies);
741yExpression = new BoundBadExpression(yExpression.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(yExpression), CreateErrorType());
747yExpression = new BoundBadExpression(yExpression.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(yExpression), yExpression.Type);
757var lambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x), let.Expression, bodyFactory, diagnostics.AccumulatesDependencies);
808field2Value = new BoundBadExpression(field2Value.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(field2Value), field2Value.Type, true);
812ImmutableArray.Create(
820return MakeConstruction(node, anonymousType, ImmutableArray.Create(field1Value, field2Value), diagnostics);
833return MakeQueryUnboundLambda(qvm, ImmutableArray.Create(parameter), expression, withDependencies);
849return MakeQueryUnboundLambda(expression, new QueryUnboundLambdaState(this, qvm, ImmutableArray.Create(parameter), (LambdaSymbol lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag diagnostics) =>
885return MakeQueryInvocation(node, receiver, methodName, default(SeparatedSyntaxList<TypeSyntax>), default(ImmutableArray<TypeWithAnnotations>), ImmutableArray.Create(arg), diagnostics
911return MakeQueryInvocation(node, receiver, methodName, new SeparatedSyntaxList<TypeSyntax>(new SyntaxNodeOrTokenList(typeArgSyntax, 0)), ImmutableArray.Create(typeArg), ImmutableArray<BoundExpression>.Empty, diagnostics
964receiver = new BoundBadExpression(receiver.Syntax, LookupResultKind.NotAValue, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(receiver), CreateErrorType());
986receiver = new BoundBadExpression(receiver.Syntax, LookupResultKind.NotAValue, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(receiver), CreateErrorType());
BoundTree\Constructors.cs (4)
182return Synthesized(syntax, receiverOpt, initialBindingReceiverIsSubjectToCloning: initialBindingReceiverIsSubjectToCloning, method, ImmutableArray.Create(arg0));
187return Synthesized(syntax, receiverOpt, initialBindingReceiverIsSubjectToCloning: initialBindingReceiverIsSubjectToCloning, method, ImmutableArray.Create(arg0, arg1));
261: this(syntax, constructor, ImmutableArray.Create<BoundExpression>(arguments), default(ImmutableArray<string?>), default(ImmutableArray<RefKind>), false, default(ImmutableArray<int>), default(BitVector), null, null, constructor.ContainingType)
603return 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 }),
155ImmutableArray.Create<BoundExpression>(new BoundLiteral(syntax, ConstantValue.Create(targetSubmissionIndex), intType) { WasCompilerGenerated = true }),
404arguments: ImmutableArray.Create<BoundExpression>(boundBackingField, boundParameter)),
418statements: ImmutableArray.Create<BoundStatement>(
423compareExchangeMethod = compareExchangeMethod.Construct(ImmutableArray.Create<TypeSymbol>(delegateType));
469arguments: ImmutableArray.Create<BoundExpression>(boundTmps[1], boundParameter)),
487arguments: ImmutableArray.Create<BoundExpression>(boundBackingField, boundTmps[2], boundTmps[1]));
519statements: ImmutableArray.Create<BoundStatement>(
568ImmutableArray.Create<BoundStatement>(
576ImmutableArray.Create<BoundStatement>(
Lowering\ClosureConversion\ClosureConversion.cs (7)
677var frameTypeParameters = ImmutableArray.Create(_currentTypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t)), 0, frame.Arity);
1040var realTypeArguments = ImmutableArray.Create(_currentTypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t)), 0, totalTypeArgumentCount - originalMethod.Arity);
1048var containerTypeArguments = ImmutableArray.Create(realTypeArguments, 0, containerAsFrame.Arity);
1049realTypeArguments = ImmutableArray.Create(realTypeArguments, containerAsFrame.Arity, realTypeArguments.Length - containerAsFrame.Arity);
1139sideEffects: ImmutableArray.Create<BoundExpression>(rewritten),
1261ImmutableArray.Create<LocalSymbol>(),
1745return new BoundBadExpression(F.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (9)
358return new BoundBadExpression(node.Syntax, default(LookupResultKind), ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), ExpressionType);
389return new BoundBadExpression(node.Syntax, 0, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), ExpressionType);
876ImmutableArray.Create<TypeSymbol>(underlyingDelegateType),
921ImmutableArray.Create(param),
922ImmutableArray.Create<BoundExpression>(_bound.AssignmentExpression(parameterReference, parameter)),
926_bound.ArrayOrEmpty(ParameterExpressionType, ImmutableArray.Create<BoundExpression>(parameterReference))));
1143return new BoundBadExpression(node.Syntax, default(LookupResultKind), ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type);
1150return new BoundBadExpression(node.Syntax, default(LookupResultKind), ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type);
1182return new BoundBadExpression(node.Syntax, default(LookupResultKind), ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type);
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (7)
452return ImmutableArray.Create(_factory.Sequence(new[] { value }, refAssignmentSourceIndex), index);
466return ImmutableArray.Create(addressOf, _factory.Sizeof(targetType), index);
486return ImmutableArray.Create(toString, index);
491return ImmutableArray.Create(_factory.Convert(parameter.Type, value, c), index);
548ImmutableArray.Create<BoundStatement>(logCallStatement, rewrittenFilterPrologue) :
549ImmutableArray.Create<BoundStatement>(logCallStatement));
626return _factory.Sequence(ImmutableArray.Create(temp.LocalSymbol), builder.ToImmutableAndFree(), temp);
Lowering\LocalRewriter\LocalRewriter.cs (8)
178return new BoundBadStatement(statement.Syntax, ImmutableArray.Create<BoundNode>(statement), hasErrors: true);
588return BadExpression(node.Syntax, node.Type, ImmutableArray.Create(node));
593return BadExpression(syntax, resultType, ImmutableArray.Create(child));
598return BadExpression(syntax, resultType, ImmutableArray.Create(child1, child2));
730return block.Update(locals, block.LocalFunctions, block.HasUnsafeModifier, block.Instrumentation, ImmutableArray.Create(statement));
742ImmutableArray.Create(statement));
859.Construct(ImmutableArray.Create(elementType)),
860ImmutableArray.Create(
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (17)
108locals: ImmutableArray.Create(boundTemp.LocalSymbol),
109sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignment),
713return _factory.Sequence(ImmutableArray.Create(temp.LocalSymbol), ImmutableArray.Create<BoundExpression>(tempAssignment), result);
872sideEffects: ImmutableArray.Create<BoundExpression>(nonNull),
1117locals: ImmutableArray.Create<LocalSymbol>(boundTempX.LocalSymbol, boundTempY.LocalSymbol),
1118sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignmentX, tempAssignmentY),
1306locals: ImmutableArray.Create<LocalSymbol>(boundTempX.LocalSymbol, boundTempY.LocalSymbol),
1307sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignmentX, tempAssignmentY),
1416sideEffects: ImmutableArray.Create<BoundExpression>(sideEffect),
1753locals: ImmutableArray.Create<LocalSymbol>(boundTemp.LocalSymbol),
1754sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignment),
1814locals: ImmutableArray.Create<LocalSymbol>(boundTempX.LocalSymbol, boundTempY.LocalSymbol),
1815sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignmentX, tempAssignmentY),
1902locals: ImmutableArray.Create<LocalSymbol>(boundTempX.LocalSymbol, boundTempY.LocalSymbol),
1903sideEffects: ImmutableArray.Create<BoundExpression>(tempAssignmentX, tempAssignmentY),
1984sideEffects: ImmutableArray.Create<BoundExpression>(nonNullValue),
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (12)
465ImmutableArray.Create(temp.LocalSymbol),
511var typeArgs = ImmutableArray.Create(elementType);
667var inlineArrayType = _factory.ModuleBuilderOpt.EnsureInlineArrayTypeExists(syntax, _factory, arrayLength, _diagnostics).Construct(ImmutableArray.Create(elementType));
672Construct(ImmutableArray.Create(TypeWithAnnotations.Create(inlineArrayType), elementType));
701inlineArrayAsSpan = inlineArrayAsSpan.Construct(ImmutableArray.Create(TypeWithAnnotations.Create(inlineArrayType), elementType));
855ImmutableArray.Create<BoundExpression>(
888ImmutableArray.Create(GetKnownLengthExpression(elements, numberIncludingLastSpread, localsBuilder)),
1163var typeArguments = ImmutableArray.Create(elementType);
1212rewrittenReceiver = _factory.New(constructor, ImmutableArray.Create<BoundExpression>(knownLengthTemp));
1217rewrittenReceiver = _factory.New(constructor, ImmutableArray.Create(knownLengthExpression));
1515var iterationVariables = ImmutableArray.Create(iterationVariable);
1587ImmutableArray.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);
345return new BoundBadExpression(node.Syntax, LookupResultKind.NotCreatable, ImmutableArray.Create<Symbol?>(node.Event),
346ImmutableArray.Create(rewrittenReceiver, rewrittenArgument), ErrorTypeSymbol.UnknownResultType);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (22)
264tryBlock: new BoundBlock(forEachSyntax, locals: ImmutableArray<LocalSymbol>.Empty, statements: ImmutableArray.Create(whileLoop)),
273locals: ImmutableArray.Create(enumeratorVar),
274statements: ImmutableArray.Create<BoundStatement>(enumeratorVarDecl, tryFinally));
285locals: ImmutableArray.Create(enumeratorVar),
286statements: ImmutableArray.Create<BoundStatement>(enumeratorVarDecl, whileLoop));
422statements: ImmutableArray.Create(alwaysOrMaybeDisposeStmt));
476locals: ImmutableArray.Create(disposableVar),
477statements: ImmutableArray.Create(disposableVarDecl, ifStmt));
629arrayVarDecl = new BoundStatementList(arrayVarDecl.Syntax, ImmutableArray.Create(collectionVarInitializationPreamble, arrayVarDecl)).MakeCompilerGenerated();
659statements: ImmutableArray.Create<BoundStatement>(arrayVarDecl, positionVarDecl));
692outerLocals: preambleLocal is null ? ImmutableArray.Create<LocalSymbol>(collectionTemp, positionVar) : ImmutableArray.Create<LocalSymbol>(preambleLocal, collectionTemp, positionVar),
854statements: ImmutableArray.Create(iteratorVariableInitialization, rewrittenBody));
943indices: ImmutableArray.Create<BoundExpression>(boundPositionVar),
952statements: ImmutableArray.Create<BoundStatement>(arrayVarDecl, positionVarDecl));
988outerLocals: ImmutableArray.Create<LocalSymbol>(arrayVar, positionVar),
1095ImmutableArray<BoundExpression> dimensionArgument = ImmutableArray.Create(
1122indices: ImmutableArray.Create((BoundExpression[])boundPositionVar),
1149ImmutableArray<BoundExpression> dimensionArgument = ImmutableArray.Create(
1196outerLocals: ImmutableArray.Create(positionVar[dimension]),
1210ImmutableArray.Create(arrayVar).Concat(upperVar.AsImmutableOrNull()),
1211ImmutableArray.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\SyntheticBoundNodeFactory.cs (16)
468return Block(ImmutableArray.Create(statements));
473return Block(locals, ImmutableArray.Create(statements));
483return Block(locals, localFunctions, ImmutableArray.Create(statements));
513return new BoundStatementList(Syntax, ImmutableArray.Create(first, second)) { WasCompilerGenerated = true };
865return Call(receiver, method, ImmutableArray.Create(arg0), useStrictArgumentRefKinds);
870return Call(receiver, method, ImmutableArray.Create(arg0, arg1), useStrictArgumentRefKinds);
875return Call(receiver, method, ImmutableArray.Create<BoundExpression>(args));
879=> Call(receiver, WellKnownMethod(method), ImmutableArray.Create(arg0));
1026return MakeSequence(ImmutableArray.Create<LocalSymbol>(temp), parts);
1094=> SwitchSection(ImmutableArray.Create(value), statements);
1097=> new(values, ImmutableArray.Create(statements));
1557arrayEmpty = arrayEmpty.Construct(ImmutableArray.Create(elementType));
1569ImmutableArray.Create<BoundExpression>(Literal(elements.Length)),
1578ImmutableArray.Create<BoundExpression>(length),
1614return new BoundCatchBlock(Syntax, ImmutableArray.Create(local), source, source.Type, exceptionFilterPrologueOpt: null, exceptionFilterOpt: null, body: block, isSynthesizedAsyncCatchAll: false);
1864sideEffects: ImmutableArray.Create<BoundExpression>(nonNullValue),
Operations\CSharpOperationFactory.cs (7)
409return ImmutableArray.Create(CreateVariableDeclaratorInternal((BoundLocalDeclaration)declaration, (declarationSyntax as VariableDeclarationSyntax)?.Variables[0] ?? declarationSyntax));
1711return new ArrayElementReferenceOperation(instance, ImmutableArray.Create(argument), _semanticModel, syntax, type, isImplicit);
1792ImmutableArray<IFieldSymbol> initializedFields = ImmutableArray.Create<IFieldSymbol>(boundFieldEqualsValue.Field.GetPublicSymbol());
1801ImmutableArray<IPropertySymbol> initializedProperties = ImmutableArray.Create<IPropertySymbol>(boundPropertyEqualsValue.Property.GetPublicSymbol());
2213return new VariableDeclarationGroupOperation(ImmutableArray.Create(multiVariableDeclaration), _semanticModel, varStatement, isImplicit);
2235var variableDeclaration = new VariableDeclarationGroupOperation(ImmutableArray.Create(multiVariableDeclaration), _semanticModel, declarationGroupSyntax, isImplicit);
2950propertySubpatterns: ImmutableArray.Create(result), declaredSymbol: null,
Symbols\AliasSymbol.cs (3)
76return new AliasSymbolFromResolvedTarget(targetSymbol, aliasToken.ValueText, containingSymbol, ImmutableArray.Create(aliasToken.GetLocation()), isExtern);
289: base(syntax.Alias!.Name.Identifier.ValueText, containingSymbol, ImmutableArray.Create(syntax.Alias!.Name.Identifier.GetLocation()), isExtern: false)
297: 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"),
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)
3138If(receiver IsNot Nothing, ImmutableArray.Create(receiver), ImmutableArray(Of BoundExpression).Empty),
3747ImmutableArray.Create(
3772Dim boundArguments = ImmutableArray.Create(Of BoundExpression)(arg)
3796boundArguments:=ImmutableArray.Create(Of BoundExpression)(arg),
3828ImmutableArray.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)
221ImmutableArray.Create(Of Binder)(intoBinder),
238ImmutableArray.Create(Of Binder)(intoBinder),
271ImmutableArray.Create(Of Binder)(intoBinder),
315ImmutableArray.Create(letSelectorParam))
345underlyingExpression = BadExpression(aggregate, ImmutableArray.Create(Of BoundExpression)(source, letSelectorLambda),
357ImmutableArray.Create(Of BoundExpression)(letSelectorLambda),
403ImmutableArray.Create(Of Binder)(firstSelectSelectorBinder, intoBinder),
433ImmutableArray.Create(selectSelectorParam))
540underlyingExpression = BadExpression(aggregate, ImmutableArray.Create(Of BoundExpression)(letOperator, selectSelectorLambda),
552ImmutableArray.Create(Of BoundExpression)(selectSelectorLambda),
561ImmutableArray.Create(Of Binder)(firstSelectSelectorBinder, intoBinder),
597ImmutableArray.Create(param))
623ImmutableArray.Create(Of BoundExpression)(selectorLambda),
661ImmutableArray.Create(param))
684boundCallOrBadExpression = BadExpression(clauseSyntax, ImmutableArray.Create(Of BoundExpression)(source, selectorLambda),
694ImmutableArray.Create(Of BoundExpression)(selectorLambda),
703ImmutableArray.Create(Of Binder)(selectorBinder),
780ImmutableArray.Create(Me),
798ImmutableArray.Create(param))
821boundCallOrBadExpression = BadExpression(variable, ImmutableArray.Create(Of BoundExpression)(source, selectorLambda),
840ImmutableArray.Create(Of BoundExpression)(selectorLambda),
849ImmutableArray.Create(Of Binder)(selectorBinder),
985ImmutableArray.Create(rangeVar),
987ImmutableArray.Create(Me),
995ImmutableArray.Create(Me),
1023ImmutableArray.Create(manySelectorParam))
1074ImmutableArray.Create(joinSelectorParamLeft, joinSelectorParamRight))
1091lambdaBinders = ImmutableArray.Create(Of Binder)(manySelectorBinder, joinSelectorBinder)
1119lambdaBinders = ImmutableArray.Create(Of Binder)(manySelectorBinder)
1136boundCallOrBadExpression = BadExpression(variable, ImmutableArray.Create(Of BoundExpression)(source, manySelectorLambda, joinSelectorLambda),
1156ImmutableArray.Create(Of BoundExpression)(manySelectorLambda, joinSelectorLambda),
1293ImmutableArray.Create(absorbingJoin.Binders.Last),
1307ImmutableArray.Create(absorbingJoin.Binders.Last),
1404ImmutableArray.Create(rangeVar),
1467ImmutableArray.Create(joinSelectorParamLeft, joinSelectorParamRight))
1485lambdaBinders = ImmutableArray.Create(Of Binder)(outerKeyBinder, innerKeyBinder, joinSelectorBinder)
1503lambdaBinders = ImmutableArray.Create(Of Binder)(outerKeyBinder, innerKeyBinder)
1518boundCallOrBadExpression = BadExpression(join, ImmutableArray.Create(Of BoundExpression)(outer, inner, outerKeyLambda, innerKeyLambda, joinSelectorLambda),
1533ImmutableArray.Create(Of BoundExpression)(inner, outerKeyLambda, innerKeyLambda, joinSelectorLambda),
1650ImmutableArray.Create(rangeVar),
1701boundCallOrBadExpression = BadExpression(groupJoin, ImmutableArray.Create(Of BoundExpression)(outer, inner, outerKeyLambda, innerKeyLambda, intoLambda),
1719ImmutableArray.Create(Of BoundExpression)(inner, outerKeyLambda, innerKeyLambda, intoLambda),
1728ImmutableArray.Create(Of Binder)(outerKeyBinder, innerKeyBinder, intoBinder),
1798lambdaBinders = ImmutableArray.Create(Of Binder)(keysLambdaBinder, intoBinder)
1801lambdaBinders = ImmutableArray.Create(Of Binder)(keysLambdaBinder, itemsLambdaBinder, intoBinder)
1808ImmutableArray.Create(Of BoundExpression)(source).AddRange(groupByArguments),
1869ImmutableArray.Create(itemsParam))
1913ImmutableArray.Create(keysParam))
2121ImmutableArray.Create(keyParam, groupParam))
2318ImmutableArray.Create(param))
2375boundCallOrBadExpression = BadExpression(operatorSyntax, ImmutableArray.Create(Of BoundExpression)(source, filterLambda),
2385ImmutableArray.Create(Of BoundExpression)(filterLambda),
2394ImmutableArray.Create(Of Binder)(filterBinder),
2483boundCallOrBadExpression = BadExpression(partition, ImmutableArray.Create(source, boundCount),
2493ImmutableArray.Create(boundCount),
2536ImmutableArray.Create(Me),
2553ImmutableArray.Create(param))
2572boundCallOrBadExpression = BadExpression(ordering, ImmutableArray.Create(Of BoundExpression)(sourceOrPreviousOrdering, keyLambda),
2606ImmutableArray.Create(Of BoundExpression)(keyLambda),
2625ImmutableArray.Create(Of Binder)(keyBinder),
2753declaredRangeVariables = ImmutableArray.Create(Of RangeVariableSymbol)(rangeVar)
2763declaredRangeVariables = ImmutableArray.Create(RangeVariableSymbol.CreateForErrorRecovery(Me, selectorSyntax, selector.Type))
2944declaredRangeVariables = ImmutableArray.Create(rangeVar)
3009declaredRangeVariables = ImmutableArray.Create(Of RangeVariableSymbol)(
3098declaredRangeVariables = ImmutableArray.Create(Of RangeVariableSymbol)(groupRangeVar)
3275ImmutableArray.Create(outerKeyParam))
3285ImmutableArray.Create(innerKeyParam))
3923ImmutableArray.Create(aggregationParam))
3947arguments = ImmutableArray.Create(Of BoundExpression)(aggregationLambda)
3955ImmutableArray.Create(m_GroupReference).AddRange(arguments),
3975ImmutableArray.Create(Of Binder)(aggregationBinder),
4233ImmutableArray.Create(variable), variableType,
4266ImmutableArray.Create(param))
4294ImmutableArray.Create(Of BoundExpression)(selectorLambda),
4304ImmutableArray.Create(Of Binder)(selectorBinder),
4393ImmutableArray.Create(Of TypeSymbol)(inferredType)),
4691childBoundNodes = 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)
225ImmutableArray.Create(Of BoundExpression)(flag, newFlagInstance, New BoundLiteral(syntax, ConstantValue.Nothing, flag.Type)),
292New BoundStatementList(syntax, ImmutableArray.Create(flagStateAssignTwo, rewrittenInitialization)),
304locals = ImmutableArray.Create(boundLockTakenLocal.LocalSymbol)
306statementsInTry = ImmutableArray.Create(boundMonitorEnterCall, conditionalValueInit)
310statementsInTry = ImmutableArray.Create(Of BoundStatement)(conditionalValueInit)
327ImmutableArray.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)
341Me.New(If((locationOpt Is Nothing), ImmutableArray(Of Location).Empty, ImmutableArray.Create(Of Location)(locationOpt)),
408Return TupleTypeSymbol.Create(If((locationOpt Is Nothing), ImmutableArray(Of Location).Empty, ImmutableArray.Create(Of Location)(locationOpt)),
559Dim namedTypeSymbol As NamedTypeSymbol = wellKnownType.Construct(ImmutableArray.Create(Of TypeSymbol)(elementTypes, (chainLength - 1) * (TupleTypeSymbol.RestPosition - 1), remainder))
568Dim typeArguments As ImmutableArray(Of TypeSymbol) = ImmutableArray.Create(Of TypeSymbol)(elementTypes, ([loop] - 1) * (TupleTypeSymbol.RestPosition - 1), TupleTypeSymbol.RestPosition - 1).Add(namedTypeSymbol)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\AddAnonymousTypeMemberName\VisualBasicAddAnonymousTypeMemberNameCodeFixProvider.vb (1)
28ImmutableArray.Create(BC36556)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\AddObsoleteAttribute\VisualBasicAddObsoleteAttributeCodeFixProvider.vb (1)
18ImmutableArray.Create(
src\roslyn\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\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\GenerateParameterizedMemberCodeFixProvider.vb (1)
49Return 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\roslyn\src\Analyzers\VisualBasic\Analyzers\NamingStyle\VisualBasicNamingStyleDiagnosticAnalyzer.vb (1)
15ImmutableArray.Create(
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\AddAnonymousTypeMemberName\VisualBasicAddAnonymousTypeMemberNameCodeFixProvider.vb (1)
28ImmutableArray.Create(BC36556)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\AddObsoleteAttribute\VisualBasicAddObsoleteAttributeCodeFixProvider.vb (1)
18ImmutableArray.Create(
src\roslyn\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\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\GenerateParameterizedMemberCodeFixProvider.vb (1)
49Return ImmutableArray.Create(BC30518, BC30519, BC30520, BC30521, BC30057, BC30112, BC30451, BC30455, BC30456, BC30401, BC30516, BC32016, BC32045, BC32087, BC36625, BC30107, BC30108, BC30109, BC30110, BC30111)
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (4)
3131 => ImmutableArray.Create(_item0),
3142 => ImmutableArray.Create(_item0, _item1),
3153 => ImmutableArray.Create(_item0, _item1, _item2),
3164 => ImmutableArray.Create(_item0, _item1, _item2, _item3),