|
|
@ -745,11 +745,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => { |
|
|
|
try { |
|
|
|
try { |
|
|
|
const currentFile = api.currentFile |
|
|
|
const currentFile = api.currentFile |
|
|
|
const ast = parser.parse(api.getCompilationResult().source.sources[currentFile].content) |
|
|
|
const ast = parser.parse(api.getCompilationResult().source.sources[currentFile].content) |
|
|
|
const result = convertAST2UmlClasses(ast, currentFile) |
|
|
|
const svgResult = vizRenderStringSync(convertUmlClasses2Dot(convertAST2UmlClasses(ast, currentFile))) |
|
|
|
const converted = convertUmlClasses2Dot(result) |
|
|
|
|
|
|
|
const svgResult = vizRenderStringSync(converted) |
|
|
|
|
|
|
|
console.log({ result }) |
|
|
|
|
|
|
|
console.log({ converted }) |
|
|
|
|
|
|
|
console.log({ svgResult }) |
|
|
|
console.log({ svgResult }) |
|
|
|
} catch (error) { |
|
|
|
} catch (error) { |
|
|
|
console.log({ error }) |
|
|
|
console.log({ error }) |
|
|
|