Skip to content

Commit b00279c

Browse files
authored
Remove unused JSGlobalAugmentations (#1155)
1 parent 90a49a3 commit b00279c

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

internal/ast/ast.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10031,8 +10031,6 @@ type SourceFile struct {
1003110031

1003210032
tokenCacheMu sync.Mutex
1003310033
tokenCache map[core.TextRange]*Node
10034-
10035-
JSGlobalAugmentations SymbolTable // !!! remove me
1003610034
}
1003710035

1003810036
func (f *NodeFactory) NewSourceFile(text string, fileName string, path tspath.Path, statements *NodeList) *Node {
@@ -10132,7 +10130,6 @@ func (node *SourceFile) copyFrom(other *SourceFile) {
1013210130
node.LibReferenceDirectives = other.LibReferenceDirectives
1013310131
node.CommonJSModuleIndicator = other.CommonJSModuleIndicator
1013410132
node.ExternalModuleIndicator = other.ExternalModuleIndicator
10135-
node.JSGlobalAugmentations = other.JSGlobalAugmentations
1013610133
node.Flags |= other.Flags
1013710134
}
1013810135

internal/binder/binder.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,12 +1221,6 @@ func (b *Binder) lookupName(name string, container *ast.Node) *ast.Symbol {
12211221
return core.OrElse(local.ExportSymbol, local)
12221222
}
12231223
}
1224-
if ast.IsSourceFile(container) {
1225-
local := container.AsSourceFile().JSGlobalAugmentations[name]
1226-
if local != nil {
1227-
return local
1228-
}
1229-
}
12301224
declaration := container.DeclarationData()
12311225
if declaration != nil && declaration.Symbol != nil {
12321226
return declaration.Symbol.Exports[name]

0 commit comments

Comments
 (0)