| 505 | } |
| 506 | |
| 507 | FileContent* SLgetModuleFileContent(ModuleDefinition* module) { |
| 508 | if (!ModuleHasFirstFileContent(module)) return nullptr; |
| 509 | // TODO(alain): fix const cast. |
| 510 | return const_cast<FileContent*>(module->getFileContents()[0]); |
| 511 | } |
| 512 | |
| 513 | RawNodeId SLgetModuleRootNode(ModuleDefinition* module) { |
| 514 | if (!module || module->getNodeIds().empty()) return InvalidNodeId; |
no test coverage detected