diff options
author | Paul Phillips <paulp@improving.org> | 2013-05-11 13:02:53 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-05-11 13:02:53 -0700 |
commit | 1850ddf380789e364813111282af5ff11e65b52c (patch) | |
tree | 38ae4b5f4f56cf5e24b7ac639b4fb297c171f070 /test/files/run/analyzerPlugins.check | |
parent | c85a507ba815643faacd8e07270efbd83b700846 (diff) | |
download | scala-1850ddf380789e364813111282af5ff11e65b52c.tar.gz scala-1850ddf380789e364813111282af5ff11e65b52c.tar.bz2 scala-1850ddf380789e364813111282af5ff11e65b52c.zip |
Corralling Modes into a smaller pen.
Attempting to reduce the frequency of low-level operations
with modes. I mean stuff like this:
if ((mode & (EXPRmode | LHSmode)) == EXPRmode)
THey don't make those ten line boolean guards any easier
to understand. Hopefully this will lead us toward eliminating
some of the modes entirely, or at least better isolating
their logic rather than having it interspersed at arbitrary
points throughout the typer.
Modes are in their entirety a leaked implementation detail.
Typing a tree requires a tree and optionally an expected type.
It shouldn't require a bucket of state bits. In subsequent
commits I will start eliminating them.
This commit also breaks adapt down into more digestible chunks.
Diffstat (limited to 'test/files/run/analyzerPlugins.check')
-rw-r--r-- | test/files/run/analyzerPlugins.check | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/analyzerPlugins.check b/test/files/run/analyzerPlugins.check index 641fbfff6b..e3ab554d4c 100644 --- a/test/files/run/analyzerPlugins.check +++ b/test/files/run/analyzerPlugins.check @@ -7,7 +7,7 @@ annotationsConform(Int @testAnn, Int) [2] annotationsConform(Int(1) @testAnn, Int) [1] annotationsConform(Int(1), Int @testAnn) [1] annotationsConform(Nothing, Int @testAnn) [2] -annotationsConform(String @testAnn, String) [1] +annotationsConform(String @testAnn, String) [2] canAdaptAnnotations(Trees$Ident, String) [1] canAdaptAnnotations(Trees$Select, ?) [1] canAdaptAnnotations(Trees$Select, Boolean @testAnn) [1] |