generateUML function refactor

pull/3321/head^2
Joseph Izang 2 years ago committed by Aniket
parent df03bcbf34
commit 82ed2a04ee
  1. 6
      libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx

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

Loading…
Cancel
Save