File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5 Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import javascript
6
6
import advanced_security.javascript.frameworks.ui5.BindingStringParser as MakeBindingStringParser
7
+ import advanced_security.javascript.frameworks.ui5.UI5View
7
8
8
9
private class ContextBindingAttribute extends XmlAttribute {
9
10
ContextBindingAttribute ( ) { this .getName ( ) = "binding" }
@@ -15,8 +16,12 @@ private class ContextBindingAttribute extends XmlAttribute {
15
16
// TODO: add support for binding strings in strings such as `description: "Some {/description}"`
16
17
private newtype TBindingString =
17
18
TBindingStringFromLiteral ( StringLiteral stringLiteral ) { stringLiteral .getValue ( ) .matches ( "{%}" ) } or
18
- TBindingStringFromXmlAttribute ( XmlAttribute attribute ) { attribute .getValue ( ) .matches ( "{%}" ) } or
19
+ TBindingStringFromXmlAttribute ( XmlAttribute attribute ) {
20
+ attribute .getLocation ( ) .getFile ( ) instanceof XmlView and
21
+ attribute .getValue ( ) .matches ( "{%}" )
22
+ } or
19
23
TBindingStringFromJsonProperty ( JsonObject object , string propertyName ) {
24
+ object .getFile ( ) instanceof UI5View and
20
25
object .getPropStringValue ( propertyName ) .matches ( "{%}" )
21
26
} or
22
27
TBindingStringFromBindElementMethodCall ( BindElementMethodCallNode bindElement ) {
You can’t perform that action at this time.
0 commit comments