@@ -17,8 +17,8 @@ function Decorator:new(o)
1717 return o
1818end
1919
20- --- Maybe highlight groups
21- --- @param node table
20+ --- Maybe highlight groups
21+ --- @param node Node
2222--- @return string | nil icon highlight group
2323--- @return string | nil name highlight group
2424function Decorator :groups_icon_name (node )
@@ -38,8 +38,8 @@ function Decorator:groups_icon_name(node)
3838 return icon_hl , name_hl
3939end
4040
41- --- Maybe icon sign
42- --- @param node table
41+ --- Maybe icon sign
42+ --- @param node Node
4343--- @return string | nil name
4444function Decorator :sign_name (node )
4545 if not self .enabled or self .icon_placement ~= ICON_PLACEMENT .signcolumn then
@@ -52,8 +52,8 @@ function Decorator:sign_name(node)
5252 end
5353end
5454
55- --- Icons when ICON_PLACEMENT.before
56- --- @param node table
55+ --- Icons when ICON_PLACEMENT.before
56+ --- @param node Node
5757--- @return HighlightedString[] | nil icons
5858function Decorator :icons_before (node )
5959 if not self .enabled or self .icon_placement ~= ICON_PLACEMENT .before then
@@ -63,8 +63,8 @@ function Decorator:icons_before(node)
6363 return self :calculate_icons (node )
6464end
6565
66- --- Icons when ICON_PLACEMENT.after
67- --- @param node table
66+ --- Icons when ICON_PLACEMENT.after
67+ --- @param node Node
6868--- @return HighlightedString[] | nil icons
6969function Decorator :icons_after (node )
7070 if not self .enabled or self .icon_placement ~= ICON_PLACEMENT .after then
@@ -74,23 +74,23 @@ function Decorator:icons_after(node)
7474 return self :calculate_icons (node )
7575end
7676
77- --- Maybe icons, optionally implemented
77+ --- Maybe icons, optionally implemented
7878--- @protected
79- --- @param _ table node
79+ --- @param _ Node
8080--- @return HighlightedString[] | nil icons
8181function Decorator :calculate_icons (_ )
8282 return nil
8383end
8484
85- --- Maybe highlight group, optionally implemented
85+ --- Maybe highlight group, optionally implemented
8686--- @protected
87- --- @param _ table node
87+ --- @param _ Node
8888--- @return string | nil group
8989function Decorator :calculate_highlight (_ )
9090 return nil
9191end
9292
93- --- Define a sign
93+ --- Define a sign
9494--- @protected
9595--- @param icon HighlightedString | nil
9696function Decorator :define_sign (icon )
0 commit comments