Remove and replace @anonymousclassdeclstmt with @localtypedeclstmt

This commit is contained in:
Tamas Vajk
2021-12-07 15:24:44 +01:00
committed by Ian Lynagh
parent e325925f5a
commit fa5c3f9159
6 changed files with 17 additions and 40 deletions

View File

@@ -987,10 +987,6 @@ private module ControlFlowGraphImpl {
completion = YieldCompletion(branchCompletion)
)
)
or
n instanceof KtAnonymousClassDeclarationStmt and
last = n and
completion = NormalCompletion()
}
/**

View File

@@ -911,16 +911,3 @@ class KtBreakStmt extends BreakStmt, KtBreakContinueStmt { }
/** A Kotlin `continue` statement. */
class KtContinueStmt extends ContinueStmt, KtBreakContinueStmt { }
class KtAnonymousClassDeclarationStmt extends Stmt, @anonymousclassdeclstmt {
Class c;
KtAnonymousClassDeclarationStmt() { ktAnonymousClassDeclarationStmts(this, c) }
/** Gets the class declaration belonging to this declaration statement. */
AnonymousClass getDeclaration() { result = c }
override string getAPrimaryQlClass() { result = "KtAnonymousClassDeclarationStmt" }
override string toString() { result = "{ ... }" }
}