diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2013-01-29 13:53:30 +0100 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2013-02-03 21:08:34 +0100 |
commit | 7e836f83e2930755f5d6b896a140909eb686289d (patch) | |
tree | c4e8d2b0b5a8452a6fcda8bca5f0451e08778735 /test/scaladoc | |
parent | b74c33eb860622e3630949ee0eeac9c15e8df166 (diff) | |
download | scala-7e836f83e2930755f5d6b896a140909eb686289d.tar.gz scala-7e836f83e2930755f5d6b896a140909eb686289d.tar.bz2 scala-7e836f83e2930755f5d6b896a140909eb686289d.zip |
Analyzer Plugins
AnnotationCheckers are insufficient because they live outside the
compiler cake and it's not possible to pass a Typer into an annotation
checker.
Analyzer plugins hook into important places of the compiler:
- when the namer assigns a type to a symbol (plus a special hook for
accessors)
- before typing a tree, to modify the expected type
- after typing a tree, to modify the type assigned to the tree
Analyzer plugins and annotation checker can be activated only during
selected phases of the compiler.
Refactored the CPS plugin to use an analyzer plugin (since
adaptToAnnotations is now part of analyzer plugins, no longer
annotation checkers).
Diffstat (limited to 'test/scaladoc')
0 files changed, 0 insertions, 0 deletions