| 441 | } |
| 442 | |
| 443 | void LineAnnotation::SetStyle(int line, int style) { |
| 444 | annotations.EnsureLength(line+1); |
| 445 | if (!annotations[line]) { |
| 446 | annotations[line] = AllocateAnnotation(0, style); |
| 447 | } |
| 448 | reinterpret_cast<AnnotationHeader *>(annotations[line])->style = static_cast<short>(style); |
| 449 | } |
| 450 | |
| 451 | void LineAnnotation::SetStyles(int line, const unsigned char *styles) { |
| 452 | if (line >= 0) { |
no test coverage detected