(node *ast.Node)
| 1084 | } |
| 1085 | |
| 1086 | func (b *Binder) bindExportsOrObjectDefineProperty(node *ast.Node) { |
| 1087 | if b.setCommonJSModuleIndicator(node) { |
| 1088 | container := b.file.AsNode() |
| 1089 | flags := core.IfElse(ast.IsBinaryExpression(node) && ast.ExpressionIsAlias(node.AsBinaryExpression().Right), ast.SymbolFlagsAlias, ast.SymbolFlagsFunctionScopedVariable) |
| 1090 | b.declareSymbol(ast.GetExports(container.Symbol()), container.Symbol(), node, flags, ast.SymbolFlagsFunctionScopedVariableExcludes) |
| 1091 | } |
| 1092 | } |
| 1093 | |
| 1094 | func getInitializerSymbol(symbol *ast.Symbol) *ast.Symbol { |
| 1095 | if symbol == nil || symbol.ValueDeclaration == nil { |
no test coverage detected