kolasu
1.6.0-RC1-observers-SNAPSHOT
jvm
playground
/
com.strumenta.kolasu.playground
/
TranspilationTrace
Transpilation
Trace
class
TranspilationTrace
<
S
:
Node
,
T
:
Node
>
(
val
originalCode
:
String
,
val
generatedCode
:
String
,
val
sourceResult
:
Result
<
S
>
,
val
targetResult
:
Result
<
T
>
,
val
transpilationIssues
:
List
<
Issue
>
=
emptyList()
)
A transpilation trace can be visualized to demonstrate how the transpiler work.
Members
Members & Extensions
Constructors
Transpilation
Trace
Link copied to clipboard
constructor
(
originalCode
:
String
,
generatedCode
:
String
,
sourceAST
:
S
,
targetAST
:
T
,
transpilationIssues
:
List
<
Issue
>
=
emptyList()
)
constructor
(
originalCode
:
String
,
generatedCode
:
String
,
sourceResult
:
Result
<
S
>
,
targetResult
:
Result
<
T
>
,
transpilationIssues
:
List
<
Issue
>
=
emptyList()
)
Functions
save
As
Json
Link copied to clipboard
fun
<
S
:
Node
,
T
:
Node
>
TranspilationTrace
<
S
,
T
>
.
saveAsJson
(
name
:
String
,
vararg
ePackages
:
EPackage
)
:
String
to
EObject
Link copied to clipboard
fun
<
S
:
Node
,
T
:
Node
>
TranspilationTrace
<
S
,
T
>
.
toEObject
(
resource
:
Resource
)
:
EObject
Properties
generated
Code
Link copied to clipboard
val
generatedCode
:
String
original
Code
Link copied to clipboard
val
originalCode
:
String
source
Result
Link copied to clipboard
val
sourceResult
:
Result
<
S
>
target
Result
Link copied to clipboard
val
targetResult
:
Result
<
T
>
transpilation
Issues
Link copied to clipboard
val
transpilationIssues
:
List
<
Issue
>