moved a subset of source file to the kern package
This commit is contained in:
+6
-2
@@ -4,6 +4,10 @@
|
||||
// operator-plugin.go
|
||||
package expr
|
||||
|
||||
import (
|
||||
"git.portale-stac.it/go-pkg/expr/kern"
|
||||
)
|
||||
|
||||
//-------- plugin term
|
||||
|
||||
func newPluginTerm(tk *Token) (inst *term) {
|
||||
@@ -16,7 +20,7 @@ func newPluginTerm(tk *Token) (inst *term) {
|
||||
}
|
||||
}
|
||||
|
||||
func evalPlugin(ctx ExprContext, opTerm *term) (v any, err error) {
|
||||
func evalPlugin(ctx kern.ExprContext, opTerm *term) (v any, err error) {
|
||||
var childValue any
|
||||
var count int
|
||||
|
||||
@@ -24,7 +28,7 @@ func evalPlugin(ctx ExprContext, opTerm *term) (v any, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
if count, err = importPluginFromSearchPath(childValue); err == nil {
|
||||
if count, err = importPluginFromSearchPath(ctx, childValue); err == nil {
|
||||
v = int64(count)
|
||||
}
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user