File tree Expand file tree Collapse file tree
javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -696,7 +696,7 @@ class XmlView extends UI5View instanceof XmlFile {
696696
697697/**
698698 * TODO - consider - if this just copies all predicates - maybe this should be a subtype of XmlView
699- * and we dont need a separate/parallel type for fragments vs views. this will become clear once
699+ * and we dont need a separate/parallel type for fragments vs views. this will become clear once
700700 */
701701class XmlFragment extends UI5Fragment instanceof XmlFile {
702702 XmlRootElement root ;
@@ -736,7 +736,11 @@ class XmlFragment extends UI5Fragment instanceof XmlFile {
736736
737737private newtype TUI5Control =
738738 TXmlControl ( XmlElement control ) {
739- control .getFile ( ) .getName ( ) .matches ( [ "%.view.xml" , "%.fragment.xml" ] )
739+ control
740+ .( Locatable )
741+ .getFile ( )
742+ .getBaseName ( )
743+ .matches ( [ "%.view.xml" , "%.view.html" , "%.fragment.xml" ] )
740744 } or
741745 TJsonControl ( JsonObject control ) {
742746 exists ( JsonView view | control .getParent ( ) = view .getRoot ( ) .getPropValue ( "content" ) )
You can’t perform that action at this time.
0 commit comments