Commit Graph

19966 Commits

Author SHA1 Message Date
Andrey Breslav ff9e6d849f Code from ImportsResolver moved, the class renamed to PlatformTypesMappedToKotlinChecker 2015-01-29 16:07:28 +03:00
Andrey Breslav 794bb07eb5 Unused code removed from ImportsResolver 2015-01-29 16:07:28 +03:00
Andrey Breslav 51c1e1268e Minor. Pointless annotations removed 2015-01-29 16:07:28 +03:00
Andrey Breslav 43a0f29a85 Unused code removed from VarianceChecker 2015-01-29 16:07:28 +03:00
Andrey Breslav 3a494ac040 Unused code removed from OverrideResolver 2015-01-29 16:07:27 +03:00
Andrey Breslav 828507de78 Unused code removed from DeclarationResolver 2015-01-29 16:07:27 +03:00
Andrey Breslav 2b432dd085 TopDownAnalyzer and TypeHierarchyResolver deleted 2015-01-29 16:07:27 +03:00
Andrey Breslav 6395fd819f Got rid of non-lazy local classifier analyzer 2015-01-29 16:07:27 +03:00
Andrey Breslav c59cb09398 Don't fail on nameless classes (syntax errors) 2015-01-29 16:07:27 +03:00
Andrey Breslav ed4da90dcd Outer DataFlowInfo delivered to local class members 2015-01-29 16:07:26 +03:00
Andrey Breslav 7323ef7002 Minor. Noisy warnings removed from test data 2015-01-29 16:07:26 +03:00
Andrey Breslav b4b0b84228 Support LOCAL visibility for lazy classes 2015-01-29 16:07:26 +03:00
Andrey Breslav 0fe191b028 Registering local classes with the outer scope 2015-01-29 16:07:26 +03:00
Andrey Breslav 7036cb8f42 Object expressions fixed 2015-01-29 16:07:26 +03:00
Andrey Breslav 202c44e969 Create LazyClassDescriptors for local classes 2015-01-29 16:07:25 +03:00
Andrey Breslav d016aa8f4d Take inherited setters into account 2015-01-29 16:07:25 +03:00
Andrey Breslav 483e20affc LazyLocalClassifierAnalyzer introduced 2015-01-29 16:07:25 +03:00
Andrey Breslav 5b4682dd0e LazyTopDownAnalyzer does not depend on ResolveSession or ScopeProvider any more 2015-01-29 16:07:25 +03:00
Andrey Breslav e16885c301 LazyTopDownAnalyzerForTopLevel extracted 2015-01-29 16:07:25 +03:00
Andrey Breslav 6285efe32d LazyDeclarationResolver extracted from ResolveSession 2015-01-29 16:07:24 +03:00
Andrey Breslav b5503f3acf DeclarationScopeProviderImpl extracted 2015-01-29 16:07:24 +03:00
Andrey Breslav dae5ec24e2 LazyTopDownAnalyzer is always called in LAZY mode 2015-01-29 16:07:24 +03:00
Andrey Breslav 48ae469d13 Minor. @Override added 2015-01-29 16:07:24 +03:00
Andrey Breslav b8abfbb10d LazyClassContext introduced 2015-01-29 16:07:24 +03:00
Alexander Udalov de3f096ae1 Test classpath order of sources vs library dependencies 2015-01-28 19:58:37 +03:00
Alexander Udalov 2253567e36 Tests: use preloader instead of URLClassLoader in MockLibraryUtil
This fixes runtime dependency of the compiler and thus allows to run tests
which use MockLibraryUtil in case of an ABI-incompatible change; also it's
slightly more efficient (noticeable when running a single test)
2015-01-28 19:58:36 +03:00
Alexander Udalov 5903b8c4a7 Reorder and optimize dependencies between modules and libraries
- drop 'kotlin-runtime' and other dependencies which are exported by
  other modules ('util' and 'util.runtime' in case of 'kotlin-runtime')
- make all Kotlin modules from the compiler depend on 'util' for clarity
- put 'util' and 'util.runtime' to the bottom of the list everywhere: when
  kotlin-runtime gets reflection, classes from core/ should have higher
  priority than their previous versions from kotlin-runtime.jar
2015-01-28 19:58:35 +03:00
Alexander Udalov 2c8cad6628 Minor, inline some CompileEnvironmentUtil utilities 2015-01-28 19:58:34 +03:00
Alexander Udalov 7e988b04b4 Refactor compiler source root duplicate check 2015-01-28 19:58:34 +03:00
Alexander Udalov 93f02aeead Add source directories to classpath in CLI compiler
Move this logic from Ant and Maven plugins
2015-01-28 19:58:33 +03:00
Alexander Udalov 3ea59117ac Simplify code in module script/xml generation
Pass classpath and annotation roots explicitly instead of wrapped in a callback
2015-01-28 19:58:32 +03:00
Alexander Udalov fa2116040e Modules.xml: add Java sources right after Kotlin sources
Java sources should appear before classpath dependencies because they should
have higher priority if the same symbol is located in the module source and in
the classpath. This is so because by default module source has the highest
priority in IDEA except the JDK. Ideally this will be handled later by full
support of modules in the compiler
2015-01-28 19:58:31 +03:00
Alexander Udalov eb3588bd0a Minor, don't add external annotation roots multiple times 2015-01-28 19:58:31 +03:00
Alexander Udalov 59937aad14 CLI compiler: add runtime after user's classpath
Otherwise weird compilation errors in our project are expected as soon as
kotlin-runtime.jar will contain modules from "core". Suppose a Java class from
core/ has changed; the CLI compiler will then see its own (old) version of that
class from kotlin-runtime.jar before the actual new version from sources
2015-01-28 19:58:30 +03:00
Alexander Udalov d6b67523f6 Improve error message on error types in JetTypeMapper
#KT-6684
2015-01-28 15:25:37 +03:00
Nikolay Krasko 825a194429 Temp workaround for build test failed when parser tests are executed first 2015-01-28 15:12:28 +03:00
Evgeny Gerashchenko 897854b3dc KT-6671 Report unused constructor parameters
#KT-6671 fixed
2015-01-27 22:38:27 +03:00
Evgeny Gerashchenko f96f1b8cb0 Don't run inspection for test data. 2015-01-27 19:44:31 +03:00
Evgeny Gerashchenko a6362dda22 Added workaround for linkage error in IDEA 14.0-14.0.2 2015-01-27 16:43:01 +03:00
Natalia Ukhorskaya 9057e84c6d Remove isKtFileInWrongFolder 2015-01-26 16:48:36 +03:00
Natalia Ukhorskaya 11f7b45ce3 Gradle: collect kotlin files from java source root 2015-01-26 16:48:35 +03:00
Natalia Ukhorskaya 71ec5591f1 Cleanup SpecialFiles for Android tests 2015-01-26 16:48:35 +03:00
Nikolay Krasko 234f56a3c4 Compiler jar locator 2015-01-26 14:25:07 +03:00
Evgeny Gerashchenko 6ffe49f1d2 KT-6582 "Expand selection" in string literal should select word in string
#KT-6582 fixed
2015-01-22 19:10:01 +03:00
Alexey Sedunov 0159f95111 Update to IDEA 139.1116 2015-01-22 17:00:21 +03:00
Dmitry Jemerov 0aa14c35f7 Merge pull request #553 from JetBrains/text-or-link
include TEXT_OR_LINK in the list of content tokens; fix incorrect testdata
2015-01-22 14:24:42 +01:00
Dmitry Jemerov dbba0b769b include TEXT_OR_LINK in the list of content tokens; fix incorrect testdata 2015-01-22 14:05:03 +01:00
Andrey Breslav a8cb7c832b Fix compilation 2015-01-22 15:42:27 +03:00
Evgeny Gerashchenko 386854d73f Unused object.
unusedButEntryPointMain for class was actually a wrong test: it didn't check anything, because objects are were not checked for unusedness before.
2015-01-22 15:26:49 +03:00
Evgeny Gerashchenko a797f4a328 Minor. Reduced code duplication. 2015-01-22 15:26:48 +03:00