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 44
55import javascript
66import advanced_security.javascript.frameworks.ui5.BindingStringParser as MakeBindingStringParser
7+ import advanced_security.javascript.frameworks.ui5.UI5View
78
89private class ContextBindingAttribute extends XmlAttribute {
910 ContextBindingAttribute ( ) { this .getName ( ) = "binding" }
@@ -15,8 +16,12 @@ private class ContextBindingAttribute extends XmlAttribute {
1516// TODO: add support for binding strings in strings such as `description: "Some {/description}"`
1617private newtype TBindingString =
1718 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
1923 TBindingStringFromJsonProperty ( JsonObject object , string propertyName ) {
24+ object .getFile ( ) instanceof UI5View and
2025 object .getPropStringValue ( propertyName ) .matches ( "{%}" )
2126 } or
2227 TBindingStringFromBindElementMethodCall ( BindElementMethodCallNode bindElement ) {
You can’t perform that action at this time.
0 commit comments