Lines Matching defs:decls
109 LogicalResult parseModuleBody(SmallVectorImpl<ast::Decl *> &decls);
160 LogicalResult parseDirective(SmallVectorImpl<ast::Decl *> &decls);
161 LogicalResult parseInclude(SmallVectorImpl<ast::Decl *> &decls);
163 SmallVectorImpl<ast::Decl *> &decls);
167 SmallVectorImpl<ast::Decl *> &decls);
234 /// Parse either a UserConstraintDecl or UserRewriteDecl. These decls have
243 /// These decls have effectively the same syntax.
576 // Parse the top-level decls of the module.
577 SmallVector<ast::Decl *> decls;
578 if (failed(parseModuleBody(decls)))
582 return ast::Module::create(ctx, moduleLoc, decls);
585 LogicalResult Parser::parseModuleBody(SmallVectorImpl<ast::Decl *> &decls) {
588 if (failed(parseDirective(decls)))
596 decls.push_back(*decl);
766 LogicalResult Parser::parseDirective(SmallVectorImpl<ast::Decl *> &decls) {
769 return parseInclude(decls);
774 LogicalResult Parser::parseInclude(SmallVectorImpl<ast::Decl *> &decls) {
802 LogicalResult result = parseModuleBody(decls);
809 return parseTdInclude(filename, fileLoc, decls);
816 SmallVectorImpl<ast::Decl *> &decls) {
856 processTdIncludeRecords(tdRecords, decls);
866 SmallVectorImpl<ast::Decl *> &decls) {
933 decls.push_back(createODSNativePDLLConstraintDecl<ast::AttrConstraintDecl>(
943 decls.push_back(createODSNativePDLLConstraintDecl<ast::TypeConstraintDecl>(
967 decls.push_back(createODSNativePDLLConstraintDecl<ast::OpConstraintDecl>(
1305 // Only inline decls can be un-named. Inline decls are similar to "lambdas"
2503 // Single result decls use the type of the single result.
2508 // the result variable decls.