Nikolay Krasko
531ffaaffa
KT-1645 Propose members according to smart casts
...
#KT-1645 fixed
2012-04-13 15:35:55 +04:00
Stepan Koltsov
71f89ef130
more descriptorToDeclaration utils
...
* custom versions
* normalization code moved out of norializer
* hide DESCRIPTOR_TO_DECLARATION (make package local)
2012-04-12 00:24:12 +04:00
Stepan Koltsov
e37f24ce4f
do not use BindingContext.DESCRIPTOR_TO_DECLARATION explictly
2012-04-12 00:24:12 +04:00
Stepan Koltsov
a889e29147
else on the next line
...
as requested by http://confluence.jetbrains.net/display/JET/Code+Conventions+for+Java
(sed is your friend)
2012-04-10 00:03:13 +04:00
Stepan Koltsov
abfd03cae3
descriptor name cannot be empty string
...
* add assertion
* fix tests
* #KT-1748 Fixed
2012-04-09 22:31:56 +04:00
Pavel V. Talanov
7dd0e50bcd
Merge with branch "AnalyzerJS"
2012-04-09 17:08:57 +04:00
Pavel V. Talanov
a030576052
Merge from brahch analyzeJS.
...
Conflicts:
compiler/backend/src/org/jetbrains/jet/codegen/GenerationState.java
compiler/cli/src/org/jetbrains/jet/compiler/CompileSession.java
compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/AnalyzerFacadeForJVM.java
compiler/tests/org/jetbrains/jet/codegen/GenerationUtils.java
compiler/tests/org/jetbrains/jet/resolve/ExpectedResolveData.java
compiler/tests/org/jetbrains/jet/types/JetDefaultModalityModifiersTest.java
idea/src/org/jetbrains/jet/plugin/libraries/JetSourceNavigationHelper.java
idea/src/org/jetbrains/jet/plugin/parameterInfo/JetFunctionParameterInfoHandler.java
idea/src/org/jetbrains/jet/plugin/project/WholeProjectAnalyzerFacade.java
idea/src/org/jetbrains/jet/plugin/quickfix/ChangeVariableMutabilityFix.java
idea/src/org/jetbrains/jet/plugin/quickfix/ImportInsertHelper.java
idea/src/org/jetbrains/jet/plugin/quickfix/QuickFixUtil.java
idea/src/org/jetbrains/jet/plugin/refactoring/JetNameSuggester.java
idea/src/org/jetbrains/jet/plugin/refactoring/JetRefactoringUtil.java
idea/src/org/jetbrains/jet/plugin/refactoring/introduceVariable/JetIntroduceVariableHandler.java
2012-04-09 17:06:56 +04:00
Pavel V. Talanov
652be4ed95
Revert misleading whitespace changes.
2012-04-09 15:04:27 +04:00
Stepan Koltsov
10dd366216
CompilerDependencies
...
Holds reference to runtime.jar and jdk-headers.jar. Paths to these
jars are no longer hardcoded.
Many tests now compile runtime before execution. Because of this:
* Single test invocation is significantly slower now for some tests
* This can be fixed by making tests independent from runtime (this
must be done anyway)
Some tests still depend on runtime.jar built by "ant dist", this
is to be fixed.
2012-04-09 03:04:50 +04:00
Stepan Koltsov
09ddfb714e
cleanup in JavaDescriptorResolver
2012-04-08 23:23:59 +04:00
Stepan Koltsov
0f166acf5d
assertions in closure annotator
2012-04-08 02:08:27 +04:00
Stepan Koltsov
a43c0c19a8
assert builtins do not reference java.* classes
2012-04-08 02:08:26 +04:00
Stepan Koltsov
d969d8e18f
fix test (disable assertion)
2012-04-07 23:16:47 +04:00
Stepan Koltsov
8623361e22
more FqName instead of String
2012-04-07 06:32:19 +04:00
Stepan Koltsov
9e9d60e02a
remove unused code
2012-04-07 06:32:19 +04:00
Stepan Koltsov
3d863a6b37
diag
2012-04-07 06:32:18 +04:00
Stepan Koltsov
b38e171812
MapTypeMode and properly map builtins
...
used in JetTypeMapper in JetTypeMapper
* MapTypeMode contains no information not needed by JetTypeMapper
* MapTypeMode has separate VALUE and IMPL values that are needed to compile builtins
2012-04-07 06:32:18 +04:00
Stepan Koltsov
157633e371
useful assertions in backend
2012-04-07 06:32:17 +04:00
Pavel V. Talanov
766b4dc975
Move AnalyzerExhaust from frontend.java to frontend.
2012-04-04 16:11:40 +04:00
Svetlana Isakova
9b2eeb076e
KT-1717 Don't make member visibility inherit when it is not declared explicitly
...
#KT-1717 Fixed
2012-04-03 19:26:28 +04:00
Svetlana Isakova
f64920246a
visibility can be set only after resolve overridden members, so method 'setVisibility' was separated
2012-04-03 16:36:00 +04:00
Alex Tkachman
ffbce7fe1e
KT-1589: Array<T>(size) renamed to arrayOfNulls
2012-04-02 14:30:37 +03:00
Alex Tkachman
a1582e1911
fix for tests broken by previous commit
2012-04-02 13:40:19 +03:00
Alex Tkachman
a4ebbaa1a0
KT-1441 proper identityEquals
2012-04-02 13:32:31 +03:00
Alex Tkachman
9d752561eb
almost full support for annotations
2012-04-01 21:50:01 +03:00
Alex Tkachman
0cb26b0566
more annotations
2012-03-31 16:14:32 +03:00
Alex Tkachman
8ed9a89d9e
intrinsics for array constructors (half way for array annotations)
2012-03-30 18:40:56 +03:00
Svetlana Isakova
3c5d4f6857
'isVisible' strategy added to Visibility interface
2012-03-30 13:38:35 +04:00
Svetlana Isakova
7df4e6728b
'isSubClass' method moved to DescriptorUtils
2012-03-30 13:38:35 +04:00
Stepan Koltsov
ec367a0bf0
merge copy-paste after excessive inline in e6fda5
2012-03-29 23:39:01 +04:00
Stepan Koltsov
e6fda5b3d3
minor codegen refactoring
...
* cleanup after yesterday
* remove BindingContext stack in GenerationState
* use more power and strength of di
TODO: also initialize GenerationState by DI
2012-03-29 19:47:50 +04:00
Stepan Koltsov
5bef29870d
more di in jvm.codegen
2012-03-29 01:37:02 +04:00
Stepan Koltsov
1e330fe0a0
jvm.backend: get JetStandardLibrary from analyzer
...
This is a big step towards removal of JetStandardLibrary.getInstance()
2012-03-29 01:03:44 +04:00
Stepan Koltsov
231a4d9940
injector for JVM codegen
2012-03-28 23:39:03 +04:00
Pavel V. Talanov
582259ffda
Support for inline in front-end. Add SimpleFunctionDescriptor#isInline.
2012-03-28 14:25:09 +04:00
Stepan Koltsov
f3f76ab01d
we have no typeinfo
2012-03-27 00:27:33 +04:00
Alex Tkachman
83ed0a846e
KT-1597 optimized as/as?
2012-03-26 16:56:24 +02:00
Alex Tkachman
d0e7248ec1
KT-628 !! support
2012-03-26 11:37:40 +02:00
Stepan Koltsov
7836e44e70
Temporarily revert "kill JavaNamespaceDescriptor"
...
This reverts commit 3c45a1d60e .
This commit breaks compilation of jdk-headers. Explanation:
1. TopDownAnalyzer creates namespace java.util from sources
2. TopDownAnalyzer creates class Map in java.util
3. TopDownAnalyzer processes import java.util.Map.Entry
4. JavaDescriptorResolver resolves namespace java.util.Map
5. java.util.Map namespace is added to java.util namespace
6. redeclaration handler of namespace java.util crashes on Map
2012-03-24 02:23:30 +04:00
Andrey Breslav
cf108765ae
KT-729 Need to support arrays as varargs: front-end checks done
...
#KT-729 In progress
2012-03-23 22:47:44 +01:00
Stepan Koltsov
3c45a1d60e
kill JavaNamespaceDescriptor
2012-03-23 23:44:20 +04:00
Stepan Koltsov
8517fe6878
store namespace kind in trace, kill some JavaNamespaceDescriptor usages
...
JavaNamespaceDescriptor will be killed soon
2012-03-23 23:44:16 +04:00
Stepan Koltsov
e2cb98df67
better import jet namespace
2012-03-19 23:25:27 +04:00
Alex Tkachman
56eabfe07b
KT-1508 jet.Number -> j.l.Number
2012-03-17 13:57:45 +02:00
Maxim Shafirov
484a38ddfc
Don't log ProcessCancelledException
2012-03-16 18:54:35 +04:00
Alex Tkachman
6ff783e79b
KT-1592 don't write default values for annotations
2012-03-16 15:48:49 +02:00
Svetlana Isakova
114988ac82
KT-1579 "Can't import nested class/trait" partially: Entry can be imported, but Map.Entry in code is still unresolved
2012-03-16 17:09:28 +04:00
Stepan Koltsov
1610c9b3a0
FqNameUnsafe
2012-03-15 19:28:29 +04:00
Andrey Breslav
562893f83e
Fixing the behavior for non-physical JetFiles (e.g. the ones created by WebDemo)
2012-03-15 14:04:11 +04:00
Maxim Shafirov
e82dd48662
Progress messages when emitting classfiles
2012-03-14 21:59:51 +04:00