TranspilationTrace

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.

Constructors

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

Link copied to clipboard
fun <S : Node, T : Node> TranspilationTrace<S, T>.saveAsJson(name: String, vararg ePackages: EPackage): String
Link copied to clipboard
fun <S : Node, T : Node> TranspilationTrace<S, T>.toEObject(resource: Resource): EObject

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard