mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Only stub declarations from libraries
This commit is contained in:
@@ -7,10 +7,7 @@ import Stubs
|
||||
|
||||
/** All public declarations from assemblies. */
|
||||
class AllExternalPublicDeclarations extends GeneratedDeclaration {
|
||||
AllExternalPublicDeclarations() {
|
||||
this.fromLibrary() and
|
||||
this.(Modifiable).isEffectivelyPublic()
|
||||
}
|
||||
AllExternalPublicDeclarations() { this.fromLibrary() }
|
||||
}
|
||||
|
||||
/** All framework assemblies. */
|
||||
|
||||
@@ -25,8 +25,7 @@ class UsedInSource extends GeneratedDeclaration {
|
||||
or
|
||||
this = any(Attribute a).getType().getAConstructor()
|
||||
) and
|
||||
this.fromLibrary() and
|
||||
this.(Modifiable).isEffectivelyPublic()
|
||||
this.fromLibrary()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -148,7 +148,9 @@ abstract private class GeneratedType extends ValueOrRefType, GeneratedElement {
|
||||
* This is extended in client code to identify the actual
|
||||
* declarations that should be generated.
|
||||
*/
|
||||
abstract class GeneratedDeclaration extends Declaration { }
|
||||
abstract class GeneratedDeclaration extends Declaration {
|
||||
GeneratedDeclaration() { this.(Modifiable).isEffectivelyPublic() }
|
||||
}
|
||||
|
||||
private class IndirectType extends GeneratedType {
|
||||
IndirectType() {
|
||||
|
||||
Reference in New Issue
Block a user