/*
 Copyright 2021 The GoPlus Authors (goplus.org)
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
     http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/

package foo

const (
	GopPackage = true // to indicate this is a Go+ package
)

// -----------------------------------------------------------------------------

type nodeSetIt struct {
}

func (p *nodeSetIt) Next() (key int, val string, ok bool) {
	return
}

// -----------------------------------------------------------------------------

type NodeSet struct {
}

func (p NodeSet) Gop_Enum() *nodeSetIt {
	return &nodeSetIt{}
}

func (p NodeSet) Attr__0(k string, exactlyOne ...bool) (text string, err error) {
	return
}

func (p NodeSet) Attr__1(k, v string) (ret NodeSet) {
	return
}

// -----------------------------------------------------------------------------

type barIt struct {
}

func (p barIt) Next() (val string, ok bool) {
	return
}

type Bar struct {
}

func (p *Bar) Gop_Enum() barIt {
	return barIt{}
}

// -----------------------------------------------------------------------------

type Foo struct {
}

func (p *Foo) Gop_Enum(c func(v string)) {
}

// -----------------------------------------------------------------------------

type Foo2 struct {
}

func (p Foo2) Gop_Enum(c func(k int, v string)) {
}

// -----------------------------------------------------------------------------

type Foo3 struct {
}

func (p Foo3) Gop_Enum(c func(k int, v string)) int {
	return 0
}

// -----------------------------------------------------------------------------

type Foo4 struct {
}

func (p Foo4) Gop_Enum(c func()) {
}

// -----------------------------------------------------------------------------
