Home | History | Annotate | Download | only in gn

Lines Matching defs:line

27                      std::string* line) {
28 // Only bother if the range's begin or end overlaps the line. If the entire
29 // line is highlighted as a result of this range, it's not very helpful.
44 end_char = static_cast<int>(line->size()); // Ending is non-inclusive.
49 CHECK(begin_char >= 0 && begin_char <= static_cast<int>(line->size()));
50 CHECK(end_char >= 0 && end_char <= static_cast<int>(line->size()));
52 line->at(i) = '-';
55 // The line length is used to clip the maximum length of the markers we'll
56 // make if the error spans more than one line (like unterminated literals).
60 // Make a buffer of the line in spaces.
66 // Highlight all the ranges on the line.
70 // Allow the marker to be one past the end of the line for marking the end.
76 // Trim unused spaces from end of line.
174 // Quoted line.
176 std::string line = GetNthLine(input_file->contents(),
178 if (!ContainsOnlyWhitespaceASCII(line)) {
179 OutputString(line + "\n", DECORATION_DIM);
180 OutputHighlighedPosition(location_, ranges_, line.size());