Lines Matching refs:iParser
162 OpMod lookup_mod(TextParser& iParser) { in lookup_mod() argument
164 if ('&' == iParser.peek()) { in lookup_mod()
166 iParser.next(); in lookup_mod()
167 if ('&' == iParser.peek()) { in lookup_mod()
169 iParser.next(); in lookup_mod()
171 } else if ('*' == iParser.peek()) { in lookup_mod()
173 iParser.next(); in lookup_mod()
175 iParser.skipWhiteSpace(); in lookup_mod()
186 TextParser iParser(fFileName, fStart, fContentStart, fLineCount); in parseOperator() local
187 SkAssertResult(iParser.skipWord("#Method")); in parseOperator()
188 iParser.skipWhiteSpace(); in parseOperator()
189 bool isStatic = iParser.skipExact("static"); in parseOperator()
190 iParser.skipWhiteSpace(); in parseOperator()
191 bool returnsConst = iParser.skipExact("const"); in parseOperator()
196 iParser.skipWhiteSpace(); in parseOperator()
197 const char* returnTypeStart = iParser.fChar; in parseOperator()
198 iParser.skipToNonName(); in parseOperator()
199 SkASSERT(iParser.fChar > returnTypeStart); in parseOperator()
200 string returnType(returnTypeStart, iParser.fChar - returnTypeStart); in parseOperator()
202 iParser.skipWhiteSpace(); in parseOperator()
203 OpMod returnMod = lookup_mod(iParser); in parseOperator()
204 SkAssertResult(iParser.skipExact("operator")); in parseOperator()
205 iParser.skipWhiteSpace(); in parseOperator()
207 TextParserSave save(&iParser); in parseOperator()
210 if (!iParser.skipExact(parser.fSymbol)) { in parseOperator()
213 iParser.skipWhiteSpace(); in parseOperator()
214 if ('(' != iParser.peek()) { in parseOperator()
226 iParser.next(); // skip '(' in parseOperator()
227 iParser.skipWhiteSpace(); in parseOperator()
232 if (')' == iParser.peek()) { in parseOperator()
236 if (',' == iParser.peek()) { in parseOperator()
237 iParser.next(); in parseOperator()
238 iParser.skipWhiteSpace(); in parseOperator()
240 bool paramConst = iParser.skipExact("const"); in parseOperator()
246 iParser.skipWhiteSpace(); in parseOperator()
247 const char* paramStart = iParser.fChar; in parseOperator()
248 iParser.skipToNonName(); in parseOperator()
249 SkASSERT(iParser.fChar > paramStart); in parseOperator()
250 string paramType(paramStart, iParser.fChar - paramStart); in parseOperator()
257 iParser.skipWhiteSpace(); in parseOperator()
258 OpMod paramMod = lookup_mod(iParser); in parseOperator()
264 iParser.skipToNonName(); in parseOperator()
265 if ('[' == iParser.peek()) { in parseOperator()
267 SkAssertResult(iParser.skipExact("[]")); in parseOperator()
269 iParser.skipWhiteSpace(); in parseOperator()
274 if (')' != iParser.peek()) { in parseOperator()
277 iParser.next(); in parseOperator()
278 bool constMethod = iParser.skipExact(" const"); in parseOperator()