Skip to content

Commit

Permalink
Rename StringBinding to BindingString
Browse files Browse the repository at this point in the history
  • Loading branch information
rvermeulen committed Nov 17, 2023
1 parent 116f7ba commit 61c4760
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ private module BindingStringParser =

class BindingValue = BindingStringParser::Binding;

class StringBinding extends string {
class BindingString extends string {
bindingset[this]
StringBinding() { this = getBindingString() }
BindingString() { this = getBindingString() }
}

class BindPropertyMethodCallNode extends DataFlow::MethodCallNode {
Expand Down Expand Up @@ -108,7 +108,7 @@ newtype TBinding =
* That is a string enclosed by curly braces.
*/
TXmlPropertyBinding(XmlAttribute attribute, BindingValue binding) {
exists(StringBinding bindingString |
exists(BindingString bindingString |
attribute.getValue() = bindingString and
binding = BindingStringParser::parseBinding(bindingString)
) and
Expand All @@ -119,7 +119,7 @@ newtype TBinding =
* That is a string enclosed by curly braces.
*/
TXmlContextBinding(ContextBindingAttribute attribute, BindingValue binding) {
exists(StringBinding bindingString |
exists(BindingString bindingString |
attribute.getValue() = bindingString and
binding = BindingStringParser::parseBinding(bindingString)
)
Expand All @@ -133,7 +133,7 @@ newtype TBinding =
TEarlyJavaScriptPropertyBinding(DataFlow::NewNode newNode, DataFlow::SourceNode binding) {
// Property binding via a string binding
exists(StringLiteral constantBinding |
constantBinding = binding.asExpr() and constantBinding.getValue() instanceof StringBinding
constantBinding = binding.asExpr() and constantBinding.getValue() instanceof BindingString
|
newNode.getAnArgument().getALocalSource().(DataFlow::ObjectLiteralNode).getAPropertySource() =
binding
Expand Down Expand Up @@ -176,7 +176,7 @@ newtype TBinding =
} or
// Json binding
TJsonPropertyBinding(JsonValue value, string key, BindingValue binding) {
exists(JsonObject object, StringBinding bindingString |
exists(JsonObject object, BindingString bindingString |
value = object.getPropValue(key) and
value.getStringValue() = bindingString and
binding = BindingStringParser::parseBinding(bindingString)
Expand Down

0 comments on commit 61c4760

Please sign in to comment.