132 references to Create
Microsoft.CodeAnalysis.CSharp (132)
Compilation\MemberSemanticModel.cs (1)
1201
IOperation operation = _operationFactory.Value.
Create
(highestBoundNode);
Operations\CSharpOperationFactory.cs (124)
346
builder.AddIfNotNull((TOperation)
Create
(node));
354
(IBlockOperation?)
Create
(boundNode.BlockBody),
355
(IBlockOperation?)
Create
(boundNode.ExpressionBody),
365
Create
(boundNode.Initializer),
366
(IBlockOperation?)
Create
(boundNode.BlockBody),
367
(IBlockOperation?)
Create
(boundNode.ExpressionBody),
389
IOperation operation =
Create
(childNode);
430
IOperation target =
Create
(boundDeconstructionAssignmentOperator.Left);
433
IOperation value =
Create
(boundDeconstructionAssignmentOperator.Right.Operand);
484
var pointer =
Create
(boundFunctionPointerInvocation.InvokedExpression);
492
Create
(boundUnconvertedAddressOf.Operand),
657
IOperation handlerValue =
Create
(boundEventAssignmentOperator.Argument);
731
IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)
Create
(boundObjectCreationExpression.InitializerExpressionOpt);
738
IOperation operand =
Create
(boundWithExpression.Receiver);
739
IObjectOrCollectionInitializerOperation initializer = (IObjectOrCollectionInitializerOperation)
Create
(boundWithExpression.InitializerExpression);
749
IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)
Create
(boundDynamicObjectCreationExpression.InitializerExpressionOpt);
772
return
Create
(receiver);
793
return
Create
(boundDynamicIndexerAccess.Receiver);
970
IOperation? instance =
Create
(receiver);
991
return
Create
(boundLambda);
997
IBlockOperation body = (IBlockOperation)
Create
(boundLambda.Body);
1005
IBlockOperation? body = (IBlockOperation?)
Create
(boundLocalFunctionStatement.Body);
1007
? (IBlockOperation?)
Create
(exprBody)
1074
return
Create
(boundOperand);
1087
return
Create
(boundOperand);
1133
:
Create
(correctedConversionNode.Operand);
1141
IOperation operand =
Create
(boundAsOperator.Operand);
1173
IOperation value =
Create
(boundIsOperator.Operand);
1207
IArrayInitializerOperation? arrayInitializer = (IArrayInitializerOperation?)
Create
(boundArrayCreation.InitializerOpt);
1270
var collection =
Create
(element.Expression);
1334
IOperation target =
Create
(boundAssignmentOperator.Left);
1335
IOperation value =
Create
(boundAssignmentOperator.Right);
1348
IObjectOrCollectionInitializerOperation initializer = (IObjectOrCollectionInitializerOperation)
Create
(boundAssignmentOperator.Right);
1357
IOperation target =
Create
(boundCompoundAssignmentOperator.Left);
1358
IOperation value =
Create
(boundCompoundAssignmentOperator.Right);
1391
IOperation target =
Create
(boundIncrementOperator.Operand);
1415
IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)
Create
(boundNewT.InitializerExpressionOpt);
1424
IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)
Create
(creation.InitializerExpressionOpt);
1434
IOperation operand =
Create
(boundUnaryOperator.Operand);
1469
left ??=
Create
(currentBinary.Left);
1470
IOperation right =
Create
(currentBinary.Right);
1563
IOperation left =
Create
(boundTupleBinaryOperator.Left);
1564
IOperation right =
Create
(boundTupleBinaryOperator.Right);
1574
IOperation condition =
Create
(boundConditionalOperator.Condition);
1575
IOperation whenTrue =
Create
(boundConditionalOperator.Consequence);
1576
IOperation whenFalse =
Create
(boundConditionalOperator.Alternative);
1587
IOperation value =
Create
(boundNullCoalescingOperator.LeftOperand);
1588
IOperation whenNull =
Create
(boundNullCoalescingOperator.RightOperand);
1606
IOperation target =
Create
(boundNode.LeftOperand);
1607
IOperation value =
Create
(boundNode.RightOperand);
1617
IOperation awaitedValue =
Create
(boundAwaitExpression.Expression);
1626
IOperation arrayReference =
Create
(boundArrayAccess.Expression);
1637
IOperation instance =
Create
(boundIndexerAccess.Receiver);
1638
IOperation argument =
Create
(boundIndexerAccess.Argument);
1659
IOperation arrayReference =
Create
(boundInlineArrayAccess.Expression);
1660
IOperation argument =
Create
(boundInlineArrayAccess.Argument);
1670
IOperation argument =
Create
(boundNameOfOperator.Argument);
1680
IOperation expression =
Create
(boundThrowExpression.Expression);
1689
IOperation reference =
Create
(boundAddressOfOperator.Operand);
1707
IOperation operation =
Create
(boundConditionalAccess.Receiver);
1708
IOperation whenNotNull =
Create
(boundConditionalAccess.AccessExpression);
1727
IOperation value =
Create
(boundFieldEqualsValue.Value);
1736
IOperation value =
Create
(boundPropertyEqualsValue.Value);
1745
IOperation value =
Create
(boundParameterEqualsValue.Value);
1819
whenFalse =
Create
(alternative);
1828
IOperation condition =
Create
(boundIfStatement.Condition);
1829
IOperation whenTrue =
Create
(boundIfStatement.Consequence);
1846
IOperation condition =
Create
(boundWhileStatement.Condition);
1847
IOperation body =
Create
(boundWhileStatement.Body);
1860
IOperation condition =
Create
(boundDoStatement.Condition);
1861
IOperation body =
Create
(boundDoStatement.Body);
1875
IOperation? condition =
Create
(boundForStatement.Condition);
1877
IOperation body =
Create
(boundForStatement.Body);
1957
return
Create
(boundForEachStatement.DeconstructionOpt.DeconstructionAssignment.Left);
1961
return
Create
(boundForEachStatement.IterationErrorExpressionOpt);
1977
IOperation collection =
Create
(boundForEachStatement.EnumeratorInfoOpt?.InlineArraySpanType is null or WellKnownType.Unknown ||
1982
IOperation body =
Create
(boundForEachStatement.Body);
1997
var body = (IBlockOperation)
Create
(boundTryStatement.TryBlock);
1999
var @finally = (IBlockOperation?)
Create
(boundTryStatement.FinallyBlockOpt);
2010
IOperation? filter =
Create
(boundCatchBlock.ExceptionFilterOpt);
2011
IBlockOperation handler = (IBlockOperation)
Create
(boundCatchBlock.Body);
2021
IVariableDeclarationGroupOperation variables = (IVariableDeclarationGroupOperation)
Create
(boundFixedStatement.Declarations);
2022
IOperation body =
Create
(boundFixedStatement.Body);
2033
IOperation resources =
Create
(boundUsingStatement.DeclarationsOpt ?? (BoundNode)boundUsingStatement.ExpressionOpt!);
2034
IOperation body =
Create
(boundUsingStatement.Body);
2049
IOperation? thrownObject =
Create
(boundThrowStatement.ExpressionOpt);
2058
IOperation? returnedValue =
Create
(boundReturnStatement.ExpressionOpt);
2066
IOperation returnedValue =
Create
(boundYieldReturnStatement.Expression);
2081
IOperation lockedValue =
Create
(boundLockStatement.Argument);
2082
IOperation body =
Create
(boundLockStatement.Body);
2200
IOperation labeledStatement =
Create
(boundLabeledStatement.Body);
2216
IOperation expression =
Create
(boundExpressionStatement.Expression);
2282
builder.Add((IInterpolatedStringContentOperation)
Create
(part));
2365
IOperation valueOperation =
Create
(value);
2366
IOperation? alignmentOperation =
Create
(alignment);
2367
IOperation? formatOperation =
Create
(format);
2401
IOperation expression =
Create
(boundStringInsert.Value);
2402
IOperation? alignment =
Create
(boundStringInsert.Alignment);
2403
IOperation? formatString =
Create
(boundStringInsert.Format);
2422
var construction =
Create
(interpolationData.Construction);
2517
IOperation value =
Create
(boundConstantPattern.Value);
2528
IOperation value =
Create
(boundRelationalPattern.Value);
2610
pattern: (IPatternOperation?)
Create
(boundNode.Pattern),
2635
(IPatternOperation)
Create
(boundNegatedPattern.Negated),
2647
return createOperation(this, boundBinaryPattern, left: (IPatternOperation)
Create
(boundBinaryPattern.Left));
2661
var result = (IPatternOperation)
Create
(current.Left);
2675
(IPatternOperation)@this.
Create
(boundBinaryPattern.Right),
2686
IOperation value =
Create
(boundSwitchStatement.Expression);
2706
IOperation value =
Create
(boundSwitchExpression.Expression);
2732
IPatternOperation pattern = (IPatternOperation)
Create
(boundSwitchExpressionArm.Pattern);
2733
IOperation? guard =
Create
(boundSwitchExpressionArm.WhenClause);
2734
IOperation value =
Create
(boundSwitchExpressionArm.Value);
2761
return new SingleValueCaseClauseOperation(
Create
(cp.Value), label.GetPublicSymbol(), _semanticModel, syntax, isImplicit);
2765
IPatternOperation pattern = (IPatternOperation)
Create
(boundSwitchLabel.Pattern);
2766
IOperation? guard =
Create
(boundSwitchLabel.WhenClause);
2773
IOperation value =
Create
(boundIsPatternExpression.Expression);
2774
IPatternOperation pattern = (IPatternOperation)
Create
(boundIsPatternExpression.Pattern);
2786
return
Create
(boundQueryClause.Value);
2789
IOperation operation =
Create
(boundQueryClause.Value);
2799
return
Create
(boundRangeVariable.Value);
2816
Create
(boundIndex.Operand),
2830
IOperation? left =
Create
(boundRange.LeftOperandOpt);
2831
IOperation? right =
Create
(boundRange.RightOperandOpt);
2858
IPatternOperation pattern = (IPatternOperation)
Create
(subpattern.Pattern);
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]);