Lines Matching defs:tok
42 StringRef tok = tokens[pos - 1];
44 size_t pos = s.rfind('\n', tok.data() - s.data());
55 StringRef tok = tokens[pos - 1];
56 const size_t tokOffset = tok.data() - s.data();
79 StringRef tok = tokens[pos - 1];
80 return tok.data() - getLine().data();
263 StringRef tok = next();
267 return tok;
270 bool ScriptLexer::consume(StringRef tok) {
271 if (next() == tok)
278 bool ScriptLexer::consumeLabel(StringRef tok) {
279 if (consume((tok + ":").str()))
281 if (tokens.size() >= pos + 2 && tokens[pos] == tok &&
294 StringRef tok = next();
295 if (tok != expect)
296 setError(expect + " expected, but got " + tok);