137 references to Create
Microsoft.CodeAnalysis.CSharp (137)
Compilation\MemberSemanticModel.cs (1)
1247IOperation operation = _operationFactory.Value.Create(highestBoundNode);
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]);
Operations\CSharpOperationFactory.cs (129)
353builder.AddIfNotNull((TOperation)Create(node)); 361(IBlockOperation?)Create(boundNode.BlockBody), 362(IBlockOperation?)Create(boundNode.ExpressionBody), 372Create(boundNode.Initializer), 373(IBlockOperation?)Create(boundNode.BlockBody), 374(IBlockOperation?)Create(boundNode.ExpressionBody), 396IOperation operation = Create(childNode); 437IOperation target = Create(boundDeconstructionAssignmentOperator.Left); 440IOperation value = Create(boundDeconstructionAssignmentOperator.Right.Operand); 491var pointer = Create(boundFunctionPointerInvocation.InvokedExpression); 499Create(boundUnconvertedAddressOf.Operand), 664IOperation handlerValue = Create(boundEventAssignmentOperator.Argument); 738IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)Create(boundObjectCreationExpression.InitializerExpressionOpt); 753IOperation operand = Create(boundWithExpression.Receiver); 754IObjectOrCollectionInitializerOperation initializer = (IObjectOrCollectionInitializerOperation)Create(boundWithExpression.InitializerExpression); 764IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)Create(boundDynamicObjectCreationExpression.InitializerExpressionOpt); 787return Create(receiver); 808return Create(boundDynamicIndexerAccess.Receiver); 985IOperation? instance = Create(receiver); 1006return Create(boundLambda); 1012IBlockOperation body = (IBlockOperation)Create(boundLambda.Body); 1020IBlockOperation? body = (IBlockOperation?)Create(boundLocalFunctionStatement.Body); 1022? (IBlockOperation?)Create(exprBody) 1133return Create(boundOperand); 1146return Create(boundOperand); 1192: Create(correctedConversionNode.Operand); 1200IOperation operand = Create(boundAsOperator.Operand); 1232IOperation value = Create(boundIsOperator.Operand); 1266IArrayInitializerOperation? arrayInitializer = (IArrayInitializerOperation?)Create(boundArrayCreation.InitializerOpt); 1356Create(Binder.GetUnderlyingCollectionExpressionElement(expr, (BoundExpression)element, throwOnErrors: false)); 1364var collection = Create(element.Expression); 1428IOperation target = Create(boundAssignmentOperator.Left); 1429IOperation value = Create(boundAssignmentOperator.Right); 1442IObjectOrCollectionInitializerOperation initializer = (IObjectOrCollectionInitializerOperation)Create(boundAssignmentOperator.Right); 1451IOperation target = Create(boundCompoundAssignmentOperator.Left); 1452IOperation value = Create(boundCompoundAssignmentOperator.Right); 1485IOperation target = Create(boundIncrementOperator.Operand); 1509IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)Create(boundNewT.InitializerExpressionOpt); 1518IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)Create(creation.InitializerExpressionOpt); 1528IOperation operand = Create(boundUnaryOperator.Operand); 1563left ??= Create(currentBinary.Left); 1564IOperation right = Create(currentBinary.Right); 1648IOperation left = Create(boundTupleBinaryOperator.Left); 1649IOperation right = Create(boundTupleBinaryOperator.Right); 1659IOperation condition = Create(boundConditionalOperator.Condition); 1660IOperation whenTrue = Create(boundConditionalOperator.Consequence); 1661IOperation whenFalse = Create(boundConditionalOperator.Alternative); 1672IOperation value = Create(boundNullCoalescingOperator.LeftOperand); 1673IOperation whenNull = Create(boundNullCoalescingOperator.RightOperand); 1691IOperation target = Create(boundNode.LeftOperand); 1692IOperation value = Create(boundNode.RightOperand); 1702IOperation awaitedValue = Create(boundAwaitExpression.Expression); 1711IOperation arrayReference = Create(boundArrayAccess.Expression); 1722IOperation instance = Create(boundIndexerAccess.Receiver); 1723IOperation argument = Create(boundIndexerAccess.Argument); 1744IOperation arrayReference = Create(boundInlineArrayAccess.Expression); 1745IOperation argument = Create(boundInlineArrayAccess.Argument); 1755IOperation argument = Create(boundNameOfOperator.Argument); 1765IOperation expression = Create(boundThrowExpression.Expression); 1774IOperation reference = Create(boundAddressOfOperator.Operand); 1792IOperation operation = Create(boundConditionalAccess.Receiver); 1793IOperation whenNotNull = Create(boundConditionalAccess.AccessExpression); 1812IOperation value = Create(boundFieldEqualsValue.Value); 1821IOperation value = Create(boundPropertyEqualsValue.Value); 1830IOperation value = Create(boundParameterEqualsValue.Value); 1904whenFalse = Create(alternative); 1913IOperation condition = Create(boundIfStatement.Condition); 1914IOperation whenTrue = Create(boundIfStatement.Consequence); 1931IOperation condition = Create(boundWhileStatement.Condition); 1932IOperation body = Create(boundWhileStatement.Body); 1945IOperation condition = Create(boundDoStatement.Condition); 1946IOperation body = Create(boundDoStatement.Body); 1960IOperation? condition = Create(boundForStatement.Condition); 1962IOperation body = Create(boundForStatement.Body); 2042return Create(boundForEachStatement.DeconstructionOpt.DeconstructionAssignment.Left); 2046return Create(boundForEachStatement.IterationErrorExpressionOpt); 2062IOperation collection = Create(boundForEachStatement.EnumeratorInfoOpt?.InlineArraySpanType is null or WellKnownType.Unknown || 2067IOperation body = Create(boundForEachStatement.Body); 2082var body = (IBlockOperation)Create(boundTryStatement.TryBlock); 2084var @finally = (IBlockOperation?)Create(boundTryStatement.FinallyBlockOpt); 2095IOperation? filter = Create(boundCatchBlock.ExceptionFilterOpt); 2096IBlockOperation handler = (IBlockOperation)Create(boundCatchBlock.Body); 2106IVariableDeclarationGroupOperation variables = (IVariableDeclarationGroupOperation)Create(boundFixedStatement.Declarations); 2107IOperation body = Create(boundFixedStatement.Body); 2118IOperation resources = Create(boundUsingStatement.DeclarationsOpt ?? (BoundNode)boundUsingStatement.ExpressionOpt!); 2119IOperation body = Create(boundUsingStatement.Body); 2134IOperation? thrownObject = Create(boundThrowStatement.ExpressionOpt); 2143IOperation? returnedValue = Create(boundReturnStatement.ExpressionOpt); 2151IOperation returnedValue = Create(boundYieldReturnStatement.Expression); 2166IOperation lockedValue = Create(boundLockStatement.Argument); 2167IOperation body = Create(boundLockStatement.Body); 2285IOperation labeledStatement = Create(boundLabeledStatement.Body); 2301IOperation expression = Create(boundExpressionStatement.Expression); 2367builder.Add((IInterpolatedStringContentOperation)Create(part)); 2450IOperation valueOperation = Create(value); 2451IOperation? alignmentOperation = Create(alignment); 2452IOperation? formatOperation = Create(format); 2486IOperation expression = Create(boundStringInsert.Value); 2487IOperation? alignment = Create(boundStringInsert.Alignment); 2488IOperation? formatString = Create(boundStringInsert.Format); 2507var construction = Create(interpolationData.Construction); 2549return new InterpolatedStringAppendOperation(@this.Create(part), operationKind, @this._semanticModel, part.Syntax, isImplicit: true); 2602IOperation value = Create(boundConstantPattern.Value); 2613IOperation value = Create(boundRelationalPattern.Value); 2642? deconstructions.SelectAsArray((p, fac) => (IPatternOperation)fac.Create(p.Pattern), this) 2663? subpatterns.SelectAsArray((p, fac) => (IPatternOperation)fac.Create(p.Pattern), this) 2695pattern: (IPatternOperation?)Create(boundNode.Pattern), 2708patterns: boundNode.Subpatterns.SelectAsArray((p, fac) => (IPatternOperation)fac.Create(p), this), 2720(IPatternOperation)Create(boundNegatedPattern.Negated), 2732return createOperation(this, boundBinaryPattern, left: (IPatternOperation)Create(boundBinaryPattern.Left)); 2746var result = (IPatternOperation)Create(current.Left); 2760(IPatternOperation)@this.Create(boundBinaryPattern.Right), 2771IOperation value = Create(boundSwitchStatement.Expression); 2791IOperation value = Create(boundSwitchExpression.Expression); 2817IPatternOperation pattern = (IPatternOperation)Create(boundSwitchExpressionArm.Pattern); 2818IOperation? guard = Create(boundSwitchExpressionArm.WhenClause); 2819IOperation value = Create(boundSwitchExpressionArm.Value); 2846return new SingleValueCaseClauseOperation(Create(cp.Value), label.GetPublicSymbol(), _semanticModel, syntax, isImplicit); 2850IPatternOperation pattern = (IPatternOperation)Create(boundSwitchLabel.Pattern); 2851IOperation? guard = Create(boundSwitchLabel.WhenClause); 2858IOperation value = Create(boundIsPatternExpression.Expression); 2859IPatternOperation pattern = (IPatternOperation)Create(boundIsPatternExpression.Pattern); 2871return Create(boundQueryClause.Value); 2874IOperation operation = Create(boundQueryClause.Value); 2884return Create(boundRangeVariable.Value); 2901Create(boundIndex.Operand), 2915IOperation? left = Create(boundRange.LeftOperandOpt); 2916IOperation? right = Create(boundRange.RightOperandOpt); 2943IPatternOperation pattern = (IPatternOperation)Create(subpattern.Pattern);