修正了 TPC 的一些错误,包括 Test 维护后 TPV 无法重新编译或重编译后越界的部分问题
This commit is contained in:
1 parent
ab73420b4f
commit
a277ded8d4
476 files changed
+4000
-3439
No files matched your search
@@ -204,3 +204,11 @@ def AnnotationContainsName(annotation: ast.AST, name: str) -> bool:
|
||||
if isinstance(annotation, ast.BinOp) and isinstance(annotation.op, ast.BitOr):
|
||||
return AnnotationContainsName(annotation.left, name) or AnnotationContainsName(annotation.right, name)
|
||||
return False
|
||||
|
||||
|
||||
def IsCPtrNode(node: ast.AST) -> bool:
|
||||
"""检查节点是否为 t.CPtr 属性引用。"""
|
||||
return (isinstance(node, ast.Attribute)
|
||||
and isinstance(node.value, ast.Name)
|
||||
and node.value.id == 't'
|
||||
and node.attr == 'CPtr')
|
||||
Reference in new issue
Block a user