bundles/org.eclipse.orion.client.javascript/web/eslint/lib/code-path-analysis/code-path-state.js
function() {
			var context = this.loopContext;
			var choiceContext = this.choiceContext;
			var forkContext = this.forkContext;

			// Update state.
			if (context.updateSegments) {
				context.endOfUpdateSegments = forkContext.head;

				// `update` -> `test`
				if (context.testSegments) {
					makeLooped(
						this,
						context.endOfUpdateSegments,
						context.testSegments);
				}
			} else if (context.testSegments) {
				finalizeTestSegmentsOfFor(
					context,
					choiceContext,
					forkContext.head);
			} else {
				context.endOfInitSegments = forkContext.head;
			}

			var bodySegments = context.endOfTestSegments;

			if (!bodySegments) {

				/*
				 * If there is not the `test` part, the `body` path comes from the
				 * `init` part and the `update` part.
				 */
				var prevForkContext = ForkContext.newEmpty(forkContext);

				prevForkContext.add(context.endOfInitSegments);
				if (context.endOfUpdateSegments) {
					prevForkContext.add(context.endOfUpdateSegments);
				}

				bodySegments = prevForkContext.makeNext(0, -1);
			}
			context.continueDestSegments = context.continueDestSegments || bodySegments;
			forkContext.replaceHead(bodySegments);
		}
function() {
			var context = this.loopContext;
			var choiceContext = this.choiceContext;
			var forkContext = this.forkContext;

			// Update state.
			if (context.updateSegments) {
				context.endOfUpdateSegments = forkContext.head;

				// `update` -> `test`
				if (context.testSegments) {
					makeLooped(
						this,
						context.endOfUpdateSegments,
						context.testSegments);
				}
			} else if (context.testSegments) {
				finalizeTestSegmentsOfFor(
					context,
					choiceContext,
					forkContext.head);
			} else {
				context.endOfInitSegments = forkContext.head;
			}

			var bodySegments = context.endOfTestSegments;

			if (!bodySegments) {

				/*
				 * If there is not the `test` part, the `body` path comes from the
				 * `init` part and the `update` part.
				 */
				var prevForkContext = ForkContext.newEmpty(forkContext);

				prevForkContext.add(context.endOfInitSegments);
				if (context.endOfUpdateSegments) {
					prevForkContext.add(context.endOfUpdateSegments);
				}

				bodySegments = prevForkContext.makeNext(0, -1);
			}
			context.continueDestSegments = context.continueDestSegments || bodySegments;
			forkContext.replaceHead(bodySegments);
		}
function ( ) { var context = this . loopContext ; var choiceContext = this . choiceContext ; var forkContext = this . forkContext ; // Update state. if ( context . updateSegments ) { context . endOfUpdateSegments = forkContext . head ; // `update` -> `test` if ( context . testSegments ) { makeLooped ( this , context . endOfUpdateSegments , context . testSegments ) ; } } else if ( context . testSegments ) { finalizeTestSegmentsOfFor ( context , choiceContext , forkContext . head ) ; } else { context . endOfInitSegments = forkContext . head ; } var bodySegments = context . endOfTestSegments ; if ( ! bodySegments ) { /*
				 * If there is not the `test` part, the `body` path comes from the
				 * `init` part and the `update` part.
				 */ var prevForkContext = ForkContext . newEmpty ( forkContext ) ; prevForkContext . add ( context . endOfInitSegments ) ; if ( context . endOfUpdateSegments ) { prevForkContext . add ( context . endOfUpdateSegments ) ; } bodySegments = prevForkContext . makeNext ( 0 , - 1 ) ; } context . continueDestSegments = context . continueDestSegments || bodySegments ; forkContext . replaceHead ( bodySegments ) ; }
Makes a code path segment for the body part of a ForStatement.

@returns {void}
Makes a code path segment for the body part of a ForStatement .