You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When checking a call expression for deprecated methods, the linter tries to understand the context of the call to later be able to include the context into its report. In certain common cases it fails to do so and throws an error like Unhandled CallExpression expression syntax: ${callee.type}
Most prominent example (occurs quite often in modern ES2022 or TypeScript code when the constructor of a class calls super(...)):
A CallExpression on a CallExpression wasn't handled yet and caused a
fatal error.
This commit also adds a test case for another issue that was already
fixed via #73 (SuperKeyword).
Fixes: #246
A CallExpression on a CallExpression wasn't handled yet and caused a
fatal error.
This commit also adds a test case for another issue that was already
fixed via #73 (SuperKeyword).
Fixes: #246
When checking a call expression for deprecated methods, the linter tries to understand the context of the call to later be able to include the context into its report. In certain common cases it fails to do so and throws an error like
Unhandled CallExpression expression syntax: ${callee.type}
Most prominent example (occurs quite often in modern ES2022 or TypeScript code when the constructor of a class calls
super(...)
):results in
Unhandled CallExpression expression syntax: SuperKeyword
(found multiple times in sap.fe, e.g. in @sapui5/sap.fe.templates/src/sap/fe/templates/ListReport/controls/MultipleModeControl.ts#76Less prominent: when the call occurs on the result of another call:
results in
Unhandled CallExpression expression syntax: CallExpression
(found in @sapui5/sap.fe.core/src/sap/fe/core/ExtensionAPI.ts#297).Context
The text was updated successfully, but these errors were encountered: