Commit Graph

874 Commits

Author SHA1 Message Date
Stepan Koltsov b8d2e62d2c sometimes descriptor has more than one declaration 2012-04-16 18:57:41 +04:00
Andrey Breslav 0f98c281ab KT-1781 Can't distinguish between two constructors
#KT-1781 Fixed

 Now, if foo() and foo(vararg bar) both match the call site, the first one is preferred
2012-04-16 16:14:08 +04:00
Andrey Breslav 882412ea06 Proper handling of compiler messages
We used to have a triple (errorStream, messageRenderer, verbose) to represent the error reporting strategy.
 Now we have a single MessageCollector abstraction for this.
 As the MessageCollector abstraction was extracted, the need to CompilerMessageLocation and CompilerMessageSeverity arose, too.
2012-04-13 19:38:23 +04:00
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 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
Nikolay Krasko a59a671c4a KT-1763 UnsupportedOperationException during creating ImportClassAndFunFix
#KT-1763 fixed
2012-04-11 18:56:44 +04:00
Andrey Breslav 88d3e3676c Add Explicit Nullable annotation 2012-04-11 12:19:04 +04:00
James Strachan f1a2caeb12 fix helper function to find NamespaceDescriptor in a file - thanks to Nikolay for the heads up 2012-04-11 09:05:17 +01: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 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
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
Nikolay Krasko 7de5f68629 KT-1238 Completion of 'break' keyword: why does it add space char at the end?
KT-1237 Auto-completion of "return" keyword should not insert space after it when in a method returning Unit

 #KT-1237 fixed
 #KT-1238 fixed
2012-04-09 11:43:46 +04:00
Evgeny Gerashchenko 05fd46009d Replaced diagnostic factories so they show type FQ names instead of short names.
#KT-1137 fixed
2012-04-08 22:45:07 +04:00
Nikolay Krasko 4ec080f71f KT-1666 Invoking "Go to Declaration" for String type offers two variants - Temp boring fix
#KT-1666 fixed
2012-04-08 20:38:11 +04:00
Evgeny Gerashchenko aec021e668 Implemented better rendering for parameters with default values in decompiler and descriptor renderer.
#KT-1582 fixed
2012-04-08 19:59:53 +04:00
Evgeny Gerashchenko 0d84a045ee Minor: added @NotNull annotations from interfaces. 2012-04-08 19:42:46 +04:00
Stepan Koltsov 7aeded2522 more fqname utils 2012-04-08 05:39:43 +04:00
Stepan Koltsov 0417df6429 initialize ANY_NULLABLE without cyclic dependencies
between <clinit> of ErrorUtils and JetStandardClasses
2012-04-07 06:32:20 +04:00
Stepan Koltsov 3ba2aa91fd simple revursion check in scope 2012-04-07 06:32:19 +04:00
Svetlana Isakova cd1221b1b2 fix in 'protected' visibility check 2012-04-06 20:42:51 +04:00
Svetlana Isakova 63af29fedb do not create fake descriptors when override private functions 2012-04-06 20:42:51 +04:00
Svetlana Isakova 2de69d8cd8 stop resolution if ambiguity is found 2012-04-06 20:42:51 +04:00
Evgeny Gerashchenko da9973a822 Added rendering visibility in DescriptorRenderer. 2012-04-06 20:04:57 +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
Evgeny Gerashchenko c21e3b837a Added rendering annotation class. 2012-04-06 17:26:09 +04:00
Nikolay Krasko 4d19fd05b1 KT-1702 Renaming file causes "Operation not supported" and invalid imports
(Rename problem was caused because of invalid reference to file from package. Fix contains:
 - Change structure of references in package expression - last part is also a reference now
 - Resolve packages to expression but not to files)

  #KT-1702 fixed
2012-04-06 14:46:23 +04:00
Svetlana Isakova 1372d70466 tests for incomplete code exceptions 2012-04-06 11:56:37 +04:00
Svetlana Isakova 8d5965649b NPE on incomplete code from EA 2012-04-06 11:49:45 +04:00
Svetlana Isakova 7863b1398e Resolve invisible references and mark them 'invisible' instead of mark them 'unresolved' 2012-04-05 18:36:46 +04:00
Svetlana Isakova 0d462bf0bf 'private' package members should be visible for subpackages 2012-04-04 19:02:26 +04:00
Pavel V. Talanov 1ad12b29fa Extract AnalyzerFacade interface. Extract AnalyzerFacadeWithCache decorator for AnalyzerFacade. 2012-04-04 17:20:27 +04:00
Pavel V. Talanov 766b4dc975 Move AnalyzerExhaust from frontend.java to frontend. 2012-04-04 16:11:40 +04:00
Svetlana Isakova fbffbc541a Added primary constructor parameters (that are properties) visibility check 2012-04-04 14:36:56 +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 e9788c12d9 member visibility inheritance; check visibility is not weaken added 2012-04-03 16:36:00 +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
Svetlana Isakova 31cf0ce736 added name, order to visibilities 2012-04-03 16:36:00 +04:00
Svetlana Isakova c47e3957a7 return type can be omitted when override 2012-04-03 16:36:00 +04:00
Svetlana Isakova 4d37672809 added classes visibility check 2012-04-02 15:37:09 +04:00
Svetlana Isakova e364fe4259 public methods in private classes visibility check 2012-04-02 15:37:09 +04:00
Alex Tkachman ffbce7fe1e KT-1589: Array<T>(size) renamed to arrayOfNulls 2012-04-02 14:30:37 +03:00
Svetlana Isakova 3bae350829 'isSubclass' method refactoring: not collecting all supertypes 2012-04-02 13:15:38 +04:00
Alex Tkachman 0cb26b0566 more annotations 2012-03-31 16:14:32 +03:00
Svetlana Isakova 4f30e12177 fixes after merge 2012-03-30 13:38:36 +04:00
Svetlana Isakova c961613cf8 returned right type if there was only one failed candidate property 2012-03-30 13:38:36 +04:00
Svetlana Isakova 167a9c444a Added 'public' annotation and specified return types for library functions 2012-03-30 13:38:35 +04:00