File tree Expand file tree Collapse file tree 1 file changed +61
-3
lines changed Expand file tree Collapse file tree 1 file changed +61
-3
lines changed Original file line number Diff line number Diff line change 1- const QUERY = [ '-> "p"' ] ;
1+ const QUERY = [
2+ '-> "p"' ,
3+ '"p",' ,
4+ '"p" -> a' ,
5+ '"a" -> "p"' ,
6+ '->"-"' ,
7+ '"a' ,
8+ ] ;
29
310const PARSED = [
411 {
512 elems : [ ] ,
613 foundElems : 1 ,
7- original : " -> \"p\"" ,
14+ original : ' -> "p"' ,
815 returned : [ {
916 name : "p" ,
1017 fullPath : [ "p" ] ,
@@ -13,7 +20,58 @@ const PARSED = [
1320 generics : [ ] ,
1421 } ] ,
1522 typeFilter : - 1 ,
16- userQuery : "-> \"p\"" ,
23+ userQuery : '-> "p"' ,
24+ error : null ,
25+ } ,
26+ {
27+ elems : [ {
28+ name : "p" ,
29+ fullPath : [ "p" ] ,
30+ pathWithoutLast : [ ] ,
31+ pathLast : "p" ,
32+ generics : [ ] ,
33+ } ] ,
34+ foundElems : 1 ,
35+ original : '"p",' ,
36+ returned : [ ] ,
37+ typeFilter : - 1 ,
38+ userQuery : '"p",' ,
1739 error : null ,
1840 } ,
41+ {
42+ elems : [ ] ,
43+ foundElems : 0 ,
44+ original : '"p" -> a' ,
45+ returned : [ ] ,
46+ typeFilter : - 1 ,
47+ userQuery : '"p" -> a' ,
48+ error : "You cannot have more than one element if you use quotes" ,
49+ } ,
50+ {
51+ elems : [ ] ,
52+ foundElems : 0 ,
53+ original : '"a" -> "p"' ,
54+ returned : [ ] ,
55+ typeFilter : - 1 ,
56+ userQuery : '"a" -> "p"' ,
57+ error : "Cannot have more than one literal search element" ,
58+ } ,
59+ {
60+ elems : [ ] ,
61+ foundElems : 0 ,
62+ original : '->"-"' ,
63+ returned : [ ] ,
64+ typeFilter : - 1 ,
65+ userQuery : '->"-"' ,
66+ error : 'Unexpected `-` in a string element' ,
67+ } ,
68+ {
69+ elems : [ ] ,
70+ foundElems : 0 ,
71+ original : '"a' ,
72+ returned : [ ] ,
73+ typeFilter : - 1 ,
74+ userQuery : '"a' ,
75+ error : 'Unclosed `"`' ,
76+ } ,
1977] ;
You can’t perform that action at this time.
0 commit comments