| 10 | namespace |
| 11 | { |
| 12 | DeclarationBlockSyntax createBlock(const parser::DefBlockSyntax& block, |
| 13 | const vfs::FileInfo& fileInfo, const std::string& modName) |
| 14 | { |
| 15 | DeclarationBlockSyntax syntax; |
| 16 | |
| 17 | const auto& nameSyntax = block.getName(); |
| 18 | const auto& typeSyntax = block.getType(); |
| 19 | |
| 20 | syntax.typeName = typeSyntax ? typeSyntax->getToken().value : ""; |
| 21 | syntax.name = nameSyntax ? nameSyntax->getToken().value : ""; |
| 22 | syntax.contents = block.getBlockContents(); |
| 23 | syntax.modName = modName; |
| 24 | syntax.fileInfo = fileInfo; |
| 25 | |
| 26 | return syntax; |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | DeclarationFolderParser::DeclarationFolderParser(DeclarationManager& owner, Type declType, |
no test coverage detected