Move default excluded assembly definition

This commit is contained in:
Tamas Vajk
2021-05-21 14:08:32 +02:00
parent f597c9a7ed
commit d7a93a5367
4 changed files with 18 additions and 14 deletions

View File

@@ -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)

View File

@@ -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")

View File

@@ -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")

View File

@@ -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