MCPcopy Create free account
hub / github.com/KDE/kdevelop / nextToken

Method nextToken

plugins/debuggercommon/mi/milexer.cpp:115–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115int MILexer::nextToken(int &pos, int &len)
116{
117 while (m_ptr < m_length) {
118 const int start = m_ptr;
119
120 const char ch = m_contents[m_ptr];
121 Q_ASSERT(ch >= 0);
122 int kind = 0;
123 (this->*s_scan_table[static_cast<uchar>(ch)])(&kind);
124
125 switch (kind) {
126 case Token_whitespaces:
127 case '\n':
128 break;
129
130 default:
131 pos = start;
132 len = m_ptr - start;
133 return kind;
134 }
135 }
136
137 return 0;
138}
139
140void MILexer::scanChar(int *kind)
141{

Callers 8

parseMethod · 0.45
parsePromptMethod · 0.45
parseStreamRecordMethod · 0.45
parseResultMethod · 0.45
parseListMethod · 0.45
parseCSVMethod · 0.45
parseStringLiteralMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected