Lines Matching refs:Pos
46 StringRef Tok = Tokens[Pos - 1]; in getLine()
48 size_t Pos = S.rfind('\n', Tok.data() - S.data()); in getLine() local
49 if (Pos != StringRef::npos) in getLine()
50 S = S.substr(Pos + 1); in getLine()
57 StringRef Tok = Tokens[Pos - 1]; in getLineNumber()
63 StringRef Tok = Tokens[Pos - 1]; in getColumnNumber()
80 if (Pos) in setError()
127 size_t Pos = S.find_first_not_of( in tokenize() local
133 if (Pos == 0) in tokenize()
134 Pos = 1; in tokenize()
135 Vec.push_back(S.substr(0, Pos)); in tokenize()
136 S = S.substr(Pos); in tokenize()
139 Tokens.insert(Tokens.begin() + Pos, Vec.begin(), Vec.end()); in tokenize()
169 bool ScriptLexer::atEOF() { return errorCount() || Tokens.size() == Pos; } in atEOF()
220 std::vector<StringRef> V = tokenizeExpr(Tokens[Pos]); in maybeSplitExpr()
223 Tokens.erase(Tokens.begin() + Pos); in maybeSplitExpr()
224 Tokens.insert(Tokens.begin() + Pos, V.begin(), V.end()); in maybeSplitExpr()
236 return Tokens[Pos++]; in next()
243 Pos = Pos - 1; in peek()
252 Pos = Pos - 2; in peek2()
268 if (Tokens.size() >= Pos + 2 && Tokens[Pos] == Tok && in consumeLabel()
269 Tokens[Pos + 1] == ":") { in consumeLabel()
270 Pos += 2; in consumeLabel()
293 assert(!MBs.empty() && Pos > 0); in getCurrentMB()
295 if (encloses(MB.getBuffer(), Tokens[Pos - 1])) in getCurrentMB()