Skip to content

Commit

Permalink
Improve Bindings module interface by hiding implementation details
Browse files Browse the repository at this point in the history
  • Loading branch information
rvermeulen committed Nov 17, 2023
1 parent 61c4760 commit 2b85ea8
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,30 @@ private string getBindingString() {
private module BindingStringParser =
MakeBindingStringParser::BindingStringParser<getBindingString/0>;

class BindingValue = BindingStringParser::Binding;
private class BindingValue = BindingStringParser::Binding;

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

class BindPropertyMethodCallNode extends DataFlow::MethodCallNode {
private class BindPropertyMethodCallNode extends DataFlow::MethodCallNode {
BindPropertyMethodCallNode() { this.getMethodName() = "bindProperty" }
}

class BindElementMethodCallNode extends DataFlow::MethodCallNode {
private class BindElementMethodCallNode extends DataFlow::MethodCallNode {
BindElementMethodCallNode() { this.getMethodName() = "bindElement" }
}

class BindValueMethodCallNode extends DataFlow::MethodCallNode {
private class BindValueMethodCallNode extends DataFlow::MethodCallNode {
BindValueMethodCallNode() { this.getMethodName() = "bindValue" }
}

newtype TLateJavaScriptPropertyBindingMethodCall =
private newtype TLateJavaScriptPropertyBindingMethodCall =
TBindProperty(BindPropertyMethodCallNode bindProperty) or
TBindValue(BindValueMethodCallNode bindValue)

class LateJavaScriptPropertyBindingMethodCall extends TLateJavaScriptPropertyBindingMethodCall {
private class LateJavaScriptPropertyBindingMethodCall extends TLateJavaScriptPropertyBindingMethodCall {
string toString() {
exists(BindPropertyMethodCallNode bindProperty |
this = TBindProperty(bindProperty) and
Expand Down Expand Up @@ -102,7 +102,7 @@ class LateJavaScriptPropertyBindingMethodCall extends TLateJavaScriptPropertyBin
}
}

newtype TBinding =
private newtype TBinding =
/**
* Any XML attribute that is assigned a binding string.
* That is a string enclosed by curly braces.
Expand Down

0 comments on commit 2b85ea8

Please sign in to comment.