Class ASymbolVector

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type ASymbolVector = class(AnObjectVector)

Description

This class represents a symbol vector, which matches symbols to an index. The symbol vector is designed to be read from a binary stream, where it will have previously been written by an instance of ASymbolTable.

Unlike ASymbolTable, it is not necessary for instances of ASymbolVector to link to a parent scope; this is because each symbol read from the intermediate code stream contains an absolute reference to the symbol vector to which it belongs, negating the need to search through symbol tables in order to find it.

Hierarchy

  • ASymbolVector

Overview

Methods

Public function init: boolean; override;
Public function SymbolAt(const thisIndex: integer): ASymbol; virtual;

Description

Methods

Public function init: boolean; override;

Initializer

Public function SymbolAt(const thisIndex: integer): ASymbol; virtual;

Fetch the symbol at the specified index.

This method simply calls AnObjectVector.ObjectAt and then casts the result to an instance of ASymbol.


Generated by PasDoc 0.13.0 on 2015-06-25 11:12:03