Java: extend definition of isCompilerGenerated for classes

This commit is contained in:
idrissrio
2025-08-21 15:26:50 +02:00
parent b2ef60c165
commit fc1b9277b3

View File

@@ -702,6 +702,12 @@ class Class extends ClassOrInterface {
/** Holds if this class is an implicit class (compact source file). */
predicate isImplicit() { isImplicitClass(this.getSourceDeclaration()) }
/** Holds if this is an auxiliary program element generated by the compiler. */
override predicate isCompilerGenerated() {
super.isCompilerGenerated() or
this.isImplicit()
}
/**
* Gets an annotation that applies to this class.
*