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

     1  NodeTypeFile
     2    end-rune = 691
     3    input-source = doc comments test
     4    start-rune = 0
     5    child-node =>
     6      NodeTypeDefinition
     7        definition-name = user
     8        end-rune = 79
     9        input-source = doc comments test
    10        start-rune = 62
    11        child-node =>
    12          NodeTypeComment
    13            comment-value = /**
    14   * user represents a user that can be granted role(s)
    15   */
    16      NodeTypeDefinition
    17        definition-name = document
    18        end-rune = 691
    19        input-source = doc comments test
    20        start-rune = 146
    21        child-node =>
    22          NodeTypeComment
    23            comment-value = /**
    24   * document represents a document protected by Authzed.
    25   */
    26          NodeTypeRelation
    27            end-rune = 275
    28            input-source = doc comments test
    29            relation-name = writer
    30            start-rune = 255
    31            allowed-types =>
    32              NodeTypeTypeReference
    33                end-rune = 275
    34                input-source = doc comments test
    35                start-rune = 272
    36                type-ref-type =>
    37                  NodeTypeSpecificTypeReference
    38                    end-rune = 275
    39                    input-source = doc comments test
    40                    start-rune = 272
    41                    type-name = user
    42            child-node =>
    43              NodeTypeComment
    44                comment-value = /**
    45       * writer indicates that the user is a writer on the document.
    46       */
    47          NodeTypeRelation
    48            end-rune = 385
    49            input-source = doc comments test
    50            relation-name = reader
    51            start-rune = 365
    52            allowed-types =>
    53              NodeTypeTypeReference
    54                end-rune = 385
    55                input-source = doc comments test
    56                start-rune = 382
    57                type-ref-type =>
    58                  NodeTypeSpecificTypeReference
    59                    end-rune = 385
    60                    input-source = doc comments test
    61                    start-rune = 382
    62                    type-name = user
    63            child-node =>
    64              NodeTypeComment
    65                comment-value = /**
    66       * reader indicates that the user is a reader on the document.
    67       */
    68          NodeTypePermission
    69            end-rune = 504
    70            input-source = doc comments test
    71            relation-name = edit
    72            start-rune = 481
    73            child-node =>
    74              NodeTypeComment
    75                comment-value = /**
    76       * edit indicates that the user has permission to edit the document.
    77       */
    78            compute-expression =>
    79              NodeTypeIdentifier
    80                end-rune = 504
    81                identifier-value = writer
    82                input-source = doc comments test
    83                start-rune = 499
    84          NodeTypePermission
    85            end-rune = 689
    86            input-source = doc comments test
    87            relation-name = view
    88            start-rune = 659
    89            child-node =>
    90              NodeTypeComment
    91                comment-value = /**
    92       * view indicates that the user has permission to view the document, if they
    93       * are a `reader` *or* have `edit` permission.
    94       */
    95            compute-expression =>
    96              NodeTypeUnionExpression
    97                end-rune = 689
    98                input-source = doc comments test
    99                start-rune = 677
   100                left-expr =>
   101                  NodeTypeIdentifier
   102                    end-rune = 682
   103                    identifier-value = reader
   104                    input-source = doc comments test
   105                    start-rune = 677
   106                right-expr =>
   107                  NodeTypeIdentifier
   108                    end-rune = 689
   109                    identifier-value = edit
   110                    input-source = doc comments test
   111                    start-rune = 686