Options
All
  • Public
  • Public/Protected
  • All
Menu

Implementation of IDeclarationListBuilder. Since there's many fields used only for initialization, I recommend using or extending this class.

Hierarchy

  • DeclarationListBuilder

Implements

Index

Constructors

constructor

Properties

Protected Readonly CATEGORY_NAME_

CATEGORY_NAME_: string

Protected COLOUR

COLOUR: string = "%{BKY_VARIABLES_HUE}"

Protected DEFAULT_TEXT_DECLARATION

DEFAULT_TEXT_DECLARATION: string = "ITEM"

Protected Readonly EXTENSION_NAME_DECLARATION_

EXTENSION_NAME_DECLARATION_: string

Protected Readonly EXTENSION_NAME_MENU_

EXTENSION_NAME_MENU_: string

Protected KEYWORD_CONST

KEYWORD_CONST: string = "const"

Protected KEYWORD_VARIABLE

KEYWORD_VARIABLE: string = "let"

Protected MESSAGE_BASE

MESSAGE_BASE: string = "def"

Protected TOOLTIP_DECLARATION

TOOLTIP_DECLARATION: string

Protected Readonly TYPE_NAME_DECLARATION_BLOCK_

TYPE_NAME_DECLARATION_BLOCK_: string

Protected Readonly TYPE_NAME_GETTER_

TYPE_NAME_GETTER_: string

Protected Readonly TYPE_NAME_SETTER_

TYPE_NAME_SETTER_: string

Protected hasReadonlyCheckbox

hasReadonlyCheckbox: boolean = true

If true, declaration block will have checkbox which define whether declared variable can be re-assigned.

Protected isAlwaysReadonly

isAlwaysReadonly: boolean = false

If true, setter block will be registered.

Protected list

List to initialize.

Readonly name

name: string

Protected type

type: null | string = null

Type of variable.

Protected xmlList

xmlList: Element[]

Category default values. By default, only declaration block are registered.

Methods

addCategoryDefaultElements

addInitialValues

categoryCallback_

  • categoryCallback_(): Element[]
  • カテゴリの中身を再生成 ついでに消した定数をスタックから消去

    package

    Returns Element[]

getResult

initCategory_

  • initCategory_(workspace: WorkspaceSvg): void

initDeclarationBlock_

  • initDeclarationBlock_(): void

initExtensions_

  • initExtensions_(): void

initGetter_

  • initGetter_(): void

initSetter_

  • initSetter_(): void

setAlwaysReadonly

setColour

setDefaultTextForDeclaration

setKeywordForConstant

setKeywordForVariable

setMessageBase

setReadonlyCheckbox

setTooltipForDeclaration

setType

stackDropdownMenuImpl_

  • stackDropdownMenuImpl_(block: Block): FieldDropdown
  • Parameters

    • block: Block

    Returns FieldDropdown