Internals: Rename some non-nodes to avoid Ast prefix. No functional change.

This commit is contained in:
Wilson Snyder
2022-01-02 10:37:20 -05:00
parent 340efe3a3a
commit b7ad1e6d61
16 changed files with 72 additions and 74 deletions
-2
View File
@@ -366,8 +366,6 @@ def read_types(filename):
supern = match.group(1) if match else ""
assert classn != "AstNode" or supern == "", "AstNode can't have a superclass"
if re.search(r'Ast', supern) or classn == "AstNode":
if supern == "AstNDeleter":
continue
classn = re.sub(r'^Ast', '', classn)
supern = re.sub(r'^Ast', '', supern)
Classes[classn] = supern