github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/pkg/schemadsl/parser/tests/complexcaveat.zed.expected (about) 1 NodeTypeFile 2 end-rune = 321 3 input-source = complex caveat test 4 start-rune = 0 5 child-node => 6 NodeTypeDefinition 7 definition-name = another 8 end-rune = 20 9 input-source = complex caveat test 10 start-rune = 0 11 NodeTypeCaveatDefinition 12 caveat-definition-name = somecaveat 13 end-rune = 190 14 input-source = complex caveat test 15 start-rune = 23 16 caveat-definition-expression => 17 NodeTypeCaveatExpression 18 caveat-expression-expressionstr = somecondition == 42 && somebool || something == "hi there" && 19 ({ 20 "themap": 42 21 }).contains("whatever") 22 23 end-rune = 189 24 input-source = complex caveat test 25 start-rune = 80 26 parameters => 27 NodeTypeCaveatParameter 28 caveat-parameter-name = somecondition 29 end-rune = 58 30 input-source = complex caveat test 31 start-rune = 41 32 caveat-parameter-type => 33 NodeTypeCaveatTypeReference 34 end-rune = 58 35 input-source = complex caveat test 36 start-rune = 55 37 type-name = uint 38 NodeTypeCaveatParameter 39 caveat-parameter-name = somebool 40 end-rune = 73 41 input-source = complex caveat test 42 start-rune = 61 43 caveat-parameter-type => 44 NodeTypeCaveatTypeReference 45 end-rune = 73 46 input-source = complex caveat test 47 start-rune = 70 48 type-name = bool 49 NodeTypeCaveatDefinition 50 caveat-definition-name = anothercaveat 51 end-rune = 301 52 input-source = complex caveat test 53 start-rune = 193 54 caveat-definition-expression => 55 NodeTypeCaveatExpression 56 caveat-expression-expressionstr = somelist.contains("hiya") && somemap?.foo 57 58 end-rune = 300 59 input-source = complex caveat test 60 start-rune = 259 61 parameters => 62 NodeTypeCaveatParameter 63 caveat-parameter-name = somemap 64 end-rune = 232 65 input-source = complex caveat test 66 start-rune = 214 67 caveat-parameter-type => 68 NodeTypeCaveatTypeReference 69 end-rune = 232 70 input-source = complex caveat test 71 start-rune = 222 72 type-name = map 73 child-types => 74 NodeTypeCaveatTypeReference 75 end-rune = 231 76 input-source = complex caveat test 77 start-rune = 226 78 type-name = string 79 NodeTypeCaveatParameter 80 caveat-parameter-name = somelist 81 end-rune = 252 82 input-source = complex caveat test 83 start-rune = 235 84 caveat-parameter-type => 85 NodeTypeCaveatTypeReference 86 end-rune = 252 87 input-source = complex caveat test 88 start-rune = 244 89 type-name = list 90 child-types => 91 NodeTypeCaveatTypeReference 92 end-rune = 251 93 input-source = complex caveat test 94 start-rune = 249 95 type-name = int 96 NodeTypeDefinition 97 definition-name = user 98 end-rune = 321 99 input-source = complex caveat test 100 start-rune = 304