Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–66 unchanged (66 lines)
67 self:set_widget(children[1])
68end
69
70--- Reset this layout. The widget will be removed and the axes reset.
71--
72-- @method reset
73-- @interface container
74function mirror:reset()
75 self._private.horizontal = false
76 self._private.vertical = false
77 self:set_widget(nil)
78end
79
…lines 80–136 unchanged (57 lines)

After

…lines 1–66 unchanged (66 lines)
67 self:set_widget(children[1])
68end
69
70--- Reset this layout. The widget will be removed and the axes reset.
71--
72-- @method reset
73-- @noreturn
74-- @interface container
75function mirror:reset()
76 self._private.horizontal = false
77 self._private.vertical = false
78 self:set_widget(nil)
79end
…lines 80–137 unchanged (58 lines)

Before

chunk
comment
-- "--"
comment_content "------------------------------------------------------------"...
comment
-- "--"
comment_content " Reflect a widget along one or both axis."
comment
-- "--"
comment_content ""
comment
-- "--"
comment_content "@DOC_wibox_container_defaults_mirror_EXAMPLE@"
comment
-- "--"
comment_content " @author dodo"
comment
-- "--"
comment_content " @copyright 2012 dodo"
comment
-- "--"
comment_content " @containermod wibox.container.mirror"
comment
-- "--"
comment_content " @supermodule wibox.widget.base"
comment
-- "--"
comment_content "------------------------------------------------------------"...
variable_declaration
local "local"
assignment_statement
variable_list
identifier "type"
= "="
expression_list
identifier "type"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "error"
= "="
expression_list
identifier "error"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "ipairs"
= "="
expression_list
identifier "ipairs"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "setmetatable"
= "="
expression_list
identifier "setmetatable"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "base"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
" "\""
string_content "wibox.widget.base"
" "\""
) ")"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "matrix"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
" "\""
string_content "gears.matrix"
" "\""
) ")"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "gtable"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
" "\""
string_content "gears.table"
" "\""
) ")"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "mirror"
= "="
expression_list
table_constructor
{ "{"
field
identifier "mt"
= "="
table_constructor
{ "{"
} "}"
} "}"
comment
-- "--"
comment_content " Layout this layout"
function_declaration (+223 nodes collapsed)
comment
-- "--"
comment_content " Fit this layout into the given area."
function_declaration (+58 nodes collapsed)
comment
-- "--"
comment_content "- The widget to be reflected."
comment
-- "--"
comment_content ""
comment
-- "--"
comment_content " @property widget"
comment
-- "--"
comment_content " @tparam widget widget The widget."
comment
-- "--"
comment_content " @interface container"
assignment_statement
variable_list
dot_index_expression
identifier "mirror"
. "."
identifier "set_widget"
= "="
expression_list
dot_index_expression
identifier "base"
. "."
identifier "set_widget_common"
function_declaration (+21 nodes collapsed)
function_declaration (+25 nodes collapsed)
function_declaration (+25 nodes collapsed)
comment
-- "--"
comment_content "- Reset this layout. The widget will be removed and the axes"...
comment
-- "--"
comment_content ""
comment
-- "--"
comment_content " @method reset"
comment
-- "--"
comment_content " @interface container"
function_declaration (+44 nodes collapsed)
function_declaration (+139 nodes collapsed)
comment
-- "--"
comment_content "- Get the reflection of this mirror layout."
comment
-- "--"
comment_content ""
comment
-- "--"
comment_content " @property reflection"
comment
-- "--"
comment_content " @tparam table reflection A table of booleans with the keys "...
comment
-- "--"
comment_content " @tparam boolean reflection.horizontal"
comment
-- "--"
comment_content " @tparam boolean reflection.vertical"
comment
-- "--"
comment_content " @propemits true false"
function_declaration (+38 nodes collapsed)
comment
-- "--"
comment_content "- Returns a new mirror container."
comment
-- "--"
comment_content ""
comment
-- "--"
comment_content " A mirror container mirrors a given widget. Use the `widget`"...
comment
-- "--"
comment_content " the widget and `reflection` property to set the direction."
comment
-- "--"
comment_content " horizontal and vertical are by default false which doesn't "...
comment
-- "--"
comment_content ""
comment
-- "--"
comment_content " @tparam[opt] widget widget The widget to display."
comment
-- "--"
comment_content " @tparam[opt] table reflection A table describing the reflec"...
comment
-- "--"
comment_content " @treturn table A new mirror container"
comment
-- "--"
comment_content " @constructorfct wibox.container.mirror"
function_declaration (+102 nodes collapsed)
function_declaration (+24 nodes collapsed)
return_statement
return "return"
expression_list
function_call
identifier "setmetatable"
arguments
( "("
identifier "mirror"
, ","
dot_index_expression
identifier "mirror"
. "."
identifier "mt"
) ")"
comment
-- "--"
comment_content " vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabs"...

After

chunk
comment
-- "--"
comment_content "------------------------------------------------------------"...
comment
-- "--"
comment_content " Reflect a widget along one or both axis."
comment
-- "--"
comment_content ""
comment
-- "--"
comment_content "@DOC_wibox_container_defaults_mirror_EXAMPLE@"
comment
-- "--"
comment_content " @author dodo"
comment
-- "--"
comment_content " @copyright 2012 dodo"
comment
-- "--"
comment_content " @containermod wibox.container.mirror"
comment
-- "--"
comment_content " @supermodule wibox.widget.base"
comment
-- "--"
comment_content "------------------------------------------------------------"...
variable_declaration
local "local"
assignment_statement
variable_list
identifier "type"
= "="
expression_list
identifier "type"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "error"
= "="
expression_list
identifier "error"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "ipairs"
= "="
expression_list
identifier "ipairs"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "setmetatable"
= "="
expression_list
identifier "setmetatable"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "base"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
" "\""
string_content "wibox.widget.base"
" "\""
) ")"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "matrix"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
" "\""
string_content "gears.matrix"
" "\""
) ")"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "gtable"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
" "\""
string_content "gears.table"
" "\""
) ")"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "mirror"
= "="
expression_list
table_constructor
{ "{"
field
identifier "mt"
= "="
table_constructor
{ "{"
} "}"
} "}"
comment
-- "--"
comment_content " Layout this layout"
function_declaration (+223 nodes collapsed)
comment
-- "--"
comment_content " Fit this layout into the given area."
function_declaration (+58 nodes collapsed)
comment
-- "--"
comment_content "- The widget to be reflected."
comment
-- "--"
comment_content ""
comment
-- "--"
comment_content " @property widget"
comment
-- "--"
comment_content " @tparam widget widget The widget."
comment
-- "--"
comment_content " @interface container"
assignment_statement
variable_list
dot_index_expression
identifier "mirror"
. "."
identifier "set_widget"
= "="
expression_list
dot_index_expression
identifier "base"
. "."
identifier "set_widget_common"
function_declaration (+21 nodes collapsed)
function_declaration (+25 nodes collapsed)
function_declaration (+25 nodes collapsed)
comment
-- "--"
comment_content "- Reset this layout. The widget will be removed and the axes"...
comment
-- "--"
comment_content ""
comment
-- "--"
comment_content " @method reset"
comment
-- "--"
comment_content " @noreturn"
comment
-- "--"
comment_content " @interface container"
function_declaration (+44 nodes collapsed)
function_declaration (+139 nodes collapsed)
comment
-- "--"
comment_content "- Get the reflection of this mirror layout."
comment
-- "--"
comment_content ""
comment
-- "--"
comment_content " @property reflection"
comment
-- "--"
comment_content " @tparam table reflection A table of booleans with the keys "...
comment
-- "--"
comment_content " @tparam boolean reflection.horizontal"
comment
-- "--"
comment_content " @tparam boolean reflection.vertical"
comment
-- "--"
comment_content " @propemits true false"
function_declaration (+38 nodes collapsed)
comment
-- "--"
comment_content "- Returns a new mirror container."
comment
-- "--"
comment_content ""
comment
-- "--"
comment_content " A mirror container mirrors a given widget. Use the `widget`"...
comment
-- "--"
comment_content " the widget and `reflection` property to set the direction."
comment
-- "--"
comment_content " horizontal and vertical are by default false which doesn't "...
comment
-- "--"
comment_content ""
comment
-- "--"
comment_content " @tparam[opt] widget widget The widget to display."
comment
-- "--"
comment_content " @tparam[opt] table reflection A table describing the reflec"...
comment
-- "--"
comment_content " @treturn table A new mirror container"
comment
-- "--"
comment_content " @constructorfct wibox.container.mirror"
function_declaration (+102 nodes collapsed)
function_declaration (+24 nodes collapsed)
return_statement
return "return"
expression_list
function_call
identifier "setmetatable"
arguments
( "("
identifier "mirror"
, ","
dot_index_expression
identifier "mirror"
. "."
identifier "mt"
) ")"
comment
-- "--"
comment_content " vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabs"...