Lines Matching defs:tok
47 StringRef tok = tokens[pos - 1];
49 size_t pos = s.rfind('\n', tok.data() - s.data());
60 StringRef tok = tokens[pos - 1];
61 const size_t tokOffset = tok.data() - s.data();
84 StringRef tok = tokens[pos - 1];
85 return tok.data() - getLine().data();
268 StringRef tok = next();
272 return tok;
277 StringRef tok = next();
281 return tok;
284 bool ScriptLexer::consume(StringRef tok) {
285 if (peek() == tok) {
293 bool ScriptLexer::consumeLabel(StringRef tok) {
294 if (consume((tok + ":").str()))
296 if (tokens.size() >= pos + 2 && tokens[pos] == tok &&
309 StringRef tok = next();
310 if (tok != expect)
311 setError(expect + " expected, but got " + tok);