Commit Graph

12043 Commits

Author SHA1 Message Date
Natalia.Ukhorskaya 5021bf3cd7 Fix line separators 2013-09-20 16:04:09 +04:00
Natalia.Ukhorskaya b0236b2dc3 Fix lexical mismatch 2013-09-19 17:55:23 +04:00
Alexey Sedunov ecab2a2039 Implement extension of method usages search to cover usages of overriding functions in Kotlin 2013-09-19 16:01:31 +04:00
Mikhael Bogdanov fc1c3a2e23 KT-3978: Kotlin: [Internal Error] org.jetbrains.jet.codegen.CompilationException: Back-end (JVM) Internal error: null
#KT-3978 Fixed
2013-09-19 15:40:28 +04:00
Mikhael Bogdanov 0486e6cf4c Substitute CALLABLE_REFERENCE slice with FUNCTION one 2013-09-19 15:11:52 +04:00
Mikhael Bogdanov 59c04bd4cf Do direct call to local functions, inplace closures, and callable references (not via bridge method) 2013-09-19 15:11:49 +04:00
Zalim Bashorov ebecc7b8ac J2K: Convert a Java code from clipboard only when paste it (to Kotlin file) instead of when copy to clipboard. 2013-09-18 21:25:09 +04:00
Zalim Bashorov 4dd880f99c J2K: improved asserts.
(Additionally it needs for investigate EA-37704)
2013-09-18 21:25:08 +04:00
Alexander Udalov 7faf8ef92a Change annoying LOG.error to warn
Must be fixed with thread-safe JDR
2013-09-18 20:14:42 +04:00
Alexander Udalov 5b03178820 Remove dependency of 'serialization' on 'frontend' 2013-09-18 18:45:35 +04:00
Alexander Udalov 5119afae52 Extract 'descriptors' module 2013-09-18 18:45:34 +04:00
Alexander Udalov 43596f7450 Move utilities from 'frontend' to 'util'
They're also used in 'serialization'
2013-09-18 17:21:12 +04:00
Alexander Udalov 3504246983 Move AbstractLazyTypeParameterDescriptor to descriptors/impl/ 2013-09-18 17:21:12 +04:00
Alexander Udalov 4bc410daa2 Move ErrorValueWithDiagnostic to CompileTimeConstantResolver 2013-09-18 17:21:12 +04:00
Alexander Udalov 4611f5f526 Move constant error types to TypeUtils
They're used from different places that will be available at runtime
2013-09-18 17:21:11 +04:00
Alexander Udalov 8e59e789dc Extract util.runtime module out of util
Cleanup module dependencies: a lot of modules depended on 'frontend.java' just
to use something from 'util' module, exported by 'frontend.java', whereas they
really need nothing from 'frontend.java'. Also 'frontend.java' just exported
'util', not using anything from it.

Create a new 'util.runtime' module, which will be available at runtime. Make
'util' export 'util.runtime' and make all modules who needed these utils depend
on 'util' directly instead of 'frontend.java'
2013-09-18 17:21:11 +04:00
Alexander Udalov 15efeaba22 Use 'generators' module and its dependencies for 'All Tests' 2013-09-18 17:21:11 +04:00
Alexander Udalov c029cbdf62 Do not escape AS_SAFE,NOT_IN,NOT_IS in DescriptorRenderer 2013-09-18 17:20:45 +04:00
Alexander Udalov 3da06ee110 Generate keyword strings for DescriptorRenderer
This is done in order to kill dependency of DescriptorRendererImpl on JetTokens
2013-09-18 17:01:41 +04:00
Alexander Udalov df875b892f Move generators sources to generators/src/ 2013-09-18 17:01:41 +04:00
Alexander Udalov e8b10b3e4d Delete ErrorUtils.isError(TypeConstructor) 2013-09-18 16:46:07 +04:00
Alexander Udalov dea1e6650f Minor, remove unused methods from ErrorUtils
Inline methods, annotate with NotNull
2013-09-18 16:41:48 +04:00
Alexander Udalov b7f1e61be9 Add JetType.isError()
Instead of ErrorUtils.isErrorType() which does several instanceof checks anyway
2013-09-18 16:41:48 +04:00
Alexander Udalov bab8fafd7b Minor, delete useless class 2013-09-18 16:41:48 +04:00
Alexander Udalov 215a5f46b6 Move ROOT_NAMESPACE_NAME to DescriptorUtils
KotlinBuiltIns depends on it, but it cannot depend on JetPsiUtil, because
descriptors module should not depend on PSI
2013-09-18 16:41:47 +04:00
Alexander Udalov 5f930bca31 Move Renderer to org.jetbrains.jet.renderer 2013-09-18 16:41:47 +04:00
Alexander Udalov 6778b38f79 Delete ReceiverValueVisitor
This is done because this visitor ties all ReceiverValue's together, which
makes descriptors depend on PSI (ReceiverValue -> ReceiverValueVisitor ->
ExpressionReceiver -> JetExpression). Descriptors will be available at runtime,
but PSI is very heavy, so this dependency should be gotten rid of
2013-09-18 16:40:36 +04:00
Alexander Udalov 7d64b84c42 Minor, remove DataFlowValueFactory.INSTANCE
DataFlowValueFactory's methods are all static
2013-09-18 16:40:36 +04:00
Alexander Udalov 7e72494ddb Remove unused 'trace' parameter in ModuleConfiguration 2013-09-18 16:40:36 +04:00
Alexander Udalov 54ee7456ce Extract LazyResolveStorageManager interface
StorageManager will be available at runtime, thus it can't depend on
BindingTrace
2013-09-18 16:40:35 +04:00
Alexander Udalov f35472414b Move FunctionDescriptorUtil out of descriptors/ 2013-09-18 16:40:35 +04:00
Alexander Udalov f5af43ed24 Cleanup descriptors in frontend
Remove useless classes/interfaces, inline useless superclasses, make the code
greener
2013-09-18 16:40:35 +04:00
Alexander Udalov cb10cbdf7a Remove PSI usages from ScriptDescriptor 2013-09-18 16:40:35 +04:00
Alexander Udalov d0a9464504 Refactor DescriptorUtils
Remove dependency on org.jetbrains.jet.lang.psi, move utilities closer to their
usages, add NotNull annotations, fix formatting, etc.
2013-09-18 16:40:35 +04:00
Alexander Udalov 8400d2b8cf Refactor OverridingUtil.resolveUnknownVisibilities
Get rid of dependency on BindingTrace, move the corresponding error reporting
logic to OverrideResolver
2013-09-18 16:40:35 +04:00
Alexander Udalov 6ca71349f8 Create DescriptorFactory utility class
Will contain utilities needed to create different common descriptors, such as
default getters/setters, enum values/valueOf methods, etc.
2013-09-18 16:40:34 +04:00
Alexander Udalov 6eeee31381 Remove unused dependency of 'serialization' module on 'junit' library 2013-09-18 16:40:34 +04:00
Alexander Udalov effbdcaa4c Move utilities out of OverrideResolver 2013-09-18 16:40:34 +04:00
Alexander Udalov f5faf8acb2 Get rid of dependency of class descriptors on BindingTrace 2013-09-18 16:40:34 +04:00
Natalia.Ukhorskaya 9351369052 Check that maven module already has library in dependency
#KT-3991 Fixed
2013-09-18 15:08:47 +04:00
Natalia.Ukhorskaya 1a7a59c0a0 Change Configure Kotlin notification text 2013-09-18 15:08:46 +04:00
Natalia.Ukhorskaya e5b7ba3060 Update UI for Configure Kotlin Dialog 2013-09-18 15:08:46 +04:00
Erokhin Stanislav 63e7d60ad7 JS backend: fix KotlinLibTest 2013-09-17 21:55:13 +04:00
Erokhin Stanislav db62ef2ef1 JS backend: KotlinNew => Kotlin 2013-09-17 21:55:10 +04:00
Erokhin Stanislav c3d0392413 JS backend: add $metadata$ property & remake extension utilities 2013-09-17 21:52:55 +04:00
Erokhin Stanislav 12cb774f1c JS backend: remake NameGenerator in case Property & PropertyAccessor. Fix overload extension property. 2013-09-17 21:46:25 +04:00
Erokhin Stanislav c5a720164e JS backend: remove unused code from Namer 2013-09-17 21:46:25 +04:00
Erokhin Stanislav eed1a6506e JS backend: remove all usages TranslationContext.isEcma5() 2013-09-17 21:46:25 +04:00
Erokhin Stanislav 79904a9b96 JS backend: refactor: extract DefineInvocation 2013-09-17 21:46:17 +04:00
Erokhin Stanislav 8e72efc736 JS backend: move "call" and "baseInitializer" keyword to Namer 2013-09-17 21:45:06 +04:00