We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d861861 commit 930150fCopy full SHA for 930150f
internal/ast/ast.go
@@ -10950,7 +10950,7 @@ func (node *SourceFile) ECMALineMap() []core.TextPos {
10950
// If the name appears more than once, the value is -1.
10951
func (file *SourceFile) GetNameTable() map[string]int {
10952
file.nameTableOnce.Do(func() {
10953
- nameTable := make(map[string]int)
+ nameTable := make(map[string]int, file.IdentifierCount)
10954
10955
isTagName := func(node *Node) bool {
10956
return node.Parent != nil && IsJSDocTag(node.Parent) && node.Parent.TagName() == node
0 commit comments