64 references to AddStatement
Microsoft.CodeAnalysis (64)
Operations\ControlFlowGraphBuilder.cs (64)
1248AddStatement(base.Visit(operation, null)); 1691AddStatement(new FlowCaptureOperation(captureId, syntax, result)); 1912AddStatement(new FlowCaptureOperation(captureId, operationOpt.Syntax, operationOpt) 2384AddStatement(new FlowCaptureOperation(resultId, binOp.Syntax, OperationCloner.CloneOperation(capturedRight))); 2390AddStatement(new FlowCaptureOperation(resultId, binOp.Syntax, OperationCloner.CloneOperation(capturedLeft))); 2434AddStatement(new FlowCaptureOperation(resultId, binOp.Syntax, new LiteralOperation(semanticModel: null, left.Syntax, booleanType, constantValue, isImplicit: true))); 2443AddStatement(new FlowCaptureOperation(resultId, binOp.Syntax, condition)); 2530AddStatement(new FlowCaptureOperation(resultId, binOp.Syntax, resultFromLeft)); 2538AddStatement(new FlowCaptureOperation(resultId, binOp.Syntax, 2619AddStatement(new FlowCaptureOperation(resultId, binOp.Syntax, OperationCloner.CloneOperation(capturedLeft))); 2628AddStatement(new FlowCaptureOperation(resultId, binOp.Syntax, 2694AddStatement(new FlowCaptureOperation(captureId, leftSyntax, new LiteralOperation(semanticModel: null, leftSyntax, condition.Type, constantValue, isImplicit: true))); 3078AddStatement(new FlowCaptureOperation(resultCaptureId, operation.Value.Syntax, convertedTestExpression)); 3121AddStatement(new FlowCaptureOperation(valueCaptureId, locationCapture.Syntax, locationCapture)); 3183AddStatement( 3198AddStatement( 3219AddStatement(new FlowCaptureOperation(intermediateValueCaptureId, whenNullValue.Syntax, whenNullValue)); 3221AddStatement( 3228AddStatement( 3252AddStatement(new FlowCaptureOperation(resultCaptureId, operation.Syntax, OperationCloner.CloneOperation(valueCapture))); 3272AddStatement(whenNullAssignment); 3276AddStatement(new FlowCaptureOperation(resultCaptureId, operation.Syntax, whenNullAssignment)); 3421AddStatement(result); 3433AddStatement(new FlowCaptureOperation(resultCaptureId, currentConditionalAccess.WhenNotNull.Syntax, 3455AddStatement(new FlowCaptureOperation(resultCaptureId, 3809AddStatement(new SimpleAssignmentOperation( 3835AddStatement(new ReturnOperation(returnedValue, OperationKind.YieldReturn, semanticModel: null, operation.Syntax, IsImplicit(operation))); 4081AddStatement(new FlowCaptureOperation(captureId, resource.Syntax, resource)); 4129AddStatement(new FlowCaptureOperation(captureId, resource.Syntax, resource)); 4155AddStatement(tryDispose(resource) ?? 4260AddStatement(new ExpressionStatementOperation( 4338AddStatement(MakeInvalidOperation(type: null, lockedValue)); 4342AddStatement(new InvocationOperation(enterMethod, constrainedToType: null, instance: null, isVirtual: false, 4370AddStatement(new InvocationOperation(enterMethod, constrainedToType: null, instance: null, isVirtual: false, 4421AddStatement(MakeInvalidOperation(type: null, lockedValue)); 4425AddStatement(new InvocationOperation(exitMethod, constrainedToType: null, instance: null, isVirtual: false, 4517AddStatement(getLoopControlVariableAssignment(applyConversion(info?.CurrentConversion, getCurrent(OperationCloner.CloneOperation(enumerator)), info?.ElementType))); 4585AddStatement(new FlowCaptureOperation(localCopyCaptureId, operation.Collection.Syntax, collection)); 4599AddStatement(new FlowCaptureOperation(enumeratorCaptureId, operation.Collection.Syntax, invocation)); 4606AddStatement(MakeInvalidOperation(type: null, VisitRequired(operation.Collection))); 4950AddStatement(new FlowCaptureOperation(positiveFlagId, isUp.Syntax, isUp)); 4975AddStatement(new FlowCaptureOperation(positiveFlagId, isUp.Syntax, isUp)); 4989AddStatement(new SimpleAssignmentOperation(isRef: false, // Loop control variable 5305AddStatement(new SimpleAssignmentOperation(isRef: false, 5357AddStatement(new SimpleAssignmentOperation(isRef: false, 5408AddStatement(new SimpleAssignmentOperation(isRef: false, 5878AddStatement(assignment); 6069AddStatement(Visit(innerInitializer)); 6100AddStatement(result); 6311AddStatement(Visit(element)); 6316AddStatement(Visit(argument.Value)); 6322AddStatement(Visit(implicitIndexer.Argument)); 6328AddStatement(Visit(index)); 6335AddStatement(Visit(argument)); 6342AddStatement(Visit(index)); 6866AddStatement(visitedAppendCall); 6877AddStatement(visitedAppendCall); 7281AddStatement(assignment); 7523AddStatement(visitedReDimOperation); 7965AddStatement(VisitRequired(operation.Operand)); 7983AddStatement(VisitRequired(initializer)); 7990AddStatement(VisitRequired(simpleAssignment.Value)); 8005AddStatement(VisitRequired(simpleAssignment.Value)); 8041AddStatement(new FlowCaptureOperation(extraValueCaptureId, operation.Syntax, visitedValue));