Commit Graph

26836 Commits

Author SHA1 Message Date
pyos 2f4f09e3a2 JVM_IR: remove some redundant calls to deepCopyWithSymbols 2019-11-28 15:42:06 +01:00
Simon Ogorodnik dbf0742c00 [FIR] Fix self-type for enum 2019-11-28 17:23:05 +03:00
Vyacheslav Gerasimov 26113b1e0f Create target directories while copying compiler.xml for tests 2019-11-28 16:02:41 +03:00
Mikhail Glukhikh 6401596d58 FIR resolve: support processing extensions before members (forEach case) 2019-11-28 15:36:58 +03:00
Dmitriy Novozhilov 61c17d9110 [FIR-TEST] Add test with missing smartcast 2019-11-28 15:28:21 +03:00
Dmitriy Novozhilov dcd1c2647e [FIR-TEST] Add test with problem with default java importing scope 2019-11-28 15:28:21 +03:00
Dmitriy Novozhilov bb89fee431 [FIR-TEST] Add test with ambiguity in static java scopes 2019-11-28 15:28:20 +03:00
Roman Artemev 4759c16428 [JS IR] Fix IrGetClass for Throwable successors
- add test
2019-11-28 14:45:34 +03:00
Yan Zhulanow 606cad1059 Pill: Add fir/lightTree module 2019-11-28 20:02:41 +09:00
Yan Zhulanow 60a77acd7a Pill: Fix compiler tests (support both JPS build and Pill in JUnit 3 runner) 2019-11-28 20:02:40 +09:00
Mikhail Glukhikh f58af2e4c3 FIR2IR: fix constructor referencing in return statement 2019-11-28 13:50:10 +03:00
Mikhail Glukhikh 29e882eae7 FIR resolve: add minor comments about substitutions around JvmMappedScope 2019-11-28 13:18:11 +03:00
Mikhail Glukhikh e43a1ee1c5 FIR JvmMappedScope: substitute type parameters in Java scope with Kotlin ones
Without it, override mapping does not work properly.
NB: at this moment Java forEach often supersedes Kotlin forEach,
because call isn't reported as erroneous properly.
2019-11-28 13:18:11 +03:00
Mikhail Glukhikh 2c611d75bc [FIR TEST]: two more tests on forEach potential ambiguity (both passing) 2019-11-28 13:18:10 +03:00
Mikhail Glukhikh 4f1167b16f Move buildDefaultUseSiteMemberScope to FirSymbolProvider 2019-11-28 13:18:10 +03:00
Mikhail Glukhikh 71b95bd91d FIR resolve: make substitution also for mapped Java type parameters 2019-11-28 13:18:10 +03:00
Mikhail Glukhikh b3056b8bf5 FIR resolve: implement JVM K/J type mapping
Declared member scopes are now wrapped in JvmMappedScope
2019-11-28 13:18:10 +03:00
Mikhael Bogdanov 742c3a228a JVM_IR. Proper lower toArray functions 2019-11-28 08:31:15 +01:00
Georgy Bronnikov 1ed23d7c54 IR: reorganize IrProvider handling
Make DeclarationStubGenerator a subclass of IrProvider,
anticipating deserialization of IR structures for JVM_IR backend.
2019-11-27 20:02:27 +03:00
Dmitriy Novozhilov e38fdae1bc Regenerate DiagnosticsTestWithJsStdLibGenerated 2019-11-27 18:03:05 +03:00
Dmitriy Novozhilov 5190ff9733 [FIR-TEST] Add test with SAM conversion in constructor call 2019-11-27 18:01:20 +03:00
Dmitriy Novozhilov 71acd42727 [FIR-TEST] Add test with ambiguity produced by definitely not null types 2019-11-27 18:01:20 +03:00
Simon Ogorodnik d59a171b65 [FIR] Fix isMyTypeVariable in ConeInferenceContext 2019-11-27 17:15:07 +03:00
victor.petukhov dbacae94d0 Fix common super type calculation for captured dynamic types
^KT-32499 Fixed
2019-11-27 15:48:00 +03:00
Dmitriy Novozhilov 567248ebd7 [FIR] Add default upper bounds to type parameter of synthetic when and try calls 2019-11-27 15:00:03 +03:00
Dmitriy Novozhilov 5770d19d61 [FIR] Fix calculating of completion mode 2019-11-27 15:00:03 +03:00
Dmitriy Novozhilov 9c3117ba40 [FIR] Git rid of creating new when and try fir nodes
It's necessary because of before change we safe original `when`
  without infered type as return statement of lambda and after that
  we add incorrect constraint system from it to outer call
2019-11-27 15:00:03 +03:00
Dmitriy Novozhilov 8085ec8b0b [FIR-TEST] Add test with ambiguity between java field and java accessor 2019-11-27 15:00:03 +03:00
Dmitriy Novozhilov 3c661dd142 [FIR-TEST] Add test with unresolved invoke of lambda with receiver 2019-11-27 15:00:03 +03:00
Dmitriy Novozhilov 96d3a06129 [FIR-TEST] Add test with hiding local functions 2019-11-27 15:00:03 +03:00
Dmitriy Novozhilov 5d14c76f70 [FIR-TEST] Add test with unresolved Array<T>.clone() 2019-11-27 15:00:02 +03:00
Dmitriy Novozhilov 4059fae1b7 [FIR-TEST] Add test with type mismatch on receiver with captured type 2019-11-27 15:00:02 +03:00
Dmitriy Novozhilov 572256e2eb [FIR-TEST] Add test with not-working bound smartcast 2019-11-27 15:00:02 +03:00
Mark Punzalan 1a2e09e6a5 ForLoopsLowering: Handle Iterable.withIndex() where the type is a
bounded type parameter.

TODO: Handle Sequences by extending DefaultIterableHandler.
2019-11-27 10:59:34 +01:00
Denis Zharkov 00a70c51f0 FIR: Generate fake overrides always if there are type parameters
See the comment
2019-11-27 11:20:52 +03:00
Denis Zharkov 8efd59403d FIR: Avoid redundant substitution when type parameters don't change 2019-11-27 11:20:52 +03:00
Denis Zharkov 07a4352809 FIR: Add hack for Fir2IrVisitor
See the comment
2019-11-27 11:20:52 +03:00
Denis Zharkov 3b7ad066fc FIR: Substitute type alias constructors properly 2019-11-27 11:20:52 +03:00
Denis Zharkov f68929fe74 FIR: Leave functions type parameters in subsituting scope 2019-11-27 11:20:52 +03:00
Denis Zharkov b5ef063b0f FIR: Cache functions in use-site member scope 2019-11-27 11:20:52 +03:00
Denis Zharkov f659dc0bea FIR: Add synthetic values/valueOf methods to Java classes 2019-11-27 11:20:52 +03:00
Denis Zharkov 256f5ca0a1 FIR: Support inherited default parameters 2019-11-27 11:20:52 +03:00
Mads Ager 8d5e5210a6 JVM_IR: Copy annotations to suspend function views. 2019-11-26 21:00:50 +03:00
Leonid Startsev ed786c4daf Enable compiler plugins in JS IR backend (and WASM too, since they use same loadIr function) 2019-11-26 19:34:48 +03:00
Jiaxiang Chen 0441e484a6 PSI2IR: For implicit function return, use expression's end offset as start offset of the IrReturn to generarate correct line number. 2019-11-26 17:59:28 +03:00
Jiaxiang Chen e49431a12c Debug information test: make stepping information more readable. 2019-11-26 17:59:28 +03:00
Jiaxiang Chen 331b085b2f JVM_IR: Fix line number for catch clause. 2019-11-26 17:59:28 +03:00
Jiaxiang Chen 3ea878b1c6 JVM_IR: Fix line number for varible initializer 2019-11-26 17:59:28 +03:00
Nikolay Krasko 5d6333f0f4 193: Better services registration for parser tests 2019-11-26 15:39:27 +03:00
Leonid Startsev 3d2800f99b Move out symbols that do not depend on a BackendContext to a separate BuiltinSymbolsBase class.
The goal was to be able to use such symbols before BackendContext is even created – in psi2ir postprocessing step (i.e., IR compiler plugins).

Remove old code from serialization ir plugin.
2019-11-26 15:26:35 +03:00