generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Improve parsing-error handling
- Loading branch information
Showing
10 changed files
with
173 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
test/fixtures/transpiler/xml/EventHandlerParsingErrors.view.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<mvc:View xmlns:mvc="sap.ui.core.mvc" | ||
xmlns="sap.m" | ||
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1" | ||
template:require="{ Helper: 'com/myapp/Helper' }" | ||
> | ||
|
||
<!-- Invalid binding (trailing comma) that is resolved during XML templating at runtime --> | ||
<Button press="{ parts: [{path: 'facet>Target'}, {path: 'facet>Label'},],formatter: 'Helper.formatEventHandler'}" /> | ||
|
||
<!-- Invalid event handler (trailing comma) --> | ||
<Button press=".onPressFancyButton($event, { text: ${i18n>TEXT}, })" /> | ||
|
||
<!-- Valid binding that is resolved during XML templating at runtime --> | ||
<Button press="{ parts: [{path: 'facet>Target'}, {path: 'facet>Label'}],formatter: 'Helper.formatEventHandler'}" /> | ||
|
||
<!-- Valid event handler, but not parsable as property binding. This should not lead to any parsing error --> | ||
<Button press=".onPressFancyButton($event, { text: ${i18n>TEXT} })" /> | ||
|
||
<!-- Invalid event handler, parsable as property binding. This should not lead to any parsing error --> | ||
<Button press="{:= '.onPressFancyButton(\'' + ${meta>/@sapui.name} + '\')' }" /> | ||
|
||
</mvc:View> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.