• Kipper

    v0.12.1
  • Downloads

  • Docs

  • Playground

  • Changelog

  • Kipper

    v0.12.1
    • Downloads

    • Docs

    • Playground

    • Changelog

      • latest /
      • Kipper API /
      • Module /
      • @kipper/core /
      • compiler
    Kipper Docs
    • next
    • latest
    • 0.11.0
    • 0.10.4
    • 0.9.2
    • Overview

    • Quickstart

    • Goals for Kipper

    • Supported platforms

    • Usage Examples

      • Overview

      • Type Consistency

      • Runtime Type Casting

      • Strict Compiler Inspection

      • Integrated Runtime Library

    • Variables

      • Overview

      • String Type

      • Number Type

      • Boolean Type

      • Void Type

      • Null Type

      • Undefined Type

      • Array Type

      • Overview

      • Tangled Expression

      • Arithmetic Expression

      • Assignment Expression

      • Conditional Expressions

      • Logical Expressions

      • Bitwise Expression

      • Relational Expressions

      • Convert Or Cast Expression

      • F-String Expression

      • Member Access Expression

      • Function Call Expression

      • Lambda Expression

      • Matches Expression

      • Overview

      • Expression Statement

      • If Statement

      • While Loop

      • Do-While Loop

      • For Loop

      • Compound Statement

      • Jump Statement

    • Functions

    • Interfaces

    • Classes

    • Comments

    • Built-in Functions

      • Overview

      • Compiler Setup

        • Overview

          • index

          • compiler

          • errors

          • logger

          • utils

          • config

          • index

          • index

        • Overview

        • new

        • run

        • compile

        • help

        • version

      • latest /
      • Kipper API /
      • Module /
      • @kipper/core /
      • compiler
    • latest /
    • Kipper API /
    • Module /
    • @kipper/core /
    • compiler

    Edit page

    Interface: VariableDeclarationSemantics

    compiler.VariableDeclarationSemantics

    Semantics for AST Node VariableDeclaration.

    Since

    0.3.0

    Hierarchy

    • DeclarationSemantics

      ↳ VariableDeclarationSemantics

    Table of contents

    Properties

    • identifier
    • isDefined
    • scope
    • storageType
    • value
    • valueType
    • valueTypeSpecifier

    Properties

    identifier

    • identifier: string

    The identifier of this variable.

    Since

    0.5.0

    Overrides

    DeclarationSemantics.identifier

    Defined in

    kipper/core/src/compiler/ast/nodes/declarations/variable-declaration/variable-declaration-semantics.ts:19


    isDefined

    • isDefined: boolean

    If this is true then the variable has a defined value.

    Since

    0.5.0

    Defined in

    kipper/core/src/compiler/ast/nodes/declarations/variable-declaration/variable-declaration-semantics.ts:41


    scope

    • scope: Scope<any, any, any>

    The scope of this variable.

    Since

    0.5.0

    Defined in

    kipper/core/src/compiler/ast/nodes/declarations/variable-declaration/variable-declaration-semantics.ts:46


    storageType

    • storageType: KipperStorageType

    The storage type option for this variable.

    Since

    0.5.0

    Defined in

    kipper/core/src/compiler/ast/nodes/declarations/variable-declaration/variable-declaration-semantics.ts:24


    value

    • value: undefined | Expression<ExpressionSemantics, ExpressionTypeSemantics, CompilableASTNode<SemanticData, TypeData>>

    The assigned value to this variable. If isDefined is false, then this value is undefined.

    Since

    0.7.0

    Defined in

    kipper/core/src/compiler/ast/nodes/declarations/variable-declaration/variable-declaration-semantics.ts:51


    valueType

    • valueType: RawType

    The type of the value as a string.

    The identifier of the valueTypeSpecifier.semanticData.identifier typeSpecifier.

    Since

    0.5.0

    Defined in

    kipper/core/src/compiler/ast/nodes/declarations/variable-declaration/variable-declaration-semantics.ts:31


    valueTypeSpecifier

    • valueTypeSpecifier: IdentifierTypeSpecifierExpression

    The type specifier expression for the variable type.

    Since

    0.10.0

    Defined in

    kipper/core/src/compiler/ast/nodes/declarations/variable-declaration/variable-declaration-semantics.ts:36

  • Developed at:

    • Releases
    • GitHub
    • Security
    • Issue Tracker
    • License
  • Copyright © 2021-2026 Luna Klatzer, 2024-2025 Lorenz Holzbauer & Fabian Baitura.
    Kipper is licensed under the GPL-3.0-or-later license.