libgraphql_parser/ast/delimiter_pair.rs
1use crate::token::GraphQLToken;
2
3/// A matched pair of delimiter tokens (parentheses, brackets,
4/// or braces). Bundled into one struct so that an open
5/// delimiter without a matching close is unrepresentable.
6#[derive(Clone, Debug, PartialEq)]
7pub struct DelimiterPair<'src> {
8 pub close: GraphQLToken<'src>,
9 pub open: GraphQLToken<'src>,
10}