MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / __init__

Method __init__

aura/pattern_matching.py:276–285  ·  view source on GitHub ↗
(self, signature: dict)

Source from the content-addressed store, hash-verified

274
275
276 def __init__(self, signature: dict):
277 self._id = None
278 self._signature = signature
279
280 if type(self._signature["pattern"]) == str:
281 self._compiled = self._compile_src(self._signature["pattern"])
282 else:
283 self._compiled = ASTPattern.AnyOf(self._compile_src(x) for x in self._signature["pattern"])
284
285 self.ctx: ASTPattern.Context = ASTPattern.Context(self)
286
287 @classmethod
288 def _compile_src(cls, src: str) -> nodes.NodeType:

Callers 1

__init__Method · 0.45

Calls 1

_compile_srcMethod · 0.95

Tested by

no test coverage detected