github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/pkg/schemadsl/parser/tests/basic.zed.expected (about)

     1  NodeTypeFile
     2    end-rune = 226
     3    input-source = basic definition test
     4    start-rune = 0
     5    child-node =>
     6      NodeTypeDefinition
     7        definition-name = mydefinition
     8        end-rune = 226
     9        input-source = basic definition test
    10        start-rune = 0
    11        child-node =>
    12          NodeTypeRelation
    13            end-rune = 117
    14            input-source = basic definition test
    15            relation-name = foo
    16            start-rune = 70
    17            allowed-types =>
    18              NodeTypeTypeReference
    19                end-rune = 117
    20                input-source = basic definition test
    21                start-rune = 84
    22                type-ref-type =>
    23                  NodeTypeSpecificTypeReference
    24                    end-rune = 95
    25                    input-source = basic definition test
    26                    relation-name = ...
    27                    start-rune = 84
    28                    type-name = sometype
    29                  NodeTypeSpecificTypeReference
    30                    end-rune = 117
    31                    input-source = basic definition test
    32                    relation-name = somerel
    33                    start-rune = 99
    34                    type-name = anothertype
    35            child-node =>
    36              NodeTypeComment
    37                comment-value = /**
    38       * some doc comment
    39       */
    40          NodeTypePermission
    41            end-rune = 181
    42            input-source = basic definition test
    43            relation-name = bar
    44            start-rune = 150
    45            child-node =>
    46              NodeTypeComment
    47                comment-value = // My cool permission
    48            compute-expression =>
    49              NodeTypeExclusionExpression
    50                end-rune = 181
    51                input-source = basic definition test
    52                start-rune = 167
    53                left-expr =>
    54                  NodeTypeUnionExpression
    55                    end-rune = 175
    56                    input-source = basic definition test
    57                    start-rune = 167
    58                    left-expr =>
    59                      NodeTypeIdentifier
    60                        end-rune = 169
    61                        identifier-value = foo
    62                        input-source = basic definition test
    63                        start-rune = 167
    64                    right-expr =>
    65                      NodeTypeIdentifier
    66                        end-rune = 175
    67                        identifier-value = baz
    68                        input-source = basic definition test
    69                        start-rune = 173
    70                right-expr =>
    71                  NodeTypeIdentifier
    72                    end-rune = 181
    73                    identifier-value = meh
    74                    input-source = basic definition test
    75                    start-rune = 179
    76          NodeTypePermission
    77            end-rune = 224
    78            input-source = basic definition test
    79            relation-name = another
    80            start-rune = 187
    81            compute-expression =>
    82              NodeTypeUnionExpression
    83                end-rune = 224
    84                input-source = basic definition test
    85                start-rune = 208
    86                left-expr =>
    87                  NodeTypeExclusionExpression
    88                    end-rune = 217
    89                    input-source = basic definition test
    90                    start-rune = 209
    91                    left-expr =>
    92                      NodeTypeIdentifier
    93                        end-rune = 211
    94                        identifier-value = foo
    95                        input-source = basic definition test
    96                        start-rune = 209
    97                    right-expr =>
    98                      NodeTypeIdentifier
    99                        end-rune = 217
   100                        identifier-value = meh
   101                        input-source = basic definition test
   102                        start-rune = 215
   103                right-expr =>
   104                  NodeTypeIdentifier
   105                    end-rune = 224
   106                    identifier-value = bar
   107                    input-source = basic definition test
   108                    start-rune = 222