# IncrementalSyntaxNode

Source: /tuil/docs/reference/packages/code/api/incremental-syntax-node
Locale: en

interface exported by @mwillbanks/tuil-code.



{/* Generated by tooling/docs/generate-reference.ts. */}

## interface [#interface]

Public interface exported by `@mwillbanks/tuil-code`.

```ts
export interface IncrementalSyntaxNode {
  readonly start: number;
  readonly end: number;
  readonly type: string;
  readonly startLine?: number;
  readonly endLine?: number;
  readonly diagnostic?: Omit<CodeDiagnostic, "start" | "end" | "kind">;
}
```

## Members [#members]

| Member       | Type                                                            | Required | Description                                                                                                | Related types                                                         |
| ------------ | --------------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| `start`      | `number`                                                        | Yes      | The `start` member uses the `number` contract.                                                             | —                                                                     |
| `end`        | `number`                                                        | Yes      | The `end` member uses the `number` contract.                                                               | —                                                                     |
| `type`       | `string`                                                        | Yes      | The `type` member uses the `string` contract.                                                              | —                                                                     |
| `startLine`  | `number \| undefined`                                           | No       | The `startLine` member uses the `number \| undefined` contract.                                            | —                                                                     |
| `endLine`    | `number \| undefined`                                           | No       | The `endLine` member uses the `number \| undefined` contract.                                              | —                                                                     |
| `diagnostic` | `Omit<CodeDiagnostic, "start" \| "end" \| "kind"> \| undefined` | No       | The `diagnostic` member uses the `Omit<CodeDiagnostic, "start" \| "end" \| "kind"> \| undefined` contract. | [`CodeDiagnostic`](/tuil/docs/reference/packages/code/api/code-diagnostic) |

## Parameters [#parameters]

This declaration has no public members.

## Returns [#returns]

This declaration does not return a value.

## Throws [#throws]

No thrown errors are documented for this declaration.

## Related types [#related-types]

* [`CodeDiagnostic`](/tuil/docs/reference/packages/code/api/code-diagnostic)

## Source [#source]

[View the secondary source reference](https://github.com/mwillbanks/tuil/blob/main/packages/code/src/index.ts)

## Package [#package]

[@mwillbanks/tuil-code](/tuil/docs/reference/packages/code)
