Commit Graph

230 Commits

Author SHA1 Message Date
Stepan Koltsov bc00216df9 replace JavaPsiFacade with own 2012-04-12 20:45:00 +04:00
Nikolay Krasko 26b47c0180 KT-1755 Duplicates in completion
#KT-1755 fixed
2012-04-11 17:54:45 +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
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
Pavel V. Talanov 766b4dc975 Move AnalyzerExhaust from frontend.java to frontend. 2012-04-04 16:11:40 +04:00
Maxim Shafirov 060be0a8f8 Refactor dependencies, so jet-as-java might be used in cli. 2012-03-29 21:18:35 +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 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
Nikolay Krasko 0cd839f044 EA-34998 Check qualified name from external before creating instance of FqName 2012-03-22 17:46:18 +04:00
Stepan Koltsov 9557507beb replace "0" suffix in variable names 2012-03-19 17:37:44 +04:00
Andrey Breslav 5af3770563 Assetion for EA-34591 - NPE: AbstractLightClass.isValid 2012-03-16 18:42:53 +04:00
Maxim Shafirov ea8a416051 #KT-978 Fixed 2012-03-16 15:28:45 +04:00
Stepan Koltsov 82d77560a2 FqName class
for type safety, to easier distinguish between:

* short names
* qualified names
* jvm names (slash-separated)
* special names like <root>
* null values that mean "undefined" and "root ns" in different contexts
2012-03-13 21:51:38 +04:00
Andrey Breslav 97ec5b4344 Make JetLightClass analyze the whole project (with no caching, for now). This change is related to the following issues:
KT-1474 Execption when running kotlin project
KT-1501 Run script doesn't work in IDEA
In seems that to fix the problem completely, we need to avoid importing Java's default package into every file, but the problems reported in these requests are gone now.

#KT-1501 Fixed
#KT-1474 Fixed
2012-03-09 17:48:11 +04:00
Andrey Breslav 1078c95bf2 Platform-dependent AnalyzerFacades renamed to reflect platform-dependencies 2012-03-02 18:27:29 +04:00
Stepan Koltsov 67acb4c1e2 toString in error message 2012-02-29 17:03:48 +04:00
Stepan Koltsov 4ea99fc6ca KotlinCompiler -stubs option
* do not fail on errors
* do not analyze function bodies
* generate "throw new RuntimeException()" in bytecode
2012-02-28 15:52:59 +04:00
Alex Tkachman 9ba1dbf98a refactoring in progress 2012-02-27 22:59:34 +02:00
Nikolay Krasko 21b3be0ef0 Fix NPE because of nullable local name 2012-02-22 19:29:17 +04:00
Maxim Shafirov a03922d467 Copyrights set to Apache, reflecting it's now open source 2012-02-14 19:25:06 +04:00
Nikolay Krasko d3c37f65e4 KT-1051 Java interoperability completion - invalidating java packages strategy 2012-02-07 13:29:21 +04:00
Nikolay Krasko ce6850ae4d KT-1051 Java interoperability completion - fix java subpackages 2012-02-06 20:25:02 +04:00
Nikolay Krasko e6197f0160 KT-801 Implement Naviagate -> Class... for kotlin 2012-02-06 16:36:36 +04:00
Nikolay Krasko afd8f380c9 Insert import on applying top level function completion 2012-02-06 15:47:34 +04:00
Nikolay Krasko bd1bb1f0bd - Tests for KT-1051, KT-1151 and KT-1100
- Icon for java fake class
2012-02-03 16:05:30 +04:00
Nikolay Krasko 38817014d5 KT-1051 Java interoperability completion (class and subpackages completion) 2012-02-02 14:28:32 +04:00
Nikolay Krasko c52e56740d KT-983 Code completion for not-imported classes - Show kotlin classes (another temp commit) 2012-01-23 15:20:57 +04:00
Nikolay Krasko 280b0712f9 Inherited JDK for jet.as.java.psi.iml module and removing annotations reference 2012-01-23 11:29:23 +04:00
Maxim Shafirov 4dcf9eafaf Compilation fix (API changed in IDEA core) 2012-01-19 14:16:02 +04:00
Maxim Shafirov db59319f95 Artifact for IDEA plugin 2012-01-12 18:42:53 +04:00