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:
@@ -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)}
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user