Lines Matching refs:ScriptLexer
1 //===- ScriptLexer.cpp ----------------------------------------------------===//
34 #include "ScriptLexer.h"
43 StringRef ScriptLexer::getLine() {
54 size_t ScriptLexer::getLineNumber() {
63 size_t ScriptLexer::getColumnNumber() {
68 std::string ScriptLexer::getCurrentLocation() {
73 ScriptLexer::ScriptLexer(MemoryBufferRef mb) { tokenize(mb); }
76 void ScriptLexer::setError(const Twine &msg) {
88 void ScriptLexer::tokenize(MemoryBufferRef mb) {
144 StringRef ScriptLexer::skipSpace(StringRef s) {
170 bool ScriptLexer::atEOF() { return errorCount() || tokens.size() == pos; }
220 void ScriptLexer::maybeSplitExpr() {
231 StringRef ScriptLexer::next() {
243 StringRef ScriptLexer::peek() {
251 StringRef ScriptLexer::peek2() {
260 bool ScriptLexer::consume(StringRef tok) {
269 bool ScriptLexer::consumeLabel(StringRef tok) {
280 void ScriptLexer::skip() { (void)next(); }
282 void ScriptLexer::expect(StringRef expect) {
295 MemoryBufferRef ScriptLexer::getCurrentMB() {