Langium - v4.0.0
    Preparing search index...

    Class DefaultNodeFormatter<T>

    Represents an object that allows to format certain parts of a specific node, like its keywords or properties.

    Type Parameters

    Implements

    Index

    Constructors

    Properties

    astNode: T

    Methods

    • Creates a new formatting region that contains the specified keyword of the supplied node.

      Parameters

      • keyword: string

        The keyword to format. Scoped to the supplied node.

      • Optionalindex: number

        The index of the keyword, necessary if the keyword appears multiple times. 0 by default. To retrieve all keywords, use the keywords method instead.

      Returns FormattingRegion