mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
For now, these have just been made into `private` imports. After doing
this, I went through all of the (now not compiling) files and added in
private imports to the modules that they actually depended on.
I also added an explicit import of `LegacyPointsTo` (even though it may
be unnecessary) in cases where the points-to dependency was somewhat
surprising (and one we want to get rid of). This was primarily inside
the various SSA layers.
For modules inside `semmle.python.{types, objects, pointsto}` I did not
bother, as these are fairly clearly related to points-to.
29 lines
819 B
Plaintext
29 lines
819 B
Plaintext
import semmle.python.dependencies.Dependencies
|
|
private import LegacyPointsTo
|
|
|
|
/**
|
|
* A library describing an abstract mechanism for representing dependency categories.
|
|
*/
|
|
/*
|
|
* A DependencyCategory is a unique string key used by Architect to identify different categories
|
|
* of dependencies that might be viewed independently.
|
|
* <p>
|
|
* The string key defining the category must adhere to the isValid(), otherwise it will not be
|
|
* accepted by Architect.
|
|
* </p>
|
|
*/
|
|
|
|
abstract class DependencyKind extends string {
|
|
bindingset[this]
|
|
DependencyKind() { this = this }
|
|
|
|
/* Tech inventory interface */
|
|
/**
|
|
* Identify dependencies associated with this category.
|
|
* <p>
|
|
* The source element is the source of the dependency.
|
|
* </p>
|
|
*/
|
|
abstract predicate isADependency(AstNode source, Object target);
|
|
}
|