1 // Copyright 2019 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
13 a.fabar //@item(fuzzFabarField, "a.fabar", "int", "field")
14 a.fooBar //@item(fuzzFooBarField, "a.fooBar", "string", "field")
16 afa //@fuzzy(" //", fuzzFabarField, fuzzFooBarField)
17 afb //@fuzzy(" //", fuzzFooBarField, fuzzFabarField)
19 fab //@fuzzy(" //", fuzzFabarField)
22 myString = af //@fuzzy(" //", fuzzFooBarField, fuzzFabarField)
37 b.abc //@item(fuzzABCInt, "b.abc", "int", "field")
38 b.c.abc //@item(fuzzABCbool, "b.c.abc", "bool", "field")
39 b.c.d.abc //@item(fuzzABCfloat, "b.c.d.abc", "float32", "field")
40 b.c.d.e.abc //@item(fuzzABCstring, "b.c.d.e.abc", "string", "field")
42 // in depth order by default
43 abc //@fuzzy(" //", fuzzABCInt, fuzzABCbool, fuzzABCfloat)
45 // deep candidate that matches expected type should still ranked first
47 s = abc //@fuzzy(" //", fuzzABCstring, fuzzABCInt, fuzzABCbool)