diff options
| author | alexv-smirnov <[email protected]> | 2023-03-28 22:25:04 +0300 |
|---|---|---|
| committer | alexv-smirnov <[email protected]> | 2023-03-28 22:25:04 +0300 |
| commit | b8a17f9b1c166d2e9a26b99348a4c29d972caf55 (patch) | |
| tree | 1a2d881f1a9452b9c6103dbf69d73da7624e98e5 /contrib/tools/cython/Cython/Compiler/CodeGeneration.py | |
| parent | 25659221f18577ea38430a8ec3349836f5626b6a (diff) | |
Revert ymake build from ydb oss export
Diffstat (limited to 'contrib/tools/cython/Cython/Compiler/CodeGeneration.py')
| -rw-r--r-- | contrib/tools/cython/Cython/Compiler/CodeGeneration.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/contrib/tools/cython/Cython/Compiler/CodeGeneration.py b/contrib/tools/cython/Cython/Compiler/CodeGeneration.py deleted file mode 100644 index e64049c7f5d..00000000000 --- a/contrib/tools/cython/Cython/Compiler/CodeGeneration.py +++ /dev/null @@ -1,35 +0,0 @@ -from __future__ import absolute_import - -from .Visitor import VisitorTransform -from .Nodes import StatListNode - - -class ExtractPxdCode(VisitorTransform): - """ - Finds nodes in a pxd file that should generate code, and - returns them in a StatListNode. - - The result is a tuple (StatListNode, ModuleScope), i.e. - everything that is needed from the pxd after it is processed. - - A purer approach would be to separately compile the pxd code, - but the result would have to be slightly more sophisticated - than pure strings (functions + wanted interned strings + - wanted utility code + wanted cached objects) so for now this - approach is taken. - """ - - def __call__(self, root): - self.funcs = [] - self.visitchildren(root) - return (StatListNode(root.pos, stats=self.funcs), root.scope) - - def visit_FuncDefNode(self, node): - self.funcs.append(node) - # Do not visit children, nested funcdefnodes will - # also be moved by this action... - return node - - def visit_Node(self, node): - self.visitchildren(node) - return node |
