Alexey Andreev
e9a2c8c0f1
Prevent JS AST nodes of several types to be shared
2017-05-30 12:48:47 +03:00
Alexey Andreev
4bb1130f3f
Fix translation of labels with non-identifier names in JS BE
...
See KT-18027
2017-05-29 15:37:31 +03:00
Alexey Andreev
ca7062d776
Fix JS parser to properly handle "." <keyword> sequence
2017-05-26 18:20:16 +03:00
Alexey Andreev
9e89213d66
Prototyping DCE tool for JS
2017-05-26 18:20:15 +03:00
Zalim Bashorov
c021af0fef
KJS: fix non-local return inside catch block
2017-04-19 20:20:21 +03:00
Alexey Andreev
b11e33901b
Fix parsing of JavaScript number literals out of integer range
...
Fix KT-17219
2017-04-17 14:17:08 +03:00
Mikhail Glukhikh
d0cc1635db
Cleanup: apply "Use synthetic property access syntax"
2017-03-15 16:13:40 +03:00
Alexey Andreev
f33d421bab
JS: make JS parser to store function's name in AST. See KT-15475
2017-01-12 18:12:40 +03:00
Zalim Bashorov
316da8331f
KJS: relocate com.google.dart.compiler -> org.jetbrains.kotlin
2017-01-09 17:14:19 +03:00
Zalim Bashorov
cb4c3ed686
KJS: rename "js.dart-ast" module to "js.ast"
2017-01-09 17:13:23 +03:00
Alexey Andreev
d2fdc7ffc0
JS: when both clauses of if become empty during optimization, remove if entirely. Make condition and then clause of JsIf non-nullable. Fix #KT-13912
2016-11-17 12:20:37 +03:00
Valentin Kipyatkov
b551886889
Code cleanup: removed redundant semicolons
2016-04-29 11:26:25 +03:00
Alexey Andreev
af7ddb4572
Adds test infrastructure for JS optimizer. Adds simple tests
2016-04-05 14:40:24 +03:00
Ilya Gorbunov
744a7a83f7
Cleanup RC deprecations in compiler and plugin.
2016-01-27 18:34:30 +03:00
Dmitry Jemerov
d6a11b839b
js: cleanup 'public', property access syntax
2016-01-07 18:15:19 +01:00
Michael Bogdanov
aeb6486473
Deprecated 'INSTANCE$' replaced with 'INSTANCE'
2015-12-24 13:59:43 +03:00
Yan Zhulanow
278f1cd6ef
Fix "Placing function type parameters after the function name" errors in project
2015-11-27 15:51:11 +03:00
Yan Zhulanow
e14c9645dc
Error on 'if' without an 'else' branch when used as an expression
2015-10-19 03:56:15 +03:00
Alexey Tsvetkov
efba2a2372
JS: make JsEmpty singleton
2015-04-16 21:17:09 +03:00
Alexey Tsvetkov
1557111277
JS: fix issues with js() usage in inline functions
2015-03-23 16:43:49 +03:00
Alexey Tsvetkov
c7e8f52faf
JS: use one tag for inlining
2015-03-23 16:43:48 +03:00
Alexey Tsvetkov
e83b253b3e
JS: renamed JsParser->JsAstMapper
2015-03-23 16:43:48 +03:00
Alexey Tsvetkov
47064ce03c
JS: grouped all scope/name operations in JsParser
2015-03-06 21:36:19 +03:00
Alexey Tsvetkov
ae970044e2
JS: extracted ThrowExceptionReporter
2015-02-20 16:01:26 +03:00
Alexey Tsvetkov
b01aa5e0a5
JS: simplified parser exceptions
2015-02-20 16:01:26 +03:00
Alexey Tsvetkov
4f992eeeb4
JS: report right end of js() error
2015-02-20 16:01:26 +03:00
Alexey Tsvetkov
baccfa914f
JS: removed unused rhino error reporter method
2015-02-20 16:01:25 +03:00
Alexey Tsvetkov
33f6759966
Minor in JS: updated copyrights
2015-02-20 16:01:25 +03:00
Alexander Udalov
5903b8c4a7
Reorder and optimize dependencies between modules and libraries
...
- drop 'kotlin-runtime' and other dependencies which are exported by
other modules ('util' and 'util.runtime' in case of 'kotlin-runtime')
- make all Kotlin modules from the compiler depend on 'util' for clarity
- put 'util' and 'util.runtime' to the bottom of the list everywhere: when
kotlin-runtime gets reflection, classes from core/ should have higher
priority than their previous versions from kotlin-runtime.jar
2015-01-28 19:58:35 +03:00
Alexey Tsvetkov
834725b260
JS parser minor: removed broken @see in javadoc
2014-12-15 19:16:22 +03:00
Alexey Tsvetkov
6115e1afec
JS parser: use map for keyword search
2014-12-15 19:16:21 +03:00
Alexey Tsvetkov
b2cd437230
JS parser: removed RESERVED token type
2014-12-15 19:16:21 +03:00
Alexey Tsvetkov
0fac9b3673
JS parser: removed unused classes and methods
2014-12-15 19:16:21 +03:00
Alexey Tsvetkov
0d6b4c6590
JS parser: removed unused decompilation info
2014-12-15 19:16:21 +03:00
Alexey Tsvetkov
272788cb27
JS parser: fixed JsInvocation mapping
2014-12-15 19:16:21 +03:00
Alexey Tsvetkov
348a452e01
JS backend: report parser errors and warnings
2014-12-15 19:16:21 +03:00
Alexey Tsvetkov
a9c21b97f9
JS parser minor: moved isEndOfLine method to Utils
2014-12-15 19:16:21 +03:00
Alexey Tsvetkov
7c6629e38a
JS parser: pass ErrorReporter to JsParser
2014-12-15 19:16:21 +03:00
Alexey Tsvetkov
5530ad84e5
JS parser: use different positions for parser and lexer errors
2014-12-15 19:16:20 +03:00
Alexey Tsvetkov
5323fe920d
JS parser: save token positions
2014-12-15 19:16:20 +03:00
Alexey Tsvetkov
5b1319b535
JS parser: removed unused messages
2014-12-15 19:16:20 +03:00
Alexey Tsvetkov
714b719204
JS parser: static messages load
2014-12-15 19:16:20 +03:00
Alexey Tsvetkov
21d51147bf
JS parser: fixed labelled break/continue
2014-12-15 19:16:20 +03:00
Alexey Tsvetkov
939a8cce4e
JS parser: removed @ from @author tag because of JetCodeConformanceTest
2014-12-15 19:16:20 +03:00
Alexey Tsvetkov
97bbcab77d
JS parser: added description string to constructor arguments
2014-12-15 19:16:19 +03:00
Alexey Tsvetkov
c814b9a8b8
JS parser: renamed sourceNameStub to comply with a codestyle (UPPERCASE)
2014-12-15 19:16:19 +03:00
Alexey Tsvetkov
f69398b915
JS parser: literals creation
2014-12-15 19:16:19 +03:00
Alexey Tsvetkov
5256a99c54
JS parser: added insideFunction flag
2014-12-15 19:16:19 +03:00
Alexey Tsvetkov
420df315b4
JS parser: added NUMBER_INT token type
2014-12-15 19:16:19 +03:00
Alexey Tsvetkov
570010ed5c
JS parser: fixed expression statement mapping
2014-12-15 19:16:19 +03:00