Lines Matching defs:job
87 * by the position at which they start in job.sourceCode in order
670 var job = {
680 langHandler(job);
681 out.push.apply(out, job.decorations);
753 * @return {function (JobT)} a function that takes an undecorated job and
785 * Lexes job.sourceCode and attaches an output array job.decorations of
787 * job.sourceCode in order.
791 var decorate = function (job) {
792 var sourceCode = job.sourceCode, basePos = job.basePos;
793 var sourceNode = job.sourceNode;
879 job.decorations = decorations;
897 * in the input job and builds a decoration list which it attaches to
898 * the job.
1215 * Breaks {@code job.sourceCode} around style boundaries in
1216 * {@code job.decorations} and modifies {@code job.sourceNode} in place.
1217 * @param {JobT} job
1220 function recombineTagsAndDecorations(job) {
1225 var source = job.sourceCode;
1230 var spans = job.spans;
1235 var decorations = job.decorations;
1270 var sourceNode = job.sourceNode;
1336 * of decorations. Takes a single argument job which describes the
1460 /** @param {JobT} job */
1461 function applyDecorator(job) {
1462 var opt_langExtension = job.langExtension;
1466 var sourceAndSpans = extractSourceSpans(job.sourceNode, job.pre);
1469 job.sourceCode = source;
1470 job.spans = sourceAndSpans.spans;
1471 job.basePos = 0;
1474 langHandlerForExtension(opt_langExtension, source)(job);
1478 recombineTagsAndDecorations(job);
1515 var job = {
1525 applyDecorator(job);