mirror of
https://github.com/irmen/prog8.git
synced 2026-04-22 08:16:49 +00:00
got rid of PtScopeVarsDecls node, just insert variable nodes directly
This commit is contained in:
@@ -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? {
|
||||
|
||||
Reference in New Issue
Block a user