# AsciiDocParseResult

Result of parsing AsciiDoc source.

Class 

`OfficeIMO.AsciiDoc`

**Namespace**

`OfficeIMO.AsciiDoc`

**Assembly**

`OfficeIMO.AsciiDoc`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[AsciiDocParseResult.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AsciiDoc/Parsing/AsciiDocParseResult.cs#L20)

**Implements**

`IOfficeResult<AsciiDocDocument>` `IOfficeResult`

**Modifiers**

sealed

Result of parsing AsciiDoc source.

## Inheritance

- object
- AsciiDocParseResult

## Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 3

- Method [AsciiDocDocument.LoadResult](/api/ascii-doc/officeimo-asciidoc-asciidocdocument/#method-loadresult-string-officeimo-asciidoc-asciidocparseoptions-text-encoding)
- Method [AsciiDocDocument.LoadResultAsync](/api/ascii-doc/officeimo-asciidoc-asciidocdocument/#method-loadresultasync-string-officeimo-asciidoc-asciidocparseoptions-text-encoding-threading-cancellationtoken)
- Method [AsciiDocDocument.ParseResult](/api/ascii-doc/officeimo-asciidoc-asciidocdocument/#method-parseresult-string-officeimo-asciidoc-asciidocparseoptions)

Filter members 

Show inherited

## Methods

`public AsciiDocDocument RequireValue()` [#](#method-requirevalue)

[AsciiDocParseResult.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AsciiDoc/Parsing/AsciiDocParseResult.cs#L20)

Returns the produced value or throws when the operation did not complete.

Returns

`AsciiDocDocument`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public AsciiDocDocument Document { get; }` [#](#property-document)

[AsciiDocParseResult.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AsciiDoc/Parsing/AsciiDocParseResult.cs#L11)

Best recoverable typed document.

`public AsciiDocDocument Value { get; }` [#](#property-value)

[AsciiDocParseResult.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AsciiDoc/Parsing/AsciiDocParseResult.cs#L14)

Gets the produced value, or null when the operation did not complete.

`public bool Succeeded { get; }` [#](#property-succeeded)

[AsciiDocParseResult.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AsciiDoc/Parsing/AsciiDocParseResult.cs#L17)

Gets whether the operation completed successfully.

`public IReadOnlyList<AsciiDocDiagnostic> Diagnostics { get; }` [#](#property-diagnostics)

[AsciiDocParseResult.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AsciiDoc/Parsing/AsciiDocParseResult.cs#L23)

Parser and recovery diagnostics.

`public bool HasErrors { get; }` [#](#property-haserrors)

[AsciiDocParseResult.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AsciiDoc/Parsing/AsciiDocParseResult.cs#L26)

True when any error diagnostic was produced.

`public bool IsLossless { get; }` [#](#property-islossless)

[AsciiDocParseResult.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AsciiDoc/Parsing/AsciiDocParseResult.cs#L29)

True when the syntax tree covers and exactly retains every source character.

<!-- PowerForge markdown artifact sha256:1139AB59BECEFEA17FB6ABAE333DB3D76E6994C8275335BF641107012E6ABCE5 -->
