pub fn parse_executable_document(mut self) -> WithDiagnostics<ExecutableDocument> {
        let document = self.parse_executable_document_impl();
        if self.errors.is_empty() {
            let _ = self.parse_kind(TokenKind::EndOfFile);
        }
        let document = document.unwrap_or_else(|_| ExecutableDocument {
            span: Span::new(0, 0),
            definitions: Default::default(),
        });
        WithDiagnostics {
            item: document,
            errors: self.errors,
        }
    }
/// Parses a document consisting only of executable nodes: operations and
/// fragments.
Parses a document consisting only of executable nodes: operations and
fragments.
Parses a document consisting only of executable nodes : operations and fragments .
pub fn parse_executable_document(mut self) -> WithDiagnostics<ExecutableDocument> {
        let document = self.parse_executable_document_impl();
        if self.errors.is_empty() {
            let _ = self.parse_kind(TokenKind::EndOfFile);
        }
        let document = document.unwrap_or_else(|_| ExecutableDocument {
            span: Span::new(0, 0),
            definitions: Default::default(),
        });
        WithDiagnostics {
            item: document,
            errors: self.errors,
        }
    }
pub fn parse_executable_document ( mut self ) -> WithDiagnostics < ExecutableDocument > { let document = self . parse_executable_document_impl ( ) ; if self . errors . is_empty ( ) { let _ = self . parse_kind ( TokenKind :: EndOfFile ) ; } let document = document . unwrap_or_else ( | _ | ExecutableDocument { span : Span :: new ( 0 , 0 ) , definitions : Default :: default ( ) , } ) ; WithDiagnostics { item : document , errors : self . errors , } }
Parses a document consisting only of executable nodes: operations and
fragments.
Parses a document consisting only of executable nodes : operations and fragments .
mut self
mut self