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