Lines Matching refs:line
165 void AddError(int line, int column, const std::string& message) {
166 strings::SubstituteAndAppend(&text_, "$0:$1: $2\n", line, column, message);
258 EXPECT_EQ(0, tokenizer.current().line);
270 EXPECT_EQ(0, tokenizer.current().line);
281 EXPECT_EQ(0, tokenizer.current().line);
367 // Test that newlines affect line numbers correctly.
394 // Test that line comments are ignored.
441 EXPECT_EQ(0, tokenizer.current().line);
465 EXPECT_EQ(previous.line, tokenizer.previous().line);
472 EXPECT_EQ(token.line, tokenizer.current().line);
557 "// line 2\n"
563 " line 2\n"},
567 "// line 2\n"
572 " line 2\n",
578 "// line 2\n"
584 " line 2\n"},
588 " * line 2\n"
589 " * line 3 */"
595 " line 2\n"
596 " line 3 "},
600 " * line 2\n"
601 " * line 3\n"
604 " * line 2\n"
605 " * line 3 */"
609 " line 2\n"
610 " line 3\n",
613 " line 2\n"
614 " line 3 "},
620 "// line 2\n"
624 " * line 2 */\n"
630 " line 2\n",
633 " line 2 "},
854 {"'bar\nfoo", true, "0:4: String literals cannot cross line boundaries.\n"},