Home
last modified time | relevance | path

Searched refs:isAsserts (Results 1 - 2 of 2) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/parser/
H A DTSparser.cpp348 bool isAsserts = Lexer()->GetToken().KeywordType() == lexer::TokenType::KEYW_ASSERTS; in IsStartOfTypePredicate() local
349 if (isAsserts) { in IsStartOfTypePredicate()
359 if (isAsserts) { in IsStartOfTypePredicate()
834 bool isAsserts = Lexer()->GetToken().KeywordType() == lexer::TokenType::KEYW_ASSERTS; in ParseTypePredicate() local
835 if (isAsserts) { in ParseTypePredicate()
838 isAsserts = false; in ParseTypePredicate()
858 if (isAsserts && Lexer()->GetToken().KeywordType() != lexer::TokenType::KEYW_IS) { in ParseTypePredicate()
860 result = AllocNode<ir::TSTypePredicate>(parameterName, typeAnnotation, isAsserts); in ParseTypePredicate()
871 result = AllocNode<ir::TSTypePredicate>(parameterName, typeAnnotation, isAsserts); in ParseTypePredicate()
/arkcompiler/ets_frontend/es2panda/parser/
H A DparserImpl.cpp402 bool isAsserts = lexer_->GetToken().KeywordType() == lexer::TokenType::KEYW_ASSERTS; in IsStartOfTsTypePredicate() local
403 if (isAsserts) { in IsStartOfTsTypePredicate()
413 if (isAsserts) { in IsStartOfTsTypePredicate()
1290 bool isAsserts = lexer_->GetToken().KeywordType() == lexer::TokenType::KEYW_ASSERTS; in ParseTsTypePredicate() local
1291 if (isAsserts) { in ParseTsTypePredicate()
1294 isAsserts = false; in ParseTsTypePredicate()
1314 if (isAsserts && lexer_->GetToken().KeywordType() != lexer::TokenType::KEYW_IS) { in ParseTsTypePredicate()
1316 result = AllocNode<ir::TSTypePredicate>(parameterName, typeAnnotation, isAsserts); in ParseTsTypePredicate()
1327 result = AllocNode<ir::TSTypePredicate>(parameterName, typeAnnotation, isAsserts); in ParseTsTypePredicate()

Completed in 10 milliseconds