Skip to content
# Interface: FormattingInfo

Defined in: packages/core/src/models/FormattingLexeme.ts:46

Container for formatting information associated with AST nodes

Properties ​

originalLexemes ​

originalLexemes: FormattingLexeme[]

Defined in: packages/core/src/models/FormattingLexeme.ts:50

Original lexemes with formatting information


startPosition ​

startPosition: number

Defined in: packages/core/src/models/FormattingLexeme.ts:55

Start position in original text


endPosition ​

endPosition: number

Defined in: packages/core/src/models/FormattingLexeme.ts:60

End position in original text


modifications? ​

optional modifications: ModificationInfo

Defined in: packages/core/src/models/FormattingLexeme.ts:65

Modifications made during transformations


whitespacePatterns? ​

optional whitespacePatterns: string[]

Defined in: packages/core/src/models/FormattingLexeme.ts:70

Original whitespace patterns for reconstruction

Released under the MIT License.