mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
911 B
911 B
0.6.2
Minor Analysis Improvements
- Fixed labels in the API graph pertaining to definitions of subscripts. Previously, these were found by
getMemberrather thangetASubscript. - Added edges for indices of subscripts to the API graph. Now a subscripted API node will have an edge to the API node for the index expression. So if
foois matched by API nodeA, then"key"infoo["key"]will be matched by the API nodeA.getIndex(). This can be used to track the origin of the index. - Added member predicate
getSubscriptAt(API::Node index)toAPI::Node. LikegetASubscript(), this will return an API node that matches a subscript of the node, but here it will be restricted to subscripts where the index matches theindexparameter. - Added convenience predicate
getSubscript("key")to obtain a subscript at a specific index, when the index happens to be a statically known string.