Options
All
  • Public
  • Public/Protected
  • All
Menu

The ConfigTypeGenerator class, extending the ConfigGenerator class and generating the code that defines the config structure's struct.

Hierarchy

Index

Constructors

constructor

Properties

Protected code

code: string = ""

The generated code.

Protected comment

comment: string = "{{GENERATE_CONFIG_TYPE}}"

The template comment that this generator handles.

Protected config

config: ConfigModel

The config model: the generated code could depend on it.

Private cursor

cursor: number = -1

The index of the struct that is being currently generated.

Private indentation

indentation: number = 0

The current indentation as number of tabs.

Protected keys

keys: (string | number)[] = []

A stack of inspected keys.

Private structs

structs: string[] = []

The array of generated structs.

Protected structure

structure: StructureModel

The structure model: the generated code could depend on it.

Accessors

Protected countName

  • get countName(): string

Protected functionName

  • get functionName(): string

generated

  • get generated(): Code

Private indentationTabs

  • get indentationTabs(): string

Protected propCountName

  • get propCountName(): string

Protected propName

  • get propName(): string

Protected structName

  • get structName(): string

Methods

Private addStruct

  • addStruct(): void

Protected generate

  • generate(): void

Protected getPrimitivePrintfFormatter

Protected getPrimitiveType

Private parse

Private parsePrimitive

Private parsePrimitiveArray

Protected print

  • print(str: string): void

Generated using TypeDoc