C# Class ABT.Env2

1. A global scope. 2. A function scope, with multiple name scopes. 3. ObjectId. 4. TypeId.
Show file Open project: phisiart/C-Compiler

Private Properties

Property Type Description
Env2 System

Public Methods

Method Description
Add ( EnumEntry entry ) : Env2
Add ( NamedObjectEntry entry ) : Env2
Add ( TypeEntry entry ) : Env2
Env2 ( ) : System
InFunction ( FunctionType functionType, ImmutableList functionParams ) : Env2
InScope ( ) : Env2

Add a new local symbol table.

OutFunction ( ) : Env2
OutScope ( ) : Env2

Pop a local symbol table.

Private Methods

Method Description
Env2 ( GlobalSymbolTable globalSymbolTable, Option functionScope ) : System

Method Details

Add() public method

public Add ( EnumEntry entry ) : Env2
entry EnumEntry
return Env2

Add() public method

public Add ( NamedObjectEntry entry ) : Env2
entry NamedObjectEntry
return Env2

Add() public method

public Add ( TypeEntry entry ) : Env2
entry TypeEntry
return Env2

Env2() public method

public Env2 ( ) : System
return System

InFunction() public method

public InFunction ( FunctionType functionType, ImmutableList functionParams ) : Env2
functionType FunctionType
functionParams ImmutableList
return Env2

InScope() public method

Add a new local symbol table.
public InScope ( ) : Env2
return Env2

OutFunction() public method

public OutFunction ( ) : Env2
return Env2

OutScope() public method

Pop a local symbol table.
public OutScope ( ) : Env2
return Env2