feat(php): support for methods
This commit is contained in:
@@ -6,7 +6,7 @@ local i = require("neogen.types.template").item
|
|||||||
return {
|
return {
|
||||||
parent = {
|
parent = {
|
||||||
type = { "property_declaration", "const_declaration", "foreach_statement" },
|
type = { "property_declaration", "const_declaration", "foreach_statement" },
|
||||||
func = { "function_definition" },
|
func = { "function_definition", "method_declaration" },
|
||||||
class = { "class_declaration" },
|
class = { "class_declaration" },
|
||||||
},
|
},
|
||||||
data = {
|
data = {
|
||||||
@@ -25,7 +25,7 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
func = {
|
func = {
|
||||||
["function_definition"] = {
|
["function_definition|method_declaration"] = {
|
||||||
["0"] = {
|
["0"] = {
|
||||||
extract = function(node)
|
extract = function(node)
|
||||||
local tree = {
|
local tree = {
|
||||||
|
|||||||
Reference in New Issue
Block a user