1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-12-03 22:24:14 +02:00

New type system (#232)

* New type system

* Fixed dot notation for HTML elements
This commit is contained in:
Tim Voronov
2019-02-13 12:31:18 -05:00
committed by GitHub
parent b3bcbda3b9
commit 1af8b37a0f
185 changed files with 1379 additions and 820 deletions

View File

@@ -11,6 +11,8 @@ import (
. "github.com/smartystreets/goconvey/convey"
)
var testIterableCollectionType = core.NewType("TestIterableCollection")
type (
testIterableCollection struct {
values collections.IndexedCollection
@@ -32,12 +34,12 @@ func (c *testIterableCollection) MarshalJSON() ([]byte, error) {
return nil, core.ErrInvalidOperation
}
func (c *testIterableCollection) Type() core.Type {
return core.Type(11)
return testIterableCollectionType
}
func (c *testIterableCollection) String() string {
return ""
}
func (c *testIterableCollection) Compare(other core.Value) int {
func (c *testIterableCollection) Compare(other core.Value) int64 {
return 1
}
func (c *testIterableCollection) Unwrap() interface{} {