1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-11-25 22:01:39 +02:00

add pointer receiver into all Functions methods

This commit is contained in:
3timeslazy
2019-10-15 12:04:04 +03:00
parent 83dc0d2811
commit 1a7240f738
3 changed files with 11 additions and 11 deletions

View File

@@ -14,7 +14,7 @@ const emptyNS = ""
const separator = "::"
type NamespaceContainer struct {
funcs core.Functions
funcs *core.Functions
name string
}
@@ -25,7 +25,7 @@ func newRootNamespace() *NamespaceContainer {
return ns
}
func newNamespace(funcs core.Functions, name string) *NamespaceContainer {
func newNamespace(funcs *core.Functions, name string) *NamespaceContainer {
return &NamespaceContainer{funcs, strings.ToUpper(name)}
}

View File

@@ -24,11 +24,11 @@ type (
visitor struct {
*fql.BaseFqlParserVisitor
src string
funcs core.Functions
funcs *core.Functions
}
)
func newVisitor(src string, funcs core.Functions) *visitor {
func newVisitor(src string, funcs *core.Functions) *visitor {
return &visitor{
&fql.BaseFqlParserVisitor{},
src,