C# Class kOS.Safe.Compilation.OpcodePushScope

Pushes a new variable namespace scope (for example, when a "{" is encountered in a block-scoping language like C++ or Java or C#.) From now on any local variables created will be made in this new namespace.
Inheritance: Opcode
Mostrar archivo Open project: KSP-KOS/KOS

Private Properties

Property Type Description

Public Methods

Method Description
Execute ( ICpu cpu ) : void
OpcodePushScope ( Int16 id, Int16 parentId ) : System

Push a scope frame that knows the id of its lexical parent scope.

PopulateFromMLFields ( List fields ) : void
ToString ( ) : string

Protected Methods

Method Description
OpcodePushScope ( ) : System

This variant of the constructor is just for ML file save/load to use.

Method Details

Execute() public method

public Execute ( ICpu cpu ) : void
cpu ICpu
return void

OpcodePushScope() protected method

This variant of the constructor is just for ML file save/load to use.
protected OpcodePushScope ( ) : System
return System

OpcodePushScope() public method

Push a scope frame that knows the id of its lexical parent scope.
public OpcodePushScope ( Int16 id, Int16 parentId ) : System
id System.Int16 the unique id of this scope frame.
parentId System.Int16 the unique id of the scope frame this scope is inside of.
return System

PopulateFromMLFields() public method

public PopulateFromMLFields ( List fields ) : void
fields List
return void

ToString() public method

public ToString ( ) : string
return string