(
context: &DocblockContext,
sym: &SymbolInfo,
indent: &str,
content: &str,
position: Position,
_use_map: &HashMap<String, String>,
_file_namespace: &Option<String>,
lo
| 1231 | /// filtered out by the caller before we get here. |
| 1232 | #[allow(clippy::too_many_arguments)] |
| 1233 | fn build_docblock_plain( |
| 1234 | context: &DocblockContext, |
| 1235 | sym: &SymbolInfo, |
| 1236 | indent: &str, |
| 1237 | content: &str, |
| 1238 | position: Position, |
| 1239 | _use_map: &HashMap<String, String>, |
| 1240 | _file_namespace: &Option<String>, |
| 1241 | local_classes: &[Arc<ClassInfo>], |
| 1242 | class_loader: &dyn Fn(&str) -> Option<Arc<ClassInfo>>, |
| 1243 | function_loader: FunctionLoader<'_>, |
| 1244 | ) -> String { |
| 1245 | match context { |
| 1246 | DocblockContext::FunctionOrMethod => build_function_plain( |
| 1247 | sym, |
| 1248 | indent, |
| 1249 | content, |
| 1250 | position, |
| 1251 | _use_map, |
| 1252 | _file_namespace, |
| 1253 | local_classes, |
| 1254 | class_loader, |
| 1255 | function_loader, |
| 1256 | ), |
| 1257 | DocblockContext::ClassLike => build_class_plain(sym, indent, class_loader), |
| 1258 | DocblockContext::Property => build_property_plain(sym, indent, class_loader), |
| 1259 | DocblockContext::Constant => build_constant_plain(sym, indent, class_loader), |
| 1260 | // Inline and Unknown are early-returned by the caller. |
| 1261 | DocblockContext::Inline | DocblockContext::Unknown => String::new(), |
| 1262 | } |
| 1263 | } |
| 1264 | |
| 1265 | /// Build the full docblock snippet text. |
| 1266 | /// |
no test coverage detected