(cls)
| 424 | |
| 425 | @classmethod |
| 426 | def _compile_all(cls): |
| 427 | if cls._AST_PATTERN_CACHE is None: |
| 428 | with concurrent.futures.ThreadPoolExecutor() as e: |
| 429 | cls._AST_PATTERN_CACHE = tuple(e.map(ASTPattern, config.SEMANTIC_RULES.get("patterns", []))) |
| 430 | |
| 431 | return cls._AST_PATTERN_CACHE |
| 432 | |
| 433 | @classmethod |
| 434 | def get_patterns_hash(cls) -> str: |