Lines Matching +full:10 +full:k
53 explicit Token(Kind T = Unknown, StringRef S = "") : K(T), Value(S) {} in Token()
54 Kind K; member
115 Kind K = llvm::StringSwitch<Kind>(Word) in lex() local
130 return Token(K, Word); in lex()
151 } while (Tok.K != Eof); in parse()
167 if (Tok.K != Identifier || Tok.Value.getAsInteger(10, *I)) in readAsInt()
174 if (Tok.K != Expected) in expect()
183 switch (Tok.K) { in parseOne()
189 if (Tok.K != Identifier) { in parseOne()
202 bool IsDll = Tok.K == KwLibrary; // Check before parseName. in parseOne()
230 if (Tok.K == Equal) { in parseExport()
232 if (Tok.K != Identifier) in parseExport()
249 if (Tok.K == Identifier && Tok.Value[0] == '@') { in parseExport()
251 // "foo @ 10" in parseExport()
253 Tok.Value.getAsInteger(10, E.Ordinal); in parseExport()
254 } else if (Tok.Value.drop_front().getAsInteger(10, E.Ordinal)) { in parseExport()
261 // "foo @10" in parseExport()
263 if (Tok.K == KwNoname) { in parseExport()
270 if (Tok.K == KwData) { in parseExport()
274 if (Tok.K == KwConstant) { in parseExport()
278 if (Tok.K == KwPrivate) { in parseExport()
282 if (Tok.K == EqualEqual) { in parseExport()
288 if (Tok.K == KwExportAs) { in parseExport()
290 if (Tok.K == Eof) in parseExport()
307 if (Tok.K != Comma) { in parseNumbers()
320 if (Tok.K == Identifier) { in parseName()
328 if (Tok.K == KwBase) { in parseName()
343 if (Tok.K != Identifier) in parseVersion()
347 if (V1.getAsInteger(10, *Major)) in parseVersion()
351 else if (V2.getAsInteger(10, *Minor)) in parseVersion()