Commit Graph

19981 Commits

Author SHA1 Message Date
Svetlana Isakova 971ad53bcc Introduced ConstraintError for storing errors in the constraint system 2015-01-30 13:33:35 +03:00
Zalim Bashorov 4f61ead1de K2JS: fix breakpoints when use JavaScript debugger. 2015-01-29 22:25:30 +03:00
Evgeny Gerashchenko 8f8a9b52e7 Fixed compilation error for IDEA 14.1+ (140 branch) 2015-01-29 21:48:46 +03:00
Evgeny Gerashchenko da7762e003 Fixed compilation error for IDEA 14.1+ (140 branch) 2015-01-29 21:04:54 +03:00
Andrey Breslav c3e65d1684 Work around compiler bug: rewriting one trait in Java 2015-01-29 16:07:30 +03:00
Andrey Breslav 9d7f12b69e Minor. Code simplified 2015-01-29 16:07:30 +03:00
Andrey Breslav 8754ebb939 Minor. Rename method 2015-01-29 16:07:30 +03:00
Andrey Breslav 25dffeef28 Do not modify already existing components 2015-01-29 16:07:30 +03:00
Andrey Breslav 9c469a7dff Don't make generated methods of local data classes LOCAL 2015-01-29 16:07:30 +03:00
Andrey Breslav eebe013de2 getEnclosingElementForLocalDeclaration() made stub-friendly 2015-01-29 16:07:29 +03:00
Andrey Breslav da238cffaf Visibility of local classes is LOCAL 2015-01-29 16:07:29 +03:00
Andrey Breslav 4d66551067 Call analyzeDeclarations() that includes files where it was called before refactoring 2015-01-29 16:07:29 +03:00
Andrey Breslav 6035260e68 LOCAL classes are ACC_PUBLIC in byte code 2015-01-29 16:07:29 +03:00
Andrey Breslav 54a50ef0b5 Unused infrastructure of MutableClassDescriptor removed 2015-01-29 16:07:29 +03:00
Andrey Breslav ff133b66ed Minor. Method made private 2015-01-29 16:07:28 +03:00
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