• 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

    Class: ScopeDeclaration

    compiler.ScopeDeclaration

    An symbol table entry of a variable, parameter or function declaration inside a Kipper scope.

    Abstract base class for ScopeVariableDeclaration, ScopeParameterDeclaration and ScopeFunctionDeclaration. This is used like an entry for a symbol table, where the important information about a variable, parameter or function is stored.

    Since

    0.1.2

    Hierarchy

    • ScopeDeclaration

      ↳ ScopeVariableDeclaration

      ↳ ScopeParameterDeclaration

      ↳ ScopeFunctionDeclaration

      ↳ ScopeTypeDeclaration

    Table of contents

    Constructors

    • constructor

    Accessors

    • builtInStructure
    • hasValue
    • identifier
    • isBuiltIn
    • isCallable
    • isDefined
    • node
    • programCtx
    • type

    Constructors

    constructor

    • new ScopeDeclaration()

    Accessors

    builtInStructure

    • Abstract get builtInStructure(): undefined | BuiltInVariable | BuiltInFunction | BuiltInType

    Returns the built-in structure of this declaration, if this declaration is based on one.

    Since

    0.11.0

    Returns

    undefined | BuiltInVariable | BuiltInFunction | BuiltInType

    Defined in

    kipper/core/src/compiler/semantics/symbol-table/entry/scope-declaration.ts:39


    hasValue

    • Abstract get hasValue(): boolean

    Returns whether the declaration has a value.

    Since

    0.10.0

    Returns

    boolean

    Defined in

    kipper/core/src/compiler/semantics/symbol-table/entry/scope-declaration.ts:57


    identifier

    • Abstract get identifier(): string

    Returns

    string

    Defined in

    kipper/core/src/compiler/semantics/symbol-table/entry/scope-declaration.ts:20


    isBuiltIn

    • Abstract get isBuiltIn(): boolean

    Returns whether this declaration is a built-in declaration.

    Since

    0.11.0

    Returns

    boolean

    Defined in

    kipper/core/src/compiler/semantics/symbol-table/entry/scope-declaration.ts:33


    isCallable

    • Abstract get isCallable(): boolean

    Returns whether the declaration has a callable value (function).

    Since

    0.10.0

    Returns

    boolean

    Defined in

    kipper/core/src/compiler/semantics/symbol-table/entry/scope-declaration.ts:63


    isDefined

    • Abstract get isDefined(): boolean

    Returns whether the scope declaration was defined during its declaration.

    Since

    0.10.0

    Returns

    boolean

    Defined in

    kipper/core/src/compiler/semantics/symbol-table/entry/scope-declaration.ts:51


    node

    • Abstract get node(): undefined | Declaration<DeclarationSemantics, DeclarationTypeSemantics>

    Returns

    undefined | Declaration<DeclarationSemantics, DeclarationTypeSemantics>

    Defined in

    kipper/core/src/compiler/semantics/symbol-table/entry/scope-declaration.ts:19


    programCtx

    • get programCtx(): undefined | KipperProgramContext

    Fetches the program context instance for this token.

    Returns

    undefined | KipperProgramContext

    Defined in

    kipper/core/src/compiler/semantics/symbol-table/entry/scope-declaration.ts:25


    type

    • Abstract get type(): ProcessedType

    The value type of this declaration.

    Since

    0.10.0

    Returns

    ProcessedType

    Defined in

    kipper/core/src/compiler/semantics/symbol-table/entry/scope-declaration.ts:45

  • 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.