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)
1114
return
Create
(boundOperand);
1127
return
Create
(boundOperand);
1173
:
Create
(correctedConversionNode.Operand);
1181
IOperation operand =
Create
(boundAsOperator.Operand);
1213
IOperation value =
Create
(boundIsOperator.Operand);
1247
IArrayInitializerOperation? arrayInitializer = (IArrayInitializerOperation?)
Create
(boundArrayCreation.InitializerOpt);
1337
Create
(Binder.GetUnderlyingCollectionExpressionElement(expr, (BoundExpression)element, throwOnErrors: false));
1345
var collection =
Create
(element.Expression);
1409
IOperation target =
Create
(boundAssignmentOperator.Left);
1410
IOperation value =
Create
(boundAssignmentOperator.Right);
1423
IObjectOrCollectionInitializerOperation initializer = (IObjectOrCollectionInitializerOperation)
Create
(boundAssignmentOperator.Right);
1432
IOperation target =
Create
(boundCompoundAssignmentOperator.Left);
1433
IOperation value =
Create
(boundCompoundAssignmentOperator.Right);
1466
IOperation target =
Create
(boundIncrementOperator.Operand);
1490
IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)
Create
(boundNewT.InitializerExpressionOpt);
1499
IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)
Create
(creation.InitializerExpressionOpt);
1509
IOperation operand =
Create
(boundUnaryOperator.Operand);
1544
left ??=
Create
(currentBinary.Left);
1545
IOperation right =
Create
(currentBinary.Right);
1629
IOperation left =
Create
(boundTupleBinaryOperator.Left);
1630
IOperation right =
Create
(boundTupleBinaryOperator.Right);
1640
IOperation condition =
Create
(boundConditionalOperator.Condition);
1641
IOperation whenTrue =
Create
(boundConditionalOperator.Consequence);
1642
IOperation whenFalse =
Create
(boundConditionalOperator.Alternative);
1653
IOperation value =
Create
(boundNullCoalescingOperator.LeftOperand);
1654
IOperation whenNull =
Create
(boundNullCoalescingOperator.RightOperand);
1672
IOperation target =
Create
(boundNode.LeftOperand);
1673
IOperation value =
Create
(boundNode.RightOperand);
1683
IOperation awaitedValue =
Create
(boundAwaitExpression.Expression);
1692
IOperation arrayReference =
Create
(boundArrayAccess.Expression);
1703
IOperation instance =
Create
(boundIndexerAccess.Receiver);
1704
IOperation argument =
Create
(boundIndexerAccess.Argument);
1725
IOperation arrayReference =
Create
(boundInlineArrayAccess.Expression);
1726
IOperation argument =
Create
(boundInlineArrayAccess.Argument);
1736
IOperation argument =
Create
(boundNameOfOperator.Argument);
1746
IOperation expression =
Create
(boundThrowExpression.Expression);
1755
IOperation reference =
Create
(boundAddressOfOperator.Operand);
1773
IOperation operation =
Create
(boundConditionalAccess.Receiver);
1774
IOperation whenNotNull =
Create
(boundConditionalAccess.AccessExpression);
1793
IOperation value =
Create
(boundFieldEqualsValue.Value);
1802
IOperation value =
Create
(boundPropertyEqualsValue.Value);
1811
IOperation value =
Create
(boundParameterEqualsValue.Value);
1885
whenFalse =
Create
(alternative);
1894
IOperation condition =
Create
(boundIfStatement.Condition);
1895
IOperation whenTrue =
Create
(boundIfStatement.Consequence);
1912
IOperation condition =
Create
(boundWhileStatement.Condition);
1913
IOperation body =
Create
(boundWhileStatement.Body);
1926
IOperation condition =
Create
(boundDoStatement.Condition);
1927
IOperation body =
Create
(boundDoStatement.Body);
1941
IOperation? condition =
Create
(boundForStatement.Condition);
1943
IOperation body =
Create
(boundForStatement.Body);
2023
return
Create
(boundForEachStatement.DeconstructionOpt.DeconstructionAssignment.Left);
2027
return
Create
(boundForEachStatement.IterationErrorExpressionOpt);
2043
IOperation collection =
Create
(boundForEachStatement.EnumeratorInfoOpt?.InlineArraySpanType is null or WellKnownType.Unknown ||
2048
IOperation body =
Create
(boundForEachStatement.Body);
2063
var body = (IBlockOperation)
Create
(boundTryStatement.TryBlock);
2065
var @finally = (IBlockOperation?)
Create
(boundTryStatement.FinallyBlockOpt);
2076
IOperation? filter =
Create
(boundCatchBlock.ExceptionFilterOpt);
2077
IBlockOperation handler = (IBlockOperation)
Create
(boundCatchBlock.Body);
2087
IVariableDeclarationGroupOperation variables = (IVariableDeclarationGroupOperation)
Create
(boundFixedStatement.Declarations);
2088
IOperation body =
Create
(boundFixedStatement.Body);
2099
IOperation resources =
Create
(boundUsingStatement.DeclarationsOpt ?? (BoundNode)boundUsingStatement.ExpressionOpt!);
2100
IOperation body =
Create
(boundUsingStatement.Body);
2115
IOperation? thrownObject =
Create
(boundThrowStatement.ExpressionOpt);
2124
IOperation? returnedValue =
Create
(boundReturnStatement.ExpressionOpt);
2132
IOperation returnedValue =
Create
(boundYieldReturnStatement.Expression);
2147
IOperation lockedValue =
Create
(boundLockStatement.Argument);
2148
IOperation body =
Create
(boundLockStatement.Body);
2266
IOperation labeledStatement =
Create
(boundLabeledStatement.Body);
2282
IOperation expression =
Create
(boundExpressionStatement.Expression);
2348
builder.Add((IInterpolatedStringContentOperation)
Create
(part));
2431
IOperation valueOperation =
Create
(value);
2432
IOperation? alignmentOperation =
Create
(alignment);
2433
IOperation? formatOperation =
Create
(format);
2467
IOperation expression =
Create
(boundStringInsert.Value);
2468
IOperation? alignment =
Create
(boundStringInsert.Alignment);
2469
IOperation? formatString =
Create
(boundStringInsert.Format);
2488
var construction =
Create
(interpolationData.Construction);
2530
return new InterpolatedStringAppendOperation(@this.
Create
(part), operationKind, @this._semanticModel, part.Syntax, isImplicit: true);
2583
IOperation value =
Create
(boundConstantPattern.Value);
2594
IOperation value =
Create
(boundRelationalPattern.Value);
2623
? deconstructions.SelectAsArray((p, fac) => (IPatternOperation)fac.
Create
(p.Pattern), this)
2644
? subpatterns.SelectAsArray((p, fac) => (IPatternOperation)fac.
Create
(p.Pattern), this)
2676
pattern: (IPatternOperation?)
Create
(boundNode.Pattern),
2689
patterns: boundNode.Subpatterns.SelectAsArray((p, fac) => (IPatternOperation)fac.
Create
(p), this),
2701
(IPatternOperation)
Create
(boundNegatedPattern.Negated),
2713
return createOperation(this, boundBinaryPattern, left: (IPatternOperation)
Create
(boundBinaryPattern.Left));
2727
var result = (IPatternOperation)
Create
(current.Left);
2741
(IPatternOperation)@this.
Create
(boundBinaryPattern.Right),
2752
IOperation value =
Create
(boundSwitchStatement.Expression);
2772
IOperation value =
Create
(boundSwitchExpression.Expression);
2798
IPatternOperation pattern = (IPatternOperation)
Create
(boundSwitchExpressionArm.Pattern);
2799
IOperation? guard =
Create
(boundSwitchExpressionArm.WhenClause);
2800
IOperation value =
Create
(boundSwitchExpressionArm.Value);
2827
return new SingleValueCaseClauseOperation(
Create
(cp.Value), label.GetPublicSymbol(), _semanticModel, syntax, isImplicit);
2831
IPatternOperation pattern = (IPatternOperation)
Create
(boundSwitchLabel.Pattern);
2832
IOperation? guard =
Create
(boundSwitchLabel.WhenClause);
2839
IOperation value =
Create
(boundIsPatternExpression.Expression);
2840
IPatternOperation pattern = (IPatternOperation)
Create
(boundIsPatternExpression.Pattern);
2852
return
Create
(boundQueryClause.Value);
2855
IOperation operation =
Create
(boundQueryClause.Value);
2865
return
Create
(boundRangeVariable.Value);
2882
Create
(boundIndex.Operand),
2896
IOperation? left =
Create
(boundRange.LeftOperandOpt);
2897
IOperation? right =
Create
(boundRange.RightOperandOpt);
2924
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]);