File tree Expand file tree Collapse file tree 3 files changed +110
-112
lines changed Expand file tree Collapse file tree 3 files changed +110
-112
lines changed Original file line number Diff line number Diff line change @@ -74,20 +74,18 @@ SummaryComponent interpretComponentSpecific(AccessPathToken c) {
74
74
)
75
75
or
76
76
c .getName ( ) = "Element" and
77
- (
78
- c .getNumArgument ( ) = 0 and
77
+ exists ( string arg | arg = c .getAnArgument ( ) |
78
+ arg = "?" and
79
+ result = FlowSummary:: SummaryComponent:: elementUnknown ( )
80
+ or
81
+ arg = "any" and
79
82
result = FlowSummary:: SummaryComponent:: elementAny ( )
80
83
or
81
- exists ( string arg | arg = c .getAnArgument ( ) |
82
- arg = "?" and
83
- result = FlowSummary:: SummaryComponent:: elementUnknown ( )
84
+ exists ( ConstantValue cv | result = FlowSummary:: SummaryComponent:: elementKnown ( cv ) |
85
+ cv .isInt ( AccessPath:: parseInt ( arg ) )
84
86
or
85
- exists ( ConstantValue cv | result = FlowSummary:: SummaryComponent:: elementKnown ( cv ) |
86
- cv .isInt ( AccessPath:: parseInt ( arg ) )
87
- or
88
- not exists ( AccessPath:: parseInt ( arg ) ) and
89
- cv .serialize ( ) = c .getAnArgument ( )
90
- )
87
+ not exists ( AccessPath:: parseInt ( arg ) ) and
88
+ cv .serialize ( ) = c .getAnArgument ( )
91
89
)
92
90
)
93
91
}
You can’t perform that action at this time.
0 commit comments