137 references to Create
Microsoft.CodeAnalysis.CSharp (137)
Compilation\MemberSemanticModel.cs (1)
1247
IOperation operation = _operationFactory.Value.
Create
(highestBoundNode);
Operations\CSharpOperationFactory_Methods.cs (7)
39
IOperation value =
Create
(expression is BoundConversion { IsParamsArrayOrCollection: true } conversion ? conversion.Operand : expression);
74
IOperation value =
Create
(boundLocalDeclaration.InitializerOpt);
111
return
Create
(instance);
157
return
Create
(boundConversion.Operand);
175
return
Create
(boundDelegateCreationExpression.Argument);
190
return
Create
(initializedMember);
421
IOperation value =
Create
(arguments[i]);
Operations\CSharpOperationFactory.cs (129)
353
builder.AddIfNotNull((TOperation)
Create
(node));
361
(IBlockOperation?)
Create
(boundNode.BlockBody),
362
(IBlockOperation?)
Create
(boundNode.ExpressionBody),
372
Create
(boundNode.Initializer),
373
(IBlockOperation?)
Create
(boundNode.BlockBody),
374
(IBlockOperation?)
Create
(boundNode.ExpressionBody),
396
IOperation operation =
Create
(childNode);
437
IOperation target =
Create
(boundDeconstructionAssignmentOperator.Left);
440
IOperation value =
Create
(boundDeconstructionAssignmentOperator.Right.Operand);
491
var pointer =
Create
(boundFunctionPointerInvocation.InvokedExpression);
499
Create
(boundUnconvertedAddressOf.Operand),
664
IOperation handlerValue =
Create
(boundEventAssignmentOperator.Argument);
738
IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)
Create
(boundObjectCreationExpression.InitializerExpressionOpt);
753
IOperation operand =
Create
(boundWithExpression.Receiver);
754
IObjectOrCollectionInitializerOperation initializer = (IObjectOrCollectionInitializerOperation)
Create
(boundWithExpression.InitializerExpression);
764
IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)
Create
(boundDynamicObjectCreationExpression.InitializerExpressionOpt);
787
return
Create
(receiver);
808
return
Create
(boundDynamicIndexerAccess.Receiver);
985
IOperation? instance =
Create
(receiver);
1006
return
Create
(boundLambda);
1012
IBlockOperation body = (IBlockOperation)
Create
(boundLambda.Body);
1020
IBlockOperation? body = (IBlockOperation?)
Create
(boundLocalFunctionStatement.Body);
1022
? (IBlockOperation?)
Create
(exprBody)
1133
return
Create
(boundOperand);
1146
return
Create
(boundOperand);
1192
:
Create
(correctedConversionNode.Operand);
1200
IOperation operand =
Create
(boundAsOperator.Operand);
1232
IOperation value =
Create
(boundIsOperator.Operand);
1266
IArrayInitializerOperation? arrayInitializer = (IArrayInitializerOperation?)
Create
(boundArrayCreation.InitializerOpt);
1356
Create
(Binder.GetUnderlyingCollectionExpressionElement(expr, (BoundExpression)element, throwOnErrors: false));
1364
var collection =
Create
(element.Expression);
1428
IOperation target =
Create
(boundAssignmentOperator.Left);
1429
IOperation value =
Create
(boundAssignmentOperator.Right);
1442
IObjectOrCollectionInitializerOperation initializer = (IObjectOrCollectionInitializerOperation)
Create
(boundAssignmentOperator.Right);
1451
IOperation target =
Create
(boundCompoundAssignmentOperator.Left);
1452
IOperation value =
Create
(boundCompoundAssignmentOperator.Right);
1485
IOperation target =
Create
(boundIncrementOperator.Operand);
1509
IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)
Create
(boundNewT.InitializerExpressionOpt);
1518
IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)
Create
(creation.InitializerExpressionOpt);
1528
IOperation operand =
Create
(boundUnaryOperator.Operand);
1563
left ??=
Create
(currentBinary.Left);
1564
IOperation right =
Create
(currentBinary.Right);
1648
IOperation left =
Create
(boundTupleBinaryOperator.Left);
1649
IOperation right =
Create
(boundTupleBinaryOperator.Right);
1659
IOperation condition =
Create
(boundConditionalOperator.Condition);
1660
IOperation whenTrue =
Create
(boundConditionalOperator.Consequence);
1661
IOperation whenFalse =
Create
(boundConditionalOperator.Alternative);
1672
IOperation value =
Create
(boundNullCoalescingOperator.LeftOperand);
1673
IOperation whenNull =
Create
(boundNullCoalescingOperator.RightOperand);
1691
IOperation target =
Create
(boundNode.LeftOperand);
1692
IOperation value =
Create
(boundNode.RightOperand);
1702
IOperation awaitedValue =
Create
(boundAwaitExpression.Expression);
1711
IOperation arrayReference =
Create
(boundArrayAccess.Expression);
1722
IOperation instance =
Create
(boundIndexerAccess.Receiver);
1723
IOperation argument =
Create
(boundIndexerAccess.Argument);
1744
IOperation arrayReference =
Create
(boundInlineArrayAccess.Expression);
1745
IOperation argument =
Create
(boundInlineArrayAccess.Argument);
1755
IOperation argument =
Create
(boundNameOfOperator.Argument);
1765
IOperation expression =
Create
(boundThrowExpression.Expression);
1774
IOperation reference =
Create
(boundAddressOfOperator.Operand);
1792
IOperation operation =
Create
(boundConditionalAccess.Receiver);
1793
IOperation whenNotNull =
Create
(boundConditionalAccess.AccessExpression);
1812
IOperation value =
Create
(boundFieldEqualsValue.Value);
1821
IOperation value =
Create
(boundPropertyEqualsValue.Value);
1830
IOperation value =
Create
(boundParameterEqualsValue.Value);
1904
whenFalse =
Create
(alternative);
1913
IOperation condition =
Create
(boundIfStatement.Condition);
1914
IOperation whenTrue =
Create
(boundIfStatement.Consequence);
1931
IOperation condition =
Create
(boundWhileStatement.Condition);
1932
IOperation body =
Create
(boundWhileStatement.Body);
1945
IOperation condition =
Create
(boundDoStatement.Condition);
1946
IOperation body =
Create
(boundDoStatement.Body);
1960
IOperation? condition =
Create
(boundForStatement.Condition);
1962
IOperation body =
Create
(boundForStatement.Body);
2042
return
Create
(boundForEachStatement.DeconstructionOpt.DeconstructionAssignment.Left);
2046
return
Create
(boundForEachStatement.IterationErrorExpressionOpt);
2062
IOperation collection =
Create
(boundForEachStatement.EnumeratorInfoOpt?.InlineArraySpanType is null or WellKnownType.Unknown ||
2067
IOperation body =
Create
(boundForEachStatement.Body);
2082
var body = (IBlockOperation)
Create
(boundTryStatement.TryBlock);
2084
var @finally = (IBlockOperation?)
Create
(boundTryStatement.FinallyBlockOpt);
2095
IOperation? filter =
Create
(boundCatchBlock.ExceptionFilterOpt);
2096
IBlockOperation handler = (IBlockOperation)
Create
(boundCatchBlock.Body);
2106
IVariableDeclarationGroupOperation variables = (IVariableDeclarationGroupOperation)
Create
(boundFixedStatement.Declarations);
2107
IOperation body =
Create
(boundFixedStatement.Body);
2118
IOperation resources =
Create
(boundUsingStatement.DeclarationsOpt ?? (BoundNode)boundUsingStatement.ExpressionOpt!);
2119
IOperation body =
Create
(boundUsingStatement.Body);
2134
IOperation? thrownObject =
Create
(boundThrowStatement.ExpressionOpt);
2143
IOperation? returnedValue =
Create
(boundReturnStatement.ExpressionOpt);
2151
IOperation returnedValue =
Create
(boundYieldReturnStatement.Expression);
2166
IOperation lockedValue =
Create
(boundLockStatement.Argument);
2167
IOperation body =
Create
(boundLockStatement.Body);
2285
IOperation labeledStatement =
Create
(boundLabeledStatement.Body);
2301
IOperation expression =
Create
(boundExpressionStatement.Expression);
2367
builder.Add((IInterpolatedStringContentOperation)
Create
(part));
2450
IOperation valueOperation =
Create
(value);
2451
IOperation? alignmentOperation =
Create
(alignment);
2452
IOperation? formatOperation =
Create
(format);
2486
IOperation expression =
Create
(boundStringInsert.Value);
2487
IOperation? alignment =
Create
(boundStringInsert.Alignment);
2488
IOperation? formatString =
Create
(boundStringInsert.Format);
2507
var construction =
Create
(interpolationData.Construction);
2549
return new InterpolatedStringAppendOperation(@this.
Create
(part), operationKind, @this._semanticModel, part.Syntax, isImplicit: true);
2602
IOperation value =
Create
(boundConstantPattern.Value);
2613
IOperation value =
Create
(boundRelationalPattern.Value);
2642
? deconstructions.SelectAsArray((p, fac) => (IPatternOperation)fac.
Create
(p.Pattern), this)
2663
? subpatterns.SelectAsArray((p, fac) => (IPatternOperation)fac.
Create
(p.Pattern), this)
2695
pattern: (IPatternOperation?)
Create
(boundNode.Pattern),
2708
patterns: boundNode.Subpatterns.SelectAsArray((p, fac) => (IPatternOperation)fac.
Create
(p), this),
2720
(IPatternOperation)
Create
(boundNegatedPattern.Negated),
2732
return createOperation(this, boundBinaryPattern, left: (IPatternOperation)
Create
(boundBinaryPattern.Left));
2746
var result = (IPatternOperation)
Create
(current.Left);
2760
(IPatternOperation)@this.
Create
(boundBinaryPattern.Right),
2771
IOperation value =
Create
(boundSwitchStatement.Expression);
2791
IOperation value =
Create
(boundSwitchExpression.Expression);
2817
IPatternOperation pattern = (IPatternOperation)
Create
(boundSwitchExpressionArm.Pattern);
2818
IOperation? guard =
Create
(boundSwitchExpressionArm.WhenClause);
2819
IOperation value =
Create
(boundSwitchExpressionArm.Value);
2846
return new SingleValueCaseClauseOperation(
Create
(cp.Value), label.GetPublicSymbol(), _semanticModel, syntax, isImplicit);
2850
IPatternOperation pattern = (IPatternOperation)
Create
(boundSwitchLabel.Pattern);
2851
IOperation? guard =
Create
(boundSwitchLabel.WhenClause);
2858
IOperation value =
Create
(boundIsPatternExpression.Expression);
2859
IPatternOperation pattern = (IPatternOperation)
Create
(boundIsPatternExpression.Pattern);
2871
return
Create
(boundQueryClause.Value);
2874
IOperation operation =
Create
(boundQueryClause.Value);
2884
return
Create
(boundRangeVariable.Value);
2901
Create
(boundIndex.Operand),
2915
IOperation? left =
Create
(boundRange.LeftOperandOpt);
2916
IOperation? right =
Create
(boundRange.RightOperandOpt);
2943
IPatternOperation pattern = (IPatternOperation)
Create
(subpattern.Pattern);