mirror of
https://github.com/MontFerret/ferret.git
synced 2025-03-19 21:28:32 +02:00
17 lines
383 B
Go
17 lines
383 B
Go
package expressions
|
|
|
|
import "github.com/MontFerret/ferret/pkg/runtime/core"
|
|
|
|
type MemberPathSegment struct {
|
|
exp core.Expression
|
|
optional bool
|
|
}
|
|
|
|
func NewMemberPathSegment(source core.Expression, optional bool) (*MemberPathSegment, error) {
|
|
if source == nil {
|
|
return nil, core.Error(core.ErrMissedArgument, "source")
|
|
}
|
|
|
|
return &MemberPathSegment{source, optional}, nil
|
|
}
|