pythonExtractor.isStatic: preceding decorator mentioning `staticmethod`.
(&self, node: Node)
| 402 | |
| 403 | /// pythonExtractor.isStatic: preceding decorator mentioning `staticmethod`. |
| 404 | fn is_static(&self, node: Node) -> bool { |
| 405 | if let Some(prev) = node.prev_named_sibling() { |
| 406 | if prev.kind() == "decorator" { |
| 407 | return self.text(prev).contains("staticmethod"); |
| 408 | } |
| 409 | } |
| 410 | false |
| 411 | } |
| 412 | |
| 413 | // --- visitNode ------------------------------------------------------------ |
| 414 |
no test coverage detected