pythonExtractor.isStatic: preceding decorator mentioning `staticmethod`.
(&self, node: Node)
| 307 | |
| 308 | /// pythonExtractor.isStatic: preceding decorator mentioning `staticmethod`. |
| 309 | fn is_static(&self, node: Node) -> bool { |
| 310 | if let Some(prev) = node.prev_named_sibling() { |
| 311 | if prev.kind() == "decorator" { |
| 312 | return self.text(prev).contains("staticmethod"); |
| 313 | } |
| 314 | } |
| 315 | false |
| 316 | } |
| 317 | |
| 318 | // --- visitNode ------------------------------------------------------------ |
| 319 |
no test coverage detected