mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Move default excluded assembly definition
This commit is contained in:
@@ -10,11 +10,6 @@ class AllExternalPublicDeclarations extends GeneratedDeclaration {
|
||||
AllExternalPublicDeclarations() { this.fromLibrary() }
|
||||
}
|
||||
|
||||
/** All framework assemblies. */
|
||||
class NonTargetAssembly extends ExcludedAssembly {
|
||||
NonTargetAssembly() { this.getFile().getAbsolutePath().matches("%Microsoft.NETCore.App.Ref%") }
|
||||
}
|
||||
|
||||
from Assembly a
|
||||
select a.getFullName(), a.getName(), a.getVersion().toString(), a.getFile().getAbsolutePath(),
|
||||
generatedCode(a)
|
||||
|
||||
@@ -10,4 +10,13 @@ class AllDeclarations extends GeneratedDeclaration {
|
||||
AllDeclarations() { not this.fromLibrary() }
|
||||
}
|
||||
|
||||
/** Exclude types from these standard assemblies. */
|
||||
private class DefaultLibs extends ExcludedAssembly {
|
||||
DefaultLibs() {
|
||||
this.getName() = "System.Private.CoreLib" or
|
||||
this.getName() = "mscorlib" or
|
||||
this.getName() = "System.Runtime"
|
||||
}
|
||||
}
|
||||
|
||||
select concat(generatedCode(_) + "\n\n")
|
||||
|
||||
@@ -29,4 +29,13 @@ class UsedInSource extends GeneratedDeclaration {
|
||||
}
|
||||
}
|
||||
|
||||
/** Exclude types from these standard assemblies. */
|
||||
private class DefaultLibs extends ExcludedAssembly {
|
||||
DefaultLibs() {
|
||||
this.getName() = "System.Private.CoreLib" or
|
||||
this.getName() = "mscorlib" or
|
||||
this.getName() = "System.Runtime"
|
||||
}
|
||||
}
|
||||
|
||||
select concat(generatedCode(_) + "\n\n")
|
||||
|
||||
@@ -345,15 +345,6 @@ private class GeneratedNamespace extends Namespace, GeneratedElement {
|
||||
*/
|
||||
abstract class ExcludedAssembly extends Assembly { }
|
||||
|
||||
/** Exclude types from these standard assemblies. */
|
||||
private class DefaultLibs extends ExcludedAssembly {
|
||||
DefaultLibs() {
|
||||
this.getName() = "System.Private.CoreLib" or
|
||||
this.getName() = "mscorlib" or
|
||||
this.getName() = "System.Runtime"
|
||||
}
|
||||
}
|
||||
|
||||
private Virtualizable getAccessibilityDeclaringVirtualizable(Virtualizable v) {
|
||||
if not v.isOverride()
|
||||
then result = v
|
||||
|
||||
Reference in New Issue
Block a user