(node *ast.Node)
| 922 | } |
| 923 | |
| 924 | func (b *Binder) bindCallExpression(node *ast.Node) { |
| 925 | // We're only inspecting call expressions to detect CommonJS modules, so we can skip |
| 926 | // this check if we've already seen the module indicator |
| 927 | if b.file.CommonJSModuleIndicator == nil && ast.IsRequireCall(node, false /*requireStringLiteralLikeArgument*/) { |
| 928 | b.setCommonJSModuleIndicator(node) |
| 929 | } |
| 930 | } |
| 931 | |
| 932 | func (b *Binder) setCommonJSModuleIndicator(node *ast.Node) bool { |
| 933 | if b.file.ExternalModuleIndicator != nil && b.file.ExternalModuleIndicator != b.file.AsNode() { |
no test coverage detected