File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1+ import { FlowchartEdge , FlowchartNode } from "../../ir/ir" ;
2+
13export class StringProcessor {
24 private static escapeCache = new Map < string , string > ( ) ;
35 private static readonly MAX_CACHE_SIZE = 1000 ;
4-
56 private static readonly escapeRegex = / " | \\ | \n | < | > | ` / g;
67 private static readonly colonRegex = / : $ / ;
78 private static readonly escapeMap : Record < string , string > = {
@@ -57,4 +58,16 @@ export class StringProcessor {
5758 static clearCache ( ) : void {
5859 this . escapeCache . clear ( ) ;
5960 }
61+ }
62+ export interface ProcessResult {
63+ nodes : FlowchartNode [ ] ;
64+ edges : FlowchartEdge [ ] ;
65+ entryNodeId ?: string ;
66+ exitPoints : { id : string ; label ?: string } [ ] ;
67+ nodesConnectedToExit : Set < string > ;
68+ }
69+
70+ export interface LoopContext {
71+ breakTargetId : string ;
72+ continueTargetId : string ;
6073}
You can’t perform that action at this time.
0 commit comments