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