137 references to Create
Microsoft.CodeAnalysis.CSharp (137)
Compilation\MemberSemanticModel.cs (1)
1240
IOperation operation = _operationFactory.Value.
Create
(highestBoundNode);
Operations\CSharpOperationFactory.cs (129)
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);
1262
Create
(Binder.GetUnderlyingCollectionExpressionElement(expr, (BoundExpression)element, throwOnErrors: false));
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);
1554
IOperation left =
Create
(boundTupleBinaryOperator.Left);
1555
IOperation right =
Create
(boundTupleBinaryOperator.Right);
1565
IOperation condition =
Create
(boundConditionalOperator.Condition);
1566
IOperation whenTrue =
Create
(boundConditionalOperator.Consequence);
1567
IOperation whenFalse =
Create
(boundConditionalOperator.Alternative);
1578
IOperation value =
Create
(boundNullCoalescingOperator.LeftOperand);
1579
IOperation whenNull =
Create
(boundNullCoalescingOperator.RightOperand);
1597
IOperation target =
Create
(boundNode.LeftOperand);
1598
IOperation value =
Create
(boundNode.RightOperand);
1608
IOperation awaitedValue =
Create
(boundAwaitExpression.Expression);
1617
IOperation arrayReference =
Create
(boundArrayAccess.Expression);
1628
IOperation instance =
Create
(boundIndexerAccess.Receiver);
1629
IOperation argument =
Create
(boundIndexerAccess.Argument);
1650
IOperation arrayReference =
Create
(boundInlineArrayAccess.Expression);
1651
IOperation argument =
Create
(boundInlineArrayAccess.Argument);
1661
IOperation argument =
Create
(boundNameOfOperator.Argument);
1671
IOperation expression =
Create
(boundThrowExpression.Expression);
1680
IOperation reference =
Create
(boundAddressOfOperator.Operand);
1698
IOperation operation =
Create
(boundConditionalAccess.Receiver);
1699
IOperation whenNotNull =
Create
(boundConditionalAccess.AccessExpression);
1718
IOperation value =
Create
(boundFieldEqualsValue.Value);
1727
IOperation value =
Create
(boundPropertyEqualsValue.Value);
1736
IOperation value =
Create
(boundParameterEqualsValue.Value);
1810
whenFalse =
Create
(alternative);
1819
IOperation condition =
Create
(boundIfStatement.Condition);
1820
IOperation whenTrue =
Create
(boundIfStatement.Consequence);
1837
IOperation condition =
Create
(boundWhileStatement.Condition);
1838
IOperation body =
Create
(boundWhileStatement.Body);
1851
IOperation condition =
Create
(boundDoStatement.Condition);
1852
IOperation body =
Create
(boundDoStatement.Body);
1866
IOperation? condition =
Create
(boundForStatement.Condition);
1868
IOperation body =
Create
(boundForStatement.Body);
1948
return
Create
(boundForEachStatement.DeconstructionOpt.DeconstructionAssignment.Left);
1952
return
Create
(boundForEachStatement.IterationErrorExpressionOpt);
1968
IOperation collection =
Create
(boundForEachStatement.EnumeratorInfoOpt?.InlineArraySpanType is null or WellKnownType.Unknown ||
1973
IOperation body =
Create
(boundForEachStatement.Body);
1988
var body = (IBlockOperation)
Create
(boundTryStatement.TryBlock);
1990
var @finally = (IBlockOperation?)
Create
(boundTryStatement.FinallyBlockOpt);
2001
IOperation? filter =
Create
(boundCatchBlock.ExceptionFilterOpt);
2002
IBlockOperation handler = (IBlockOperation)
Create
(boundCatchBlock.Body);
2012
IVariableDeclarationGroupOperation variables = (IVariableDeclarationGroupOperation)
Create
(boundFixedStatement.Declarations);
2013
IOperation body =
Create
(boundFixedStatement.Body);
2024
IOperation resources =
Create
(boundUsingStatement.DeclarationsOpt ?? (BoundNode)boundUsingStatement.ExpressionOpt!);
2025
IOperation body =
Create
(boundUsingStatement.Body);
2040
IOperation? thrownObject =
Create
(boundThrowStatement.ExpressionOpt);
2049
IOperation? returnedValue =
Create
(boundReturnStatement.ExpressionOpt);
2057
IOperation returnedValue =
Create
(boundYieldReturnStatement.Expression);
2072
IOperation lockedValue =
Create
(boundLockStatement.Argument);
2073
IOperation body =
Create
(boundLockStatement.Body);
2191
IOperation labeledStatement =
Create
(boundLabeledStatement.Body);
2207
IOperation expression =
Create
(boundExpressionStatement.Expression);
2273
builder.Add((IInterpolatedStringContentOperation)
Create
(part));
2356
IOperation valueOperation =
Create
(value);
2357
IOperation? alignmentOperation =
Create
(alignment);
2358
IOperation? formatOperation =
Create
(format);
2392
IOperation expression =
Create
(boundStringInsert.Value);
2393
IOperation? alignment =
Create
(boundStringInsert.Alignment);
2394
IOperation? formatString =
Create
(boundStringInsert.Format);
2413
var construction =
Create
(interpolationData.Construction);
2455
return new InterpolatedStringAppendOperation(@this.
Create
(part), operationKind, @this._semanticModel, part.Syntax, isImplicit: true);
2508
IOperation value =
Create
(boundConstantPattern.Value);
2519
IOperation value =
Create
(boundRelationalPattern.Value);
2548
? deconstructions.SelectAsArray((p, fac) => (IPatternOperation)fac.
Create
(p.Pattern), this)
2569
? subpatterns.SelectAsArray((p, fac) => (IPatternOperation)fac.
Create
(p.Pattern), this)
2601
pattern: (IPatternOperation?)
Create
(boundNode.Pattern),
2614
patterns: boundNode.Subpatterns.SelectAsArray((p, fac) => (IPatternOperation)fac.
Create
(p), this),
2626
(IPatternOperation)
Create
(boundNegatedPattern.Negated),
2638
return createOperation(this, boundBinaryPattern, left: (IPatternOperation)
Create
(boundBinaryPattern.Left));
2652
var result = (IPatternOperation)
Create
(current.Left);
2666
(IPatternOperation)@this.
Create
(boundBinaryPattern.Right),
2677
IOperation value =
Create
(boundSwitchStatement.Expression);
2697
IOperation value =
Create
(boundSwitchExpression.Expression);
2723
IPatternOperation pattern = (IPatternOperation)
Create
(boundSwitchExpressionArm.Pattern);
2724
IOperation? guard =
Create
(boundSwitchExpressionArm.WhenClause);
2725
IOperation value =
Create
(boundSwitchExpressionArm.Value);
2752
return new SingleValueCaseClauseOperation(
Create
(cp.Value), label.GetPublicSymbol(), _semanticModel, syntax, isImplicit);
2756
IPatternOperation pattern = (IPatternOperation)
Create
(boundSwitchLabel.Pattern);
2757
IOperation? guard =
Create
(boundSwitchLabel.WhenClause);
2764
IOperation value =
Create
(boundIsPatternExpression.Expression);
2765
IPatternOperation pattern = (IPatternOperation)
Create
(boundIsPatternExpression.Pattern);
2777
return
Create
(boundQueryClause.Value);
2780
IOperation operation =
Create
(boundQueryClause.Value);
2790
return
Create
(boundRangeVariable.Value);
2807
Create
(boundIndex.Operand),
2821
IOperation? left =
Create
(boundRange.LeftOperandOpt);
2822
IOperation? right =
Create
(boundRange.RightOperandOpt);
2849
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]);