From 49acecb463e710e72e2a849c846588e85a8e4f1b Mon Sep 17 00:00:00 2001 From: MrCoder Date: Thu, 5 Sep 2024 15:18:38 +1000 Subject: [PATCH] Format thext for Critical, Section and TCF. --- .../MessageLayer/Block/Statement/Fragment/FragmentCritical.vue | 2 +- .../MessageLayer/Block/Statement/Fragment/FragmentSection.vue | 2 +- .../Block/Statement/Fragment/FragmentTryCatchFinally.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/DiagramFrame/SeqDiagram/MessageLayer/Block/Statement/Fragment/FragmentCritical.vue b/src/components/DiagramFrame/SeqDiagram/MessageLayer/Block/Statement/Fragment/FragmentCritical.vue index f306fe7d..d006839a 100644 --- a/src/components/DiagramFrame/SeqDiagram/MessageLayer/Block/Statement/Fragment/FragmentCritical.vue +++ b/src/components/DiagramFrame/SeqDiagram/MessageLayer/Block/Statement/Fragment/FragmentCritical.vue @@ -60,7 +60,7 @@ export default { const from = computed(() => props.context.Origin()); const critical = computed(() => props.context.critical()); const braceBlock = computed(() => critical.value?.braceBlock()); - const atom = computed(() => critical.value?.atom()?.getText()); + const atom = computed(() => critical.value?.atom()?.getFormattedText()); const blockInCritical = computed(() => braceBlock.value?.block()); const label = computed(() => diff --git a/src/components/DiagramFrame/SeqDiagram/MessageLayer/Block/Statement/Fragment/FragmentSection.vue b/src/components/DiagramFrame/SeqDiagram/MessageLayer/Block/Statement/Fragment/FragmentSection.vue index 5008d64b..d8a752e6 100644 --- a/src/components/DiagramFrame/SeqDiagram/MessageLayer/Block/Statement/Fragment/FragmentSection.vue +++ b/src/components/DiagramFrame/SeqDiagram/MessageLayer/Block/Statement/Fragment/FragmentSection.vue @@ -61,7 +61,7 @@ export default { const from = computed(() => props.context.Origin()); const section = computed(() => props.context.section()); const braceBlock = computed(() => section.value?.braceBlock()); - const atom = computed(() => section.value?.atom()?.getText()); + const atom = computed(() => section.value?.atom()?.getFormattedText()); const blockInSection = computed(() => braceBlock.value?.block()); const label = computed( diff --git a/src/components/DiagramFrame/SeqDiagram/MessageLayer/Block/Statement/Fragment/FragmentTryCatchFinally.vue b/src/components/DiagramFrame/SeqDiagram/MessageLayer/Block/Statement/Fragment/FragmentTryCatchFinally.vue index 120d2502..8c37880d 100644 --- a/src/components/DiagramFrame/SeqDiagram/MessageLayer/Block/Statement/Fragment/FragmentTryCatchFinally.vue +++ b/src/components/DiagramFrame/SeqDiagram/MessageLayer/Block/Statement/Fragment/FragmentTryCatchFinally.vue @@ -115,7 +115,7 @@ export default { }, methods: { exception(ctx) { - return ctx?.invocation()?.parameters().getText(); + return ctx?.invocation()?.parameters().getFormattedText(); }, blockInCatchBlock(ctx) { return ctx?.braceBlock()?.block();