(node *ast.Node)
| 247 | } |
| 248 | |
| 249 | func isCommonJSModuleExports(node *ast.Node) bool { |
| 250 | if ast.IsBinaryExpression(node) && ast.IsExpressionStatement(node.Parent) && ast.IsSourceFile(node.Parent.Parent) && |
| 251 | node.Parent.Parent.AsSourceFile().CommonJSModuleIndicator != nil { |
| 252 | switch ast.GetAssignmentDeclarationKind(node) { |
| 253 | case ast.JSDeclarationKindModuleExports, ast.JSDeclarationKindExportsProperty: |
| 254 | return true |
| 255 | } |
| 256 | } |
| 257 | return false |
| 258 | } |
| 259 | |
| 260 | func (r *EmitResolver) aliasMarkingVisitorWorker(node *ast.Node) bool { |
| 261 | switch node.Kind { |
no test coverage detected