protected :new
This commit is contained in:
parent
82fc5296ff
commit
412475e4f7
@ -28,6 +28,7 @@ local Clipboard = Class:extend()
|
||||
---@class (exact) ClipboardArgs
|
||||
---@field explorer Explorer
|
||||
|
||||
---@protected
|
||||
---@param args ClipboardArgs
|
||||
function Clipboard:new(args)
|
||||
self.explorer = args.explorer
|
||||
|
||||
@ -19,6 +19,7 @@ local HighlightDisplay = Class:extend()
|
||||
---@class (exact) HighlightDisplayArgs
|
||||
---@field group string nvim-tree highlight group name
|
||||
|
||||
---@protected
|
||||
---@param args HighlightDisplayArgs
|
||||
function HighlightDisplay:new(args)
|
||||
self.group = args.group
|
||||
|
||||
@ -16,6 +16,7 @@ local Class = {}
|
||||
Class.__index = Class ---@diagnostic disable-line: inject-field
|
||||
|
||||
---Default constructor
|
||||
---@protected
|
||||
function Class:new(...) --luacheck: ignore 212
|
||||
end
|
||||
|
||||
|
||||
@ -20,6 +20,7 @@ local Filters = Class:extend()
|
||||
---@class (exact) FiltersArgs
|
||||
---@field explorer Explorer
|
||||
|
||||
---@protected
|
||||
---@param args FiltersArgs
|
||||
function Filters:new(args)
|
||||
self.explorer = args.explorer
|
||||
|
||||
@ -43,6 +43,7 @@ local Explorer = RootNode:extend()
|
||||
---@class (exact) ExplorerArgs
|
||||
---@field path string
|
||||
|
||||
---@protected
|
||||
---@param args ExplorerArgs
|
||||
function Explorer:new(args)
|
||||
Explorer.super.new(self, {
|
||||
|
||||
@ -18,6 +18,7 @@ local LiveFilter = Class:extend()
|
||||
---@class (exact) LiveFilterArgs
|
||||
---@field explorer Explorer
|
||||
|
||||
---@protected
|
||||
---@param args LiveFilterArgs
|
||||
function LiveFilter:new(args)
|
||||
self.explorer = args.explorer
|
||||
|
||||
@ -20,6 +20,7 @@ local Sorter = Class:extend()
|
||||
---@class (exact) SorterArgs
|
||||
---@field explorer Explorer
|
||||
|
||||
---@protected
|
||||
---@param args SorterArgs
|
||||
function Sorter:new(args)
|
||||
self.state = vim.deepcopy(args.explorer.opts.sort)
|
||||
|
||||
@ -24,7 +24,7 @@ local GitRunner = Class:extend()
|
||||
local timeouts = 0
|
||||
local MAX_TIMEOUTS = 5
|
||||
|
||||
---@private
|
||||
---@protected
|
||||
---@param args GitRunnerArgs
|
||||
function GitRunner:new(args)
|
||||
self.args = args
|
||||
|
||||
@ -22,6 +22,7 @@ local Marks = Class:extend()
|
||||
---@class (exact) MarksArgs
|
||||
---@field explorer Explorer
|
||||
|
||||
---@protected
|
||||
---@param args MarksArgs
|
||||
function Marks:new(args)
|
||||
self.explorer = args.explorer
|
||||
|
||||
@ -8,7 +8,7 @@ local LinkNode = Class:extend()
|
||||
---@class (exact) LinkNodeArgs: NodeArgs
|
||||
---@field link_to string
|
||||
---@field fs_stat_target uv.fs_stat.result
|
||||
---
|
||||
|
||||
---@protected
|
||||
---@param args LinkNodeArgs
|
||||
function LinkNode:new(args)
|
||||
|
||||
@ -47,6 +47,7 @@ local Builder = Class:extend()
|
||||
---@class (exact) BuilderArgs
|
||||
---@field explorer Explorer
|
||||
|
||||
---@protected
|
||||
---@param args BuilderArgs
|
||||
function Builder:new(args)
|
||||
self.explorer = args.explorer
|
||||
|
||||
@ -7,7 +7,7 @@ local DecoratorBookmarks = Decorator:extend()
|
||||
---@class DecoratorBookmarks
|
||||
---@overload fun(explorer: DecoratorArgs): DecoratorBookmarks
|
||||
|
||||
---@private
|
||||
---@protected
|
||||
---@param args DecoratorArgs
|
||||
function DecoratorBookmarks:new(args)
|
||||
Decorator.new(self, {
|
||||
|
||||
@ -6,7 +6,7 @@ local DecoratorCopied = Decorator:extend()
|
||||
---@class DecoratorCopied
|
||||
---@overload fun(explorer: DecoratorArgs): DecoratorCopied
|
||||
|
||||
---@private
|
||||
---@protected
|
||||
---@param args DecoratorArgs
|
||||
function DecoratorCopied:new(args)
|
||||
Decorator.new(self, {
|
||||
|
||||
@ -6,7 +6,7 @@ local DecoratorCut = Decorator:extend()
|
||||
---@class DecoratorCut
|
||||
---@overload fun(explorer: DecoratorArgs): DecoratorCut
|
||||
|
||||
---@private
|
||||
---@protected
|
||||
---@param args DecoratorArgs
|
||||
function DecoratorCut:new(args)
|
||||
Decorator.new(self, {
|
||||
|
||||
@ -37,7 +37,7 @@ local DecoratorDiagnostics = Decorator:extend()
|
||||
---@class DecoratorDiagnostics
|
||||
---@overload fun(explorer: DecoratorArgs): DecoratorDiagnostics
|
||||
|
||||
---@private
|
||||
---@protected
|
||||
---@param args DecoratorArgs
|
||||
function DecoratorDiagnostics:new(args)
|
||||
Decorator.new(self, {
|
||||
|
||||
@ -22,7 +22,7 @@ local DecoratorGit = Decorator:extend()
|
||||
---@class DecoratorGit
|
||||
---@overload fun(explorer: DecoratorArgs): DecoratorGit
|
||||
|
||||
---@private
|
||||
---@protected
|
||||
---@param args DecoratorArgs
|
||||
function DecoratorGit:new(args)
|
||||
Decorator.new(self, {
|
||||
|
||||
@ -8,7 +8,7 @@ local DecoratorHidden = Decorator:extend()
|
||||
---@class DecoratorHidden
|
||||
---@overload fun(explorer: DecoratorArgs): DecoratorHidden
|
||||
|
||||
---@private
|
||||
---@protected
|
||||
---@param args DecoratorArgs
|
||||
function DecoratorHidden:new(args)
|
||||
Decorator.new(self, {
|
||||
|
||||
@ -10,7 +10,7 @@ local DecoratorModified = Decorator:extend()
|
||||
---@class DecoratorModified
|
||||
---@overload fun(explorer: DecoratorArgs): DecoratorModified
|
||||
|
||||
---@private
|
||||
---@protected
|
||||
---@param args DecoratorArgs
|
||||
function DecoratorModified:new(args)
|
||||
Decorator.new(self, {
|
||||
|
||||
@ -9,7 +9,7 @@ local DecoratorOpened = Decorator:extend()
|
||||
---@class DecoratorOpened
|
||||
---@overload fun(explorer: DecoratorArgs): DecoratorOpened
|
||||
|
||||
---@private
|
||||
---@protected
|
||||
---@param args DecoratorArgs
|
||||
function DecoratorOpened:new(args)
|
||||
Decorator.new(self, {
|
||||
|
||||
@ -21,6 +21,7 @@ local Renderer = Class:extend()
|
||||
---@class (exact) RendererArgs
|
||||
---@field explorer Explorer
|
||||
|
||||
---@protected
|
||||
---@param args RendererArgs
|
||||
function Renderer:new(args)
|
||||
self.explorer = args.explorer
|
||||
|
||||
@ -32,7 +32,7 @@ local Event = Class:extend()
|
||||
---@class (exact) EventArgs
|
||||
---@field path string
|
||||
|
||||
---@private
|
||||
---@protected
|
||||
---@param args EventArgs
|
||||
function Event:new(args)
|
||||
self.destroyed = false
|
||||
@ -160,7 +160,7 @@ local Watcher = Class:extend()
|
||||
---@field callback fun(watcher: Watcher)
|
||||
---@field data table? user data
|
||||
|
||||
---@private
|
||||
---@protected
|
||||
---@param args WatcherArgs
|
||||
function Watcher:new(args)
|
||||
self.data = args.data
|
||||
|
||||
Loading…
Reference in New Issue
Block a user