tuil
ReferencePackages@mwillbanks/tuil-codeAPI

CodeParseResult

interface exported by @mwillbanks/tuil-code.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-code.

export interface CodeParseResult {
  readonly language: string;
  readonly version: number;
  readonly spans: readonly CodeSpan[];
  readonly folds: readonly {
    readonly startLine: number;
    readonly endLine: number;
  }[];
  readonly diagnostics: readonly CodeDiagnostic[];
  readonly incremental?: boolean;
}

Members

MemberTypeRequiredDescriptionRelated types
languagestringYesThe language member uses the string contract.
versionnumberYesThe version member uses the number contract.
spansreadonly CodeSpan[]YesThe spans member uses the readonly CodeSpan[] contract.CodeSpan
foldsreadonly { readonly startLine: number; readonly endLine: number; }[]YesThe folds member uses the readonly { readonly startLine: number; readonly endLine: number; }[] contract.
diagnosticsreadonly CodeDiagnostic[]YesThe diagnostics member uses the readonly CodeDiagnostic[] contract.CodeDiagnostic
incrementalboolean | undefinedNoThe incremental member uses the boolean | undefined contract.

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-code

On this page