Lines Matching refs:stmt
131 auto stmt = ParseTopLevelStatement();
133 if (stmt != nullptr) {
134 statements.emplace_back(stmt);
141 static ir::Statement *ValidateExportableStatement(ETSParser *parser, ir::Statement *stmt,
144 if (stmt != nullptr) {
146 !(stmt->IsClassDeclaration() || stmt->IsTSInterfaceDeclaration() || stmt->IsTSTypeAliasDeclaration())) {
147 parser->ThrowSyntaxError("Can only type export class or interface!", stmt->Start());
149 stmt->AddModifier(memberModifiers);
151 return stmt;