Home
last modified time | relevance | path

Searched refs:expectedToken (Results 1 – 4 of 4) sorted by relevance

/external/smali/smali/src/test/java/org/jf/smali/
DLexerTest.java187 ExpectedToken expectedToken = expectedTokens.get(expectedTokenIndex++); in runTest() local
188 if (!tokenTypesByName.containsKey(expectedToken.tokenName)) { in runTest()
189 Assert.fail("Unknown token: " + expectedToken.tokenName); in runTest()
191 int expectedTokenType = tokenTypesByName.get(expectedToken.tokenName); in runTest()
195 … expectedTokenIndex-1, expectedToken.tokenName, getTokenName(token.getType()), token.getText())); in runTest()
198 if (expectedToken.tokenText != null) { in runTest()
199 if (!expectedToken.tokenText.equals(token.getText())) { in runTest()
202 … expectedTokenIndex - 1, expectedToken.tokenText, token.getText())); in runTest()
/external/llvm-project/mlir/lib/Parser/
DParser.h128 ParseResult parseToken(Token::Kind expectedToken, const Twine &message);
DParser.cpp90 ParseResult Parser::parseToken(Token::Kind expectedToken, in parseToken() argument
92 if (consumeIf(expectedToken)) in parseToken()
/external/icu/icu4c/source/tools/genrb/
Dparse.cpp250 expect(ParseState* state, enum ETokenType expectedToken, struct UString **tokenValue, struct UStrin… in expect() argument
266 if (token != expectedToken) in expect()
269 error(line, "expecting %s, got %s", tokenNames[expectedToken], tokenNames[token]); in expect()