Skip to content

Commit 009b2c9

Browse files
committed
chore: resolve undefined-field
1 parent 44281f7 commit 009b2c9

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

lua/nvim-tree/node/directory-link.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ local DirectoryNode = require("nvim-tree.node.directory")
44

55
---@class (exact) DirectoryLinkNode: DirectoryNode
66
---@field link_to string absolute path
7-
---@field fs_stat_target uv.fs_stat.result
7+
---@field private fs_stat_target uv.fs_stat.result
88
local DirectoryLinkNode = DirectoryNode:new()
99

1010
---Static factory method

lua/nvim-tree/node/directory.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ local Node = require("nvim-tree.node")
77
---@field group_next DirectoryNode? -- If node is grouped, this points to the next child dir/link node
88
---@field nodes Node[]
99
---@field open boolean
10-
---@field watcher Watcher?
1110
---@field hidden_stats table? -- Each field of this table is a key for source and value for count
11+
---@field private watcher Watcher?
1212
local DirectoryNode = Node:new()
1313

1414
---Static factory method
@@ -31,11 +31,11 @@ function DirectoryNode:create(explorer, parent, absolute_path, name, fs_stat)
3131
fs_stat = fs_stat,
3232
git_status = nil,
3333
hidden = false,
34-
is_dot = false,
3534
name = name,
3635
parent = parent,
3736
watcher = nil,
3837
diag_status = nil,
38+
is_dot = false,
3939

4040
has_children = has_children,
4141
group_next = nil,

lua/nvim-tree/node/file-link.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ local FileNode = require("nvim-tree.node.file")
44

55
---@class (exact) FileLinkNode: FileNode
66
---@field link_to string absolute path
7-
---@field fs_stat_target uv.fs_stat.result
7+
---@field private fs_stat_target uv.fs_stat.result
88
local FileLinkNode = FileNode:new()
99

1010
---Static factory method

lua/nvim-tree/node/file.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ function FileNode:create(explorer, parent, absolute_path, name, fs_stat)
2424
fs_stat = fs_stat,
2525
git_status = nil,
2626
hidden = false,
27-
is_dot = false,
2827
name = name,
2928
parent = parent,
3029
diag_status = nil,
30+
is_dot = false,
3131

3232
extension = string.match(name, ".?[^.]+%.(.*)") or "",
3333
}

lua/nvim-tree/node/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ local Class = require("nvim-tree.class")
1313
---@field name string
1414
---@field parent DirectoryNode?
1515
---@field diag_status DiagStatus?
16-
---@field is_dot boolean cached is_dotfile
16+
---@field private is_dot boolean cached is_dotfile
1717
local Node = Class:new()
1818

1919
function Node:destroy()
@@ -82,10 +82,10 @@ function Node:clone()
8282
fs_stat = self.fs_stat,
8383
git_status = self.git_status,
8484
hidden = self.hidden,
85-
is_dot = self.is_dot,
8685
name = self.name,
8786
parent = nil,
8887
diag_status = nil,
88+
is_dot = self.is_dot,
8989
}
9090

9191
return clone

0 commit comments

Comments
 (0)