Skip to content

Commit 93d9783

Browse files
committed
C#: Expose a synthetic global singleton stack.
1 parent 06b02eb commit 93d9783

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/FlowSummary.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ module SummaryComponentStack {
116116

117117
/** Gets a singleton stack representing a jump to `c`. */
118118
SummaryComponentStack jump(Callable c) { result = singleton(SummaryComponent::jump(c)) }
119+
120+
/** Gets a singleton stack representing a synthetic global with name `name`. */
121+
SummaryComponentStack syntheticGlobal(string synthetic) {
122+
result = singleton(SummaryComponent::syntheticGlobal(synthetic))
123+
}
119124
}
120125

121126
class SummarizedCallable = Impl::Public::SummarizedCallable;

0 commit comments

Comments
 (0)