got rid of PtScopeVarsDecls node, just insert variable nodes directly

This commit is contained in:
Irmen de Jong
2023-01-29 13:25:15 +01:00
parent e9ec310d8a
commit e08da659e5
4 changed files with 12 additions and 22 deletions
-6
View File
@@ -134,12 +134,6 @@ class PtNop(position: Position): PtNode(position) {
}
class PtScopeVarsDecls(position: Position): PtNode(position) {
override fun printProperties() {}
}
// find the parent node of a specific type or interface
// (useful to figure out in what namespace/block something is defined, etc.)
inline fun <reified T> findParentNode(node: PtNode): T? {