@@ -9,7 +9,7 @@ private import CaptureSummaryModels
9
9
/**
10
10
* Capture fluent APIs that return `this`.
11
11
* Example of a fluent API:
12
- * ```
12
+ * ```csharp
13
13
* public class BasicFlow {
14
14
* public BasicFlow ReturnThis(object input)
15
15
* {
@@ -18,16 +18,14 @@ private import CaptureSummaryModels
18
18
* }
19
19
* ```
20
20
* Captured Model:
21
- * ```
22
- * Summaries;BasicFlow;false;ReturnThis;(System.Object);Argument[Qualifier];ReturnValue;value
23
- * ```
21
+ * ```Summaries;BasicFlow;false;ReturnThis;(System.Object);Argument[Qualifier];ReturnValue;value```
24
22
* Capture APIs that transfer taint from an input parameter to an output return
25
23
* value or parameter.
26
24
* Allows a sequence of read steps followed by a sequence of store steps.
27
25
*
28
26
* Examples:
29
27
*
30
- * ```
28
+ * ```csharp
31
29
* public class BasicFlow {
32
30
* private string tainted;
33
31
*
@@ -48,7 +46,7 @@ private import CaptureSummaryModels
48
46
* Summaries;BasicFlow;false;AssignFieldToArray;(System.Object[]);Argument[Qualifier];Argument[0].Element;taint
49
47
* ```
50
48
*
51
- * ```
49
+ * ```csharp
52
50
* public class BasicFlow {
53
51
* private string tainted;
54
52
*
@@ -59,9 +57,9 @@ private import CaptureSummaryModels
59
57
* }
60
58
* ```
61
59
* Captured Model:
62
- * `Summaries;BasicFlow;false;SetField;(System.String);Argument[0];Argument[Qualifier];taint`
60
+ * ``` Summaries;BasicFlow;false;SetField;(System.String);Argument[0];Argument[Qualifier];taint`` `
63
61
*
64
- * ```
62
+ * ```csharp
65
63
* public class BasicFlow {
66
64
* public void ReturnSubstring(string s)
67
65
* {
@@ -70,9 +68,9 @@ private import CaptureSummaryModels
70
68
* }
71
69
* ```
72
70
* Captured Model:
73
- * `Summaries;BasicFlow;false;ReturnSubstring;(System.String);Argument[0];ReturnValue;taint`
71
+ * ``` Summaries;BasicFlow;false;ReturnSubstring;(System.String);Argument[0];ReturnValue;taint`` `
74
72
*
75
- * ```
73
+ * ```csharp
76
74
* public class BasicFlow {
77
75
* public void AssignToArray(int data, int[] target)
78
76
* {
@@ -81,7 +79,7 @@ private import CaptureSummaryModels
81
79
* }
82
80
* ```
83
81
* Captured Model:
84
- * `Summaries;BasicFlow;false;AssignToArray;(System.Int32,System.Int32[]);Argument[0];Argument[1].Element;taint`
82
+ * ``` Summaries;BasicFlow;false;AssignToArray;(System.Int32,System.Int32[]);Argument[0];Argument[1].Element;taint`` `
85
83
*/
86
84
private string captureFlow ( TargetAPI api ) {
87
85
result = captureQualifierFlow ( api ) or
0 commit comments