(node, conditional)
| 651 | } |
| 652 | |
| 653 | function onSapUiRequireSync(node, conditional) { |
| 654 | const args = node.arguments; |
| 655 | const nArgs = args.length; |
| 656 | const i = 0; |
| 657 | |
| 658 | if ( i < nArgs ) { |
| 659 | const value = getStringValue(args[i]); |
| 660 | if ( value !== undefined ) { |
| 661 | // sap.ui.requireSync does not support relative dependencies |
| 662 | const moduleName = fromRequireJSName( value ); |
| 663 | info.addDependency(moduleName, conditional); |
| 664 | } else { |
| 665 | log.verbose(`sap.ui.requireSync: Cannot evaluate dynamic arguments: ${args[i] && args[i].type}`); |
| 666 | info.dynamicDependencies = true; |
| 667 | } |
| 668 | } |
| 669 | } |
| 670 | |
| 671 | function onSapUiPredefine(predefineCall, conditional) { |
| 672 | const args = predefineCall.arguments; |
nothing calls this directly
no test coverage detected