Commit Graph

233 Commits

Author SHA1 Message Date
pTalanov 9dfca4feb5 Uncomment test for KT-921
Minor code improvements
2012-05-05 22:17:19 +04:00
pTalanov 7b30cc3269 Minor code improvements and TODO fixes. 2012-05-05 22:03:42 +04:00
pTalanov 9a026aef3f Refactor K2JSTranslator facade
Add MainFunctionNotFoundException
2012-05-05 21:57:40 +04:00
pTalanov 292d0da749 Refactor facade.
Add TranslationException, UnsupportedFeatureException, TranslationInternalException
2012-05-05 21:50:11 +04:00
pTalanov 1896f7250f Refactor js.tests
Use Test#getName where possible
2012-05-05 20:37:02 +04:00
pTalanov 29f224b81f EA - 35896 Case when property accessors are declared but only access level is specified 2012-05-05 19:36:22 +04:00
pTalanov c1e4b20e38 KT-1747 Can't have main function in nested namespaces
#KT-1747 Fixed
2012-05-05 18:55:19 +04:00
pTalanov 869a8ab1ba Refactoring of K2JSTranslator and neighboring classes
Drop GenerationUtils
Introduce MainCallParameters
Generate calls to main function together with the other code in contrast to as text afterwards
Enhance tests a bit
2012-05-05 18:50:02 +04:00
pTalanov ea6076f638 KT-1865 Calls with default argument values are generated incorrectly
#KT-1865 Fixed
2012-05-05 16:51:48 +04:00
pTalanov 68680f702b Fix a bug which caused incorrectly generated js when you call extension literal from extension function. 2012-05-05 16:51:48 +04:00
pTalanov 397928c4e4 K2JSCompiler cli:
Refactor.
Support zipped library sources as parameter.
Support output file path as parameter.
2012-05-04 23:15:37 +04:00
pTalanov 3e3a22a5c9 CLI refactoring.
Some steps towards nice K2JS cli.
2012-05-04 16:23:31 +04:00
pTalanov be98258ffa Change tests dependencies. 2012-05-04 16:15:03 +04:00
pTalanov bc204c1194 Finish tests fix 2012-05-04 16:00:40 +04:00
pTalanov 5ea8e0f697 Rollback commented out code.
Implement a hacky solution for the new "invoke" concept.
Fix most of the tests. (apart from 3)
2012-05-04 16:00:39 +04:00
Svetlana Isakova 335f0a6b5e 'isSafeCall' method added to ResolvedCall 2012-05-03 22:02:30 +04:00
Stepan Koltsov f4527b8167 better method name 2012-05-03 18:30:47 +04:00
Svetlana Isakova 04c2e1a64b Fallen (because of VariableAsFunctionResolvedCall change) javascript backend tests temporary commented 2012-05-03 14:46:06 +04:00
Svetlana Isakova 8723bbcac5 KT-1875 Safe call should be binded with receiver or this object (but not with both by default)
#KT-1875 fixed
2012-05-03 14:46:06 +04:00
Alex Tkachman d58e988ca5 incorporating Sveta's patch on VariableAsFunctionResolvedCall 2012-05-03 12:56:51 +03:00
Leonid Shalupov 6626086abf fix standalone compiler build 2012-05-02 23:04:21 +04:00
Svetlana Isakova 2870c7980d ResolvedCallImpl needs temporary trace now 2012-04-30 15:44:23 +04:00
Andrey Breslav 83de1581ca Trust your spell-checker: it's "overridden" 2012-04-27 10:47:28 +04:00
pTalanov d0d5b147f2 Refactor cli: all the jvm stuff goes under org.jetbrains.jet.cli.jvm, common stuff under org.jetbrains.jet.cli.common 2012-04-25 20:19:15 +04:00
Pavel V. Talanov 0f5dc3b3a6 Fix for a problem that caused all files to be analyzed completely in js analyzing facade. 2012-04-25 14:24:02 +04:00
Pavel V. Talanov b3ffaa89c3 Better handling of user provided paths. 2012-04-25 14:24:00 +04:00
Stepan Koltsov 3b0c9244c9 di: @PreDestroy
I need in my private experiments
2012-04-20 21:33:18 +04:00
Stepan Koltsov 994e6fe009 di: store everything in fields
needed to implement @PreDestroy
2012-04-20 21:33:17 +04:00
Svetlana Isakova 5ec7617c7a Call resolution refactoring (logic hasn't changed)
- interfaces MemberPrioritizer, ResolutionCandidate introduced
- CallTransformationStrategy will be responsible for variable with 'invoke' method as function resolve
2012-04-20 15:52:36 +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 829f73cc5f some classes from runtime.jar are not meant to be loaded by JDR
* assert runtime implementations from JetStandard* are not loaded
  by JavaDescriptorResolver
* fix wrong @JetMethod in jet.Iterator
* fix jet.Iterator ns was created
* fix incorrect number of functions and tuples in JetStandardClasses
* added TODO about inconsisten Tuple class
2012-04-11 20:00:01 +04:00
Stepan Koltsov a034eefb51 js: rename "anonymous" ns to "root"
also use constant field instead of hardcoded literal in tests
2012-04-09 22:31:57 +04:00
Stepan Koltsov 74233edafc move code 2012-04-09 22:31:57 +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
Stepan Koltsov ea1592e8a3 validate identifier names 2012-04-09 21:25:01 +04:00
Stepan Koltsov d889ca37b8 rename js DescriptorUtils 2012-04-09 21:24:51 +04:00
Stepan Koltsov 19d7539a45 useful assertion in js backend 2012-04-09 20:45:31 +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 ff1cd1c4f7 Typo in the comment. 2012-04-09 15:19:05 +04:00
Pavel V. Talanov 0f44771447 Resolve circular dependency. Introduce JsAnalyzerFacadeForIDEA. 2012-04-09 13:50:48 +04:00
Pavel V. Talanov 6cf51fb20a IDEAConfig move to idea module (circular dependency).
Slightly modify Config class.
2012-04-06 19:55:21 +04:00
Pavel V. Talanov 2150789502 AnalyzerFacadeForJS implements interface AnalyzerFacade.
Delete analyzer*WithCache methods from AnalyzerFacadeForJVM.
Introduce JsModuleDetector.
Move AnalyzerFacadeWithCache to idea module. Make it static, make it acquire facade through AnalyzerFacadeProvider.
2012-04-06 17:39:24 +04:00
Pavel V. Talanov 973c6f8d85 Read lib files for IDEA config from zip archive. 2012-04-04 16:08:11 +04:00
Pavel V. Talanov 638895dac7 Remove com.google.javascript.jscomp.ant package from closure-compiler.jar to avoid dependency on ant.jar. 2012-04-03 20:42:42 +04:00
Pavel V. Talanov fc683e8141 Support for elvis operator. 2012-04-02 20:46:03 +04:00
Pavel V. Talanov 3fbbc71dcb API update. 2012-04-02 20:46:02 +04:00
Pavel V. Talanov 042a3617f9 Add version and sources for dart jar. Add closure-compiler.jar (with license). 2012-04-02 20:46:01 +04:00
Alex Tkachman ffbce7fe1e KT-1589: Array<T>(size) renamed to arrayOfNulls 2012-04-02 14:30:37 +03:00
Pavel V. Talanov fc843eca8f Some tweaks in canvas api. 2012-03-30 20:03:07 +04:00