137 references to Create
Microsoft.CodeAnalysis.CSharp (137)
Compilation\MemberSemanticModel.cs (1)
1240
IOperation operation = _operationFactory.Value.
Create
(highestBoundNode);
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)
1089
return
Create
(boundOperand);
1102
return
Create
(boundOperand);
1148
:
Create
(correctedConversionNode.Operand);
1156
IOperation operand =
Create
(boundAsOperator.Operand);
1188
IOperation value =
Create
(boundIsOperator.Operand);
1222
IArrayInitializerOperation? arrayInitializer = (IArrayInitializerOperation?)
Create
(boundArrayCreation.InitializerOpt);
1312
Create
(Binder.GetUnderlyingCollectionExpressionElement(expr, (BoundExpression)element, throwOnErrors: false));
1320
var collection =
Create
(element.Expression);
1384
IOperation target =
Create
(boundAssignmentOperator.Left);
1385
IOperation value =
Create
(boundAssignmentOperator.Right);
1398
IObjectOrCollectionInitializerOperation initializer = (IObjectOrCollectionInitializerOperation)
Create
(boundAssignmentOperator.Right);
1407
IOperation target =
Create
(boundCompoundAssignmentOperator.Left);
1408
IOperation value =
Create
(boundCompoundAssignmentOperator.Right);
1441
IOperation target =
Create
(boundIncrementOperator.Operand);
1465
IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)
Create
(boundNewT.InitializerExpressionOpt);
1474
IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)
Create
(creation.InitializerExpressionOpt);
1484
IOperation operand =
Create
(boundUnaryOperator.Operand);
1519
left ??=
Create
(currentBinary.Left);
1520
IOperation right =
Create
(currentBinary.Right);
1604
IOperation left =
Create
(boundTupleBinaryOperator.Left);
1605
IOperation right =
Create
(boundTupleBinaryOperator.Right);
1615
IOperation condition =
Create
(boundConditionalOperator.Condition);
1616
IOperation whenTrue =
Create
(boundConditionalOperator.Consequence);
1617
IOperation whenFalse =
Create
(boundConditionalOperator.Alternative);
1628
IOperation value =
Create
(boundNullCoalescingOperator.LeftOperand);
1629
IOperation whenNull =
Create
(boundNullCoalescingOperator.RightOperand);
1647
IOperation target =
Create
(boundNode.LeftOperand);
1648
IOperation value =
Create
(boundNode.RightOperand);
1658
IOperation awaitedValue =
Create
(boundAwaitExpression.Expression);
1667
IOperation arrayReference =
Create
(boundArrayAccess.Expression);
1678
IOperation instance =
Create
(boundIndexerAccess.Receiver);
1679
IOperation argument =
Create
(boundIndexerAccess.Argument);
1700
IOperation arrayReference =
Create
(boundInlineArrayAccess.Expression);
1701
IOperation argument =
Create
(boundInlineArrayAccess.Argument);
1711
IOperation argument =
Create
(boundNameOfOperator.Argument);
1721
IOperation expression =
Create
(boundThrowExpression.Expression);
1730
IOperation reference =
Create
(boundAddressOfOperator.Operand);
1748
IOperation operation =
Create
(boundConditionalAccess.Receiver);
1749
IOperation whenNotNull =
Create
(boundConditionalAccess.AccessExpression);
1768
IOperation value =
Create
(boundFieldEqualsValue.Value);
1777
IOperation value =
Create
(boundPropertyEqualsValue.Value);
1786
IOperation value =
Create
(boundParameterEqualsValue.Value);
1860
whenFalse =
Create
(alternative);
1869
IOperation condition =
Create
(boundIfStatement.Condition);
1870
IOperation whenTrue =
Create
(boundIfStatement.Consequence);
1887
IOperation condition =
Create
(boundWhileStatement.Condition);
1888
IOperation body =
Create
(boundWhileStatement.Body);
1901
IOperation condition =
Create
(boundDoStatement.Condition);
1902
IOperation body =
Create
(boundDoStatement.Body);
1916
IOperation? condition =
Create
(boundForStatement.Condition);
1918
IOperation body =
Create
(boundForStatement.Body);
1998
return
Create
(boundForEachStatement.DeconstructionOpt.DeconstructionAssignment.Left);
2002
return
Create
(boundForEachStatement.IterationErrorExpressionOpt);
2018
IOperation collection =
Create
(boundForEachStatement.EnumeratorInfoOpt?.InlineArraySpanType is null or WellKnownType.Unknown ||
2023
IOperation body =
Create
(boundForEachStatement.Body);
2038
var body = (IBlockOperation)
Create
(boundTryStatement.TryBlock);
2040
var @finally = (IBlockOperation?)
Create
(boundTryStatement.FinallyBlockOpt);
2051
IOperation? filter =
Create
(boundCatchBlock.ExceptionFilterOpt);
2052
IBlockOperation handler = (IBlockOperation)
Create
(boundCatchBlock.Body);
2062
IVariableDeclarationGroupOperation variables = (IVariableDeclarationGroupOperation)
Create
(boundFixedStatement.Declarations);
2063
IOperation body =
Create
(boundFixedStatement.Body);
2074
IOperation resources =
Create
(boundUsingStatement.DeclarationsOpt ?? (BoundNode)boundUsingStatement.ExpressionOpt!);
2075
IOperation body =
Create
(boundUsingStatement.Body);
2090
IOperation? thrownObject =
Create
(boundThrowStatement.ExpressionOpt);
2099
IOperation? returnedValue =
Create
(boundReturnStatement.ExpressionOpt);
2107
IOperation returnedValue =
Create
(boundYieldReturnStatement.Expression);
2122
IOperation lockedValue =
Create
(boundLockStatement.Argument);
2123
IOperation body =
Create
(boundLockStatement.Body);
2241
IOperation labeledStatement =
Create
(boundLabeledStatement.Body);
2257
IOperation expression =
Create
(boundExpressionStatement.Expression);
2323
builder.Add((IInterpolatedStringContentOperation)
Create
(part));
2406
IOperation valueOperation =
Create
(value);
2407
IOperation? alignmentOperation =
Create
(alignment);
2408
IOperation? formatOperation =
Create
(format);
2442
IOperation expression =
Create
(boundStringInsert.Value);
2443
IOperation? alignment =
Create
(boundStringInsert.Alignment);
2444
IOperation? formatString =
Create
(boundStringInsert.Format);
2463
var construction =
Create
(interpolationData.Construction);
2505
return new InterpolatedStringAppendOperation(@this.
Create
(part), operationKind, @this._semanticModel, part.Syntax, isImplicit: true);
2558
IOperation value =
Create
(boundConstantPattern.Value);
2569
IOperation value =
Create
(boundRelationalPattern.Value);
2598
? deconstructions.SelectAsArray((p, fac) => (IPatternOperation)fac.
Create
(p.Pattern), this)
2619
? subpatterns.SelectAsArray((p, fac) => (IPatternOperation)fac.
Create
(p.Pattern), this)
2651
pattern: (IPatternOperation?)
Create
(boundNode.Pattern),
2664
patterns: boundNode.Subpatterns.SelectAsArray((p, fac) => (IPatternOperation)fac.
Create
(p), this),
2676
(IPatternOperation)
Create
(boundNegatedPattern.Negated),
2688
return createOperation(this, boundBinaryPattern, left: (IPatternOperation)
Create
(boundBinaryPattern.Left));
2702
var result = (IPatternOperation)
Create
(current.Left);
2716
(IPatternOperation)@this.
Create
(boundBinaryPattern.Right),
2727
IOperation value =
Create
(boundSwitchStatement.Expression);
2747
IOperation value =
Create
(boundSwitchExpression.Expression);
2773
IPatternOperation pattern = (IPatternOperation)
Create
(boundSwitchExpressionArm.Pattern);
2774
IOperation? guard =
Create
(boundSwitchExpressionArm.WhenClause);
2775
IOperation value =
Create
(boundSwitchExpressionArm.Value);
2802
return new SingleValueCaseClauseOperation(
Create
(cp.Value), label.GetPublicSymbol(), _semanticModel, syntax, isImplicit);
2806
IPatternOperation pattern = (IPatternOperation)
Create
(boundSwitchLabel.Pattern);
2807
IOperation? guard =
Create
(boundSwitchLabel.WhenClause);
2814
IOperation value =
Create
(boundIsPatternExpression.Expression);
2815
IPatternOperation pattern = (IPatternOperation)
Create
(boundIsPatternExpression.Pattern);
2827
return
Create
(boundQueryClause.Value);
2830
IOperation operation =
Create
(boundQueryClause.Value);
2840
return
Create
(boundRangeVariable.Value);
2857
Create
(boundIndex.Operand),
2871
IOperation? left =
Create
(boundRange.LeftOperandOpt);
2872
IOperation? right =
Create
(boundRange.RightOperandOpt);
2899
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]);