Home | History | Annotate | Download | only in js

Lines Matching refs:job

760     var job = {
764 langHandler(job);
765 out.push.apply(out, job.decorations);
844 * Lexes job.source and produces an output array job.decorations of style
845 * classes preceded by the position at which they start in job.source in
848 * @param {Object} job an object like {@code
850 * basePos: {int} position of job.source in the larger chunk of
854 var decorate = function (job) {
855 var sourceCode = job.source, basePos = job.basePos;
938 job.decorations = decorations;
956 * in the input job and builds the decoration list.
1066 /** Breaks {@code job.source} around style boundaries in
1067 * {@code job.decorations} while re-interleaving {@code job.extractedTags},
1068 * and leaves the result in {@code job.prettyPrintedHtml}.
1069 * @param {Object} job like {
1072 * html preceded by their position in {@code job.source}
1075 * by the position at which they start in job.source in order
1079 function recombineTagsAndDecorations(job) {
1080 var sourceText = job.source;
1081 var extractedTags = job.extractedTags;
1082 var decorations = job.decorations;
1083 var numberLines = job.numberLines;
1084 var sourceNode = job.sourceNode;
1215 job.prettyPrintedHtml = html.join('');
1222 * of decorations. Takes a single argument job which describes the
1228 * job.source in order.
1353 function applyDecorator(job) {
1354 var sourceCodeHtml = job.sourceCodeHtml;
1355 var opt_langExtension = job.langExtension;
1358 job.prettyPrintedHtml = sourceCodeHtml;
1365 job.source = source;
1366 job.basePos = 0;
1372 job.extractedTags = sourceAndExtractedTags.tags;
1375 langHandlerForExtension(opt_langExtension, source)(job);
1377 // a decorated html string which is left in job.prettyPrintedHtml.
1378 recombineTagsAndDecorations(job);
1394 var job = {
1399 applyDecorator(job);
1400 return job.prettyPrintedHtml;