equal
deleted
inserted
replaced
35 import com.sun.tools.javac.code.Lint.LintCategory; |
35 import com.sun.tools.javac.code.Lint.LintCategory; |
36 import com.sun.tools.javac.code.Scope.ImportFilter; |
36 import com.sun.tools.javac.code.Scope.ImportFilter; |
37 import com.sun.tools.javac.code.Scope.NamedImportScope; |
37 import com.sun.tools.javac.code.Scope.NamedImportScope; |
38 import com.sun.tools.javac.code.Scope.StarImportScope; |
38 import com.sun.tools.javac.code.Scope.StarImportScope; |
39 import com.sun.tools.javac.code.Scope.WriteableScope; |
39 import com.sun.tools.javac.code.Scope.WriteableScope; |
|
40 import com.sun.tools.javac.code.Source.Feature; |
40 import com.sun.tools.javac.comp.Annotate.AnnotationTypeMetadata; |
41 import com.sun.tools.javac.comp.Annotate.AnnotationTypeMetadata; |
41 import com.sun.tools.javac.tree.*; |
42 import com.sun.tools.javac.tree.*; |
42 import com.sun.tools.javac.util.*; |
43 import com.sun.tools.javac.util.*; |
43 import com.sun.tools.javac.util.DefinedBy.Api; |
44 import com.sun.tools.javac.util.DefinedBy.Api; |
44 |
45 |
135 deferredLintHandler = DeferredLintHandler.instance(context); |
136 deferredLintHandler = DeferredLintHandler.instance(context); |
136 lint = Lint.instance(context); |
137 lint = Lint.instance(context); |
137 typeEnvs = TypeEnvs.instance(context); |
138 typeEnvs = TypeEnvs.instance(context); |
138 dependencies = Dependencies.instance(context); |
139 dependencies = Dependencies.instance(context); |
139 Source source = Source.instance(context); |
140 Source source = Source.instance(context); |
140 allowTypeAnnos = source.allowTypeAnnotations(); |
141 allowTypeAnnos = Feature.TYPE_ANNOTATIONS.allowedInSource(source); |
141 allowDeprecationOnImport = source.allowDeprecationOnImport(); |
142 allowDeprecationOnImport = Feature.DEPRECATION_ON_IMPORT.allowedInSource(source); |
142 } |
143 } |
143 |
144 |
144 /** Switch: support type annotations. |
145 /** Switch: support type annotations. |
145 */ |
146 */ |
146 boolean allowTypeAnnos; |
147 boolean allowTypeAnnos; |