Lines Matching refs:toks
85 std::vector<Token> toks;
91 toks.push_back(tok);
95 ASSERT_EQ(3U, toks.size());
96 ASSERT_EQ(tok::l_square, toks[0].getKind());
97 ASSERT_EQ(tok::identifier, toks[1].getKind());
98 ASSERT_EQ(tok::r_square, toks[2].getKind());
100 SourceLocation lsqrLoc = toks[0].getLocation();
101 SourceLocation idLoc = toks[1].getLocation();
102 SourceLocation rsqrLoc = toks[2].getLocation();
200 std::vector<Token> toks;
206 toks.push_back(tok);
210 ASSERT_EQ(4U, toks.size());
211 ASSERT_EQ(tok::numeric_constant, toks[0].getKind());
212 ASSERT_EQ(tok::numeric_constant, toks[1].getKind());
213 ASSERT_EQ(tok::numeric_constant, toks[2].getKind());
214 ASSERT_EQ(tok::numeric_constant, toks[3].getKind());
231 EXPECT_EQ(loc2, toks[1].getLocation());
232 EXPECT_EQ(loc3, toks[2].getLocation());
302 std::vector<Token> toks;
308 toks.push_back(tok);
312 ASSERT_EQ(0U, toks.size());