Lines Matching full:toks
90 std::vector<Token> toks;
96 toks.push_back(tok);
100 ASSERT_EQ(3U, toks.size());
101 ASSERT_EQ(tok::l_square, toks[0].getKind());
102 ASSERT_EQ(tok::identifier, toks[1].getKind());
103 ASSERT_EQ(tok::r_square, toks[2].getKind());
105 SourceLocation lsqrLoc = toks[0].getLocation();
106 SourceLocation idLoc = toks[1].getLocation();
107 SourceLocation rsqrLoc = toks[2].getLocation();
207 std::vector<Token> toks;
213 toks.push_back(tok);
217 ASSERT_EQ(4U, toks.size());
218 ASSERT_EQ(tok::numeric_constant, toks[0].getKind());
219 ASSERT_EQ(tok::numeric_constant, toks[1].getKind());
220 ASSERT_EQ(tok::numeric_constant, toks[2].getKind());
221 ASSERT_EQ(tok::numeric_constant, toks[3].getKind());
238 EXPECT_EQ(loc2, toks[1].getLocation());
239 EXPECT_EQ(loc3, toks[2].getLocation());
309 std::vector<Token> toks;
315 toks.push_back(tok);
319 ASSERT_EQ(0U, toks.size());