Remove trait `DependencyContext` in favor of enum

Since `DependencyContext` is needed in the compiler interface
subproject, it has to be defined in this same subproject.

`DependencyContext` is needed in this subproject because the
`AnalysisCallback` interface uses it.
This commit is contained in:
Martin Duhem 2014-11-18 23:42:00 +01:00
parent 74576b5d0f
commit f3d5000297
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
package xsbti;
/**
* Enumeration of existing dependency contexts.
* Dependency contexts represent the various kind of dependencies that
* can exist between symbols.
*/
public enum DependencyContext {
/**
* Represents a direct dependency between two symbols :
* object Foo
* object Bar { def foo = Foo }
*/
DependencyByMemberRef,
/**
* Represents an inheritance dependency between two symbols :
* class A
* class B extends A
*/
DependencyByInheritance
}