Add snippets for __invoke()
and __construct()
This commit is contained in:
parent
b55117af69
commit
06ea9a5ff9
|
@ -7,6 +7,24 @@ local i = ls.insert_node
|
||||||
local t = ls.text_node
|
local t = ls.text_node
|
||||||
|
|
||||||
local M = {
|
local M = {
|
||||||
|
__construct = fmta(
|
||||||
|
[[
|
||||||
|
public function __construct(<>) {
|
||||||
|
<>
|
||||||
|
}
|
||||||
|
]],
|
||||||
|
{ i(1), i(0) }
|
||||||
|
),
|
||||||
|
|
||||||
|
__invoke = fmta(
|
||||||
|
[[
|
||||||
|
public function __invoke(<>) {
|
||||||
|
<>
|
||||||
|
}
|
||||||
|
]],
|
||||||
|
{ i(1), i(0) }
|
||||||
|
),
|
||||||
|
|
||||||
func = fmta("function <>(<>)<> {\n <>\n}<>", { i(1), i(2), i(3), i(4), i(0) }),
|
func = fmta("function <>(<>)<> {\n <>\n}<>", { i(1), i(2), i(3), i(4), i(0) }),
|
||||||
|
|
||||||
met = fmta(
|
met = fmta(
|
||||||
|
|
Loading…
Reference in a new issue