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