Andrey Breslav
570789512f
Even more detailed error messages
2012-05-30 21:02:20 +04:00
Andrey Breslav
37bc10689e
Fix instanceof checks after introducing the TypeParameterDescriptor interface
2012-05-30 21:01:33 +04:00
Andrey Breslav
ebb0d25b17
Fix compilation
2012-05-30 20:59:25 +04:00
Andrey Breslav
ce96502f72
Make APIs available to lazy resolve
2012-05-30 20:57:03 +04:00
Andrey Breslav
d95f315e24
getName() always returns null for REFERENCE_EXPRESSIONs
2012-05-30 20:53:04 +04:00
Andrey Breslav
40894196bf
Proper rendering for modules
2012-05-30 20:52:00 +04:00
Stepan Koltsov
8611ce5773
KT-2047 Assertion from override resolver
...
#KT-2047 Fixed
2012-05-30 20:26:08 +04:00
Stepan Koltsov
1f5666e0e8
more tests in ScriptGenTest
2012-05-30 19:47:42 +04:00
James Strachan
4cff5f9759
modified the JS compiler so that it can have definitions and library sources specified or discovered on the classpath; so for example we can then discover the kotlin standard library kotlin that needs to be compiled; plus the JS library definitions (which map to the kotlin-lib.js file)
2012-05-30 15:51:08 +01:00
Stepan Koltsov
ae12b4e5fc
fix compilation
2012-05-30 18:49:36 +04:00
Stepan Koltsov
e157853468
test for scala-library jar resolve
...
scala-library descriptors does not fit in memory, so resolve it in chunks
BTW scala-library it is resolved fine
2012-05-30 18:47:00 +04:00
Evgeny Gerashchenko
b3e211a3ba
KT-2139 java.sql.Array inserted by completion is inserted by short name, and import is not added
...
#KT-2139 fixed
2012-05-30 18:05:49 +04:00
Nikolay Krasko
b767e1a8a6
Failure after typing empty import
2012-05-30 17:09:46 +04:00
Natalia.Ukhorskaya
de605637e6
Change test name. Change order of parameters in test instructions
2012-05-30 15:52:59 +04:00
James Strachan
d7573b49a6
allow the JS compiler to take a list of files, verbose flag and a flag to indicate if a main call is required; plus added a test case to ensure we can compile some of the kotlin standard library using the K2JSCompiler directly
2012-05-30 11:31:35 +01:00
James Strachan
4ef8a3ce50
only log files compiled if verbose is enabled
2012-05-29 17:42:42 +01:00
James Strachan
4921aeafc3
refactored the maven plugin to use the vanilla K2JSCompiler directly and avoid using the K2JVMCompiler when generating JS code; also included a default LibrarySourceConfig which detects JS library code on the classpath which works nicer in maven/ant style worlds where dependencies tend to be specified rather than file paths to zip files
2012-05-29 17:28:15 +01:00
Nikolay Krasko
8daeb735e4
KT-1719 Navigate -> Symbol... completions are not super helpful for extension functions
...
#KT-1719 fixed
2012-05-29 18:11:36 +04:00
James Strachan
4899c55673
added better diagnostic messages
2012-05-29 13:31:10 +01:00
Andrey Breslav
0b33877144
Simplified SHEBANG comment detection
...
* %line & %column removed (zzCurrentPos used instead)
* jflex cmd arguments reverted
2012-05-29 11:41:54 +04:00
Andrey Breslav
85cffd9e90
Unused methods removed
2012-05-29 11:11:08 +04:00
Stepan Koltsov
25f71bcd3a
skip shebang in the first line
...
Something like this works now:
===
% PATH="./bin:$PATH" ./sum.ktscript 31 21
31 + 21 = 52
% cat sum.ktscript
#!/usr/bin/env kotlin -script
val a = Integer.parseInt(args[0])
val b = Integer.parseInt(args[1])
println("$a + $b = ${a + b}")
===
2012-05-28 22:59:03 +04:00
Stepan Koltsov
30e44fdc5f
script parameters
...
still a lot of things to do
2012-05-28 20:31:29 +04:00
Stepan Koltsov
6244404344
JetTypeName utility
2012-05-28 20:31:29 +04:00
Stepan Koltsov
9402262e7c
CodegenTestFile
2012-05-28 20:19:23 +04:00
Andrey Breslav
e4007992c6
Extract interface: TypeParameterDescriptor
...
A lot of code relied on these descriptors being mutable. In most cases I managed to work around this,
but there're still are casts to raw List necessary in one or two places
2012-05-28 20:02:36 +04:00
Svetlana Isakova
2165d5b765
fix for 'JetControlFlowTest.testLocalDeclarations' test
2012-05-28 18:37:13 +04:00
Stepan Koltsov
b2cea09fcc
move inner classes of CodegenContext into CodegenContexts
2012-05-28 17:35:08 +04:00
Stepan Koltsov
c2c45669f0
Validate parameters in fillInSubstitutionContext
2012-05-28 17:34:44 +04:00
Stepan Koltsov
a1714d99cf
DependencyClassByFqNameResolver
2012-05-28 17:34:44 +04:00
Svetlana Isakova
84d60b8baa
check deeply inner local declarations added
2012-05-28 15:21:40 +04:00
Svetlana Isakova
b4f765bd76
no different objects for VariableInitState
2012-05-28 14:57:22 +04:00
Svetlana Isakova
de67cae571
no need in possible local initializers
...
for each variable for each instruction
rename
2012-05-28 13:48:49 +04:00
Svetlana Isakova
468052c3a5
renames
2012-05-28 13:00:47 +04:00
Svetlana Isakova
dfbd9922d9
fixes after merge
...
get rid of JetControlFlowDataTraceFactory
2012-05-28 12:32:45 +04:00
Svetlana Isakova
a79ea0c86b
changes in 'PseudocodeTraverser' interface
2012-05-28 12:09:45 +04:00
Svetlana Isakova
8acfa20a02
lazy computing of pseudocode variables data
...
no need in special 'data' classes
2012-05-28 12:09:45 +04:00
Svetlana Isakova
cdcedbe6ed
all traverse pseudocode methods made static
2012-05-28 12:09:45 +04:00
Svetlana Isakova
d1d0722b5a
tests for dead code in pseudocode
2012-05-28 12:09:45 +04:00
Svetlana Isakova
ac41cab340
added PseudocodeUtil responsible for creation
2012-05-28 12:09:45 +04:00
Svetlana Isakova
5c7206ef49
'Pseudocode' interface improvements
2012-05-28 12:09:45 +04:00
Svetlana Isakova
7a02cfcd25
order of declaration changed in tests
2012-05-28 12:09:45 +04:00
Svetlana Isakova
0bf65bfe1e
get rid of JetPseudocodeTrace
...
and JetControlFlowDataTraceFactory
2012-05-28 12:09:44 +04:00
Svetlana Isakova
09a91f2f92
IPseudocode was a temporary name
...
to deceive idea's git and commit it
2012-05-28 12:06:13 +04:00
Svetlana Isakova
f4920b7d09
added 'Pseudocode' interface
...
'Pseudocode' class was renamed to 'PseudocodeImpl'
2012-05-28 12:06:13 +04:00
Svetlana Isakova
b6b1ce52e1
tests changed:
...
added check for unused/uninitialized variables inside local and anonymous functions
2012-05-28 12:06:13 +04:00
Svetlana Isakova
edb529f68f
added edge 'error' -> 'sink'
...
added 'getLocalDeclarations' method to pseudocode
2012-05-28 12:06:12 +04:00
Svetlana Isakova
5c7b787e68
reversed traverse in depth
2012-05-28 12:06:12 +04:00
Svetlana Isakova
fb08e13da9
added PseudocodeData
...
to store information about variables for each instruction: initialization and use statuses
2012-05-28 12:06:12 +04:00
Nikolay Krasko
e946a0f908
- Out of block modification strategy for Kotlin block expression
...
- Separate project analysis for IDEA needs: headers + bodies
2012-05-27 17:39:56 +04:00