Skip to content
Snippets Groups Projects
Commit 6efc4cd7 authored by Jakub Konvička's avatar Jakub Konvička
Browse files

refactor: group regex modification

parent 80be2a01
1 merge request!15merge: develop into main
Pipeline #873 passed with warnings with stages
in 2 minutes and 59 seconds
......@@ -122,14 +122,14 @@ public class CppClassDiagramVisitor : CPP14ParserBaseVisitor<object>
if (aggregationMatch.Success && !string.IsNullOrEmpty(aggregationMatch.Groups[3].Value))
{
// Aggregation type
string? typeName = aggregationMatch.Groups[2].Value; // Second capturing group
string? typeName = aggregationMatch.Groups[3].Value; // Second capturing group
_classes.Last().Value.AddAssociation(typeName, actualAccessSpecifier,
AssociationType.Aggregation);
}
else if (compositionMatch.Success && !string.IsNullOrEmpty(compositionMatch.Groups[2].Value))
{
// Composition type
string? typeName = compositionMatch.Groups[2].Value; // Second capturing group
string? typeName = compositionMatch.Groups[3].Value; // Second capturing group
_classes.Last().Value.AddAssociation(typeName, actualAccessSpecifier,
AssociationType.Composition);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment