Alexander Korepanov
97024edf8a
[JS IR] Replace canonicalPath with absolutePath
...
Since canonicalPath is slow, replace it with
absolutePath in SourceMaps and CompilationOutputs.
^KT-58187 Fixed
2023-05-03 10:39:40 +00:00
Zalim Bashorov
54c00cc588
[Sourcemap] Add an ability to provide outputColumn to SourceMap3Builder#addMapping instead of using getCurrentOutputColumn
...
The ability will be used later by wasm backend while generating sourcemap.
2022-12-07 12:03:54 +00:00
Zalim Bashorov
fb4dcc6a6a
[Sourcemap] Introduce getCurrentColumn and stop using TextOutput directly
...
The general goal is remove dependency on TextOutput and
make it simpler to use for wasm backend.
2022-12-07 12:03:54 +00:00
Zalim Bashorov
e34d3d09bc
[Sourcemap] Extract addLink from SourceMap3Builder as a addSourceMappingURL
...
The general goal is remove dependency on TextOutput and
make it simpler to use for wasm backend.
2022-12-07 12:03:54 +00:00
Sergej Jaskiewicz
1d0025c3cf
[JS] Support the 'names' field in sourcemaps
2022-10-14 10:09:39 +00:00
Nikolay Krasko
20692c9837
Minor: cleanup code in cli-js and js.sourcemap
2022-10-03 11:08:29 +00:00
Sergej Jaskiewicz
64465480a3
[JS] J2K for SourceMap3Builder
2022-09-09 11:02:25 +00:00
Sergej Jaskiewicz
660e8ff4da
Rename .java to .kt
2022-09-09 11:02:25 +00:00
Sergej Jaskiewicz
7874b1fcad
[JS] Rename JsLocation.identityObject to fileIdentity
2022-09-09 11:02:25 +00:00
Sergej Jaskiewicz
dbcffeb0ed
[JS] Fix a compiler crash when generating sourcemaps
...
It is possible that the source info has the type `KtPureElement`.
For example, the serialization plugin may create a synthetic companion
object for a `@Serializable`-annotated class.
This results in an instance of
the `SyntheticClassOrObjectDescriptor.SyntheticDeclaration` class being
indirectly set as source info. This class implements the `KtPureElement`
interface.
2022-07-25 19:27:59 +00:00
Sergej Jaskiewicz
54c2839a7f
[JS] J2K for SourceMapBuilderConsumer
2022-07-21 12:18:43 +00:00
Sergej Jaskiewicz
9f5f5bcab2
Rename .java to .kt
2022-07-21 12:18:43 +00:00
Sergej Jaskiewicz
e9db050245
[JS] Optimize resolving paths when building source maps
...
`File.getCanonicalFile` follows symlinks, that is not necessary.
2022-05-26 16:32:07 +00:00
Sergej Jaskiewicz
0614c519af
[JS] Convert SourceFilePathResolver to Kotlin, fix usages
2022-05-26 16:32:05 +00:00
Sergej Jaskiewicz
4bf79cd23b
Rename SourceFilePathResolver.java -> SourceFilePathResolver.kt
2022-05-26 16:32:04 +00:00
Vyacheslav Gerasimov
f7a9065b75
Build: Use intellij maven repo instead of downloaded IDEA
...
#KTI-82
2021-12-16 21:48:23 +03:00
Alexander Likhachev
56cf2549e7
[JS] Close file descriptors after embedding sources into source map
...
#KT-49300 Fixed
2021-10-26 20:21:15 +03:00
Victor Petukhov
a264cbfe7d
Move CallUtil.kt under the resolve.util package
2021-09-27 16:12:01 +03:00
Zalim Bashorov
2460f5f9ae
[JS CLI] Support sourcemap generation for IR BE in CLI
...
#KT-46551 In Progress
2021-07-05 21:01:41 +03:00
Zalim Bashorov
a908e5576d
[JS] Extract sourcemap generating related files to a separate module
...
It's required to reuse the same infrastructure in the new backend.
2021-06-28 16:04:09 +03:00