Home | History | Annotate | Download | only in core-component-page

Lines Matching refs:decorations

2588    * decorations to out.
2590 * whose decorations are already present on out.
2599 out.push.apply(out, job.decorations);
2672 * function that takes source code and returns a list of decorations.
2703 * Lexes job.sourceCode and produces an output array job.decorations of
2720 var decorations = [basePos, PR_PLAIN];
2766 decorations.push(basePos + tokenStart, style);
2783 decorate, decorations);
2789 decorations);
2794 decorate, decorations);
2797 job.decorations = decorations;
2802 /** returns a function that produces a list of decorations from source text.
3117 * {@code job.decorations} and modifies {@code job.sourceNode} in place.
3123 * decorations: {Array.<number|string} an array of style classes preceded
3143 var decorations = job.decorations;
3144 var nDecorations = decorations.length;
3145 // Index into decorations after the last decoration which ends at or before
3149 // Remove all zero-length decorations.
3150 decorations[nDecorations] = sourceLength;
3153 if (decorations[i] !== decorations[i + 2]) {
3154 decorations[decPos++] = decorations[i++];
3155 decorations[decPos++] = decorations[i++];
3162 // Simplify decorations.
3164 var startPos = decorations[i];
3165 // Conflate all adjacent decorations that use the same style.
3166 var startDec = decorations[i + 1];
3168 while (end + 2 <= nDecorations && decorations[end + 1] === startDec) {
3171 decorations[decPos++] = startPos;
3172 decorations[decPos++] = startDec;
3176 nDecorations = decorations.length = decPos;
3190 var decEnd = decorations[decorationIndex + 2] || sourceLength;
3210 span.className = decorations[decorationIndex + 1];
3243 * of decorations. Takes a single argument job which describes the
3247 * decorations: {Array.<number|string>} an array of style classes
3252 * All positions in the output decorations array are relative
3392 // Integrate the decorations and tags back into the source code,