Skip to content
# Interface: FormattingLexeme

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

Extended lexeme interface that preserves formatting information

Extends ​

Properties ​

followingWhitespace ​

followingWhitespace: string

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

Whitespace that follows this lexeme (spaces, tabs, newlines)


inlineComments ​

inlineComments: string[]

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

Inline comments that appear on the same line as this lexeme


position ​

position: LexemePosition

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

Enhanced position information for precise reconstruction

Overrides ​

Lexeme.position


type ​

type: number

Defined in: packages/core/src/models/Lexeme.ts:43

Inherited from ​

Lexeme.type


value ​

value: string

Defined in: packages/core/src/models/Lexeme.ts:44

Inherited from ​

Lexeme.value


comments ​

comments: string[] | null

Defined in: packages/core/src/models/Lexeme.ts:45

Inherited from ​

Lexeme.comments


positionedComments? ​

optional positionedComments: LexemePositionedComment[]

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

Inherited from ​

Lexeme.positionedComments

Released under the MIT License.