-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Weitian Xing <xingweitian@gmail.com> Co-authored-by: Baorui Zhou <b42zhou@uwaterloo.ca> Co-authored-by: Jeff Luo <j36luo@uwaterloo.ca> Co-authored-by: Mier Ta <topnessman@sina.com>
- Loading branch information
1 parent
e78b5d2
commit 2cfe035
Showing
28 changed files
with
1,524 additions
and
1,441 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package universe; | ||
|
||
import org.checkerframework.framework.source.SourceChecker; | ||
import universe.qual.Any; | ||
import universe.qual.Bottom; | ||
import universe.qual.Lost; | ||
import universe.qual.Peer; | ||
import universe.qual.Rep; | ||
import universe.qual.Self; | ||
import org.checkerframework.dataflow.qual.Pure; | ||
import org.checkerframework.javacutil.AnnotationBuilder; | ||
|
||
import javax.lang.model.element.AnnotationMirror; | ||
import javax.lang.model.util.Elements; | ||
|
||
/** | ||
* Class that declares the AnnotationMirrors used by typecheck and inference | ||
* | ||
*/ | ||
|
||
public class UniverseAnnotationMirrorHolder { | ||
|
||
public static AnnotationMirror ANY, PEER, REP, LOST, SELF, BOTTOM, PURE; | ||
|
||
public static void init(SourceChecker checker) { | ||
Elements elements = checker.getElementUtils(); | ||
ANY = AnnotationBuilder.fromClass(elements, Any.class); | ||
PEER = AnnotationBuilder.fromClass(elements, Peer.class); | ||
REP = AnnotationBuilder.fromClass(elements, Rep.class); | ||
LOST = AnnotationBuilder.fromClass(elements, Lost.class); | ||
SELF = AnnotationBuilder.fromClass(elements, Self.class); | ||
BOTTOM = AnnotationBuilder.fromClass(elements, Bottom.class); | ||
PURE = AnnotationBuilder.fromClass(elements, Pure.class); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.