C# Класс Symbols.SymbolTable.Scope

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
name string
parent Scope

Открытые методы

Метод Описание
AddChild ( Scope scope ) : void
GetScope ( int index ) : Scope
InsertFn ( string fnName, Modifiers mods, FnTyRef ty ) : void
InsertType ( string typeName, Modifiers mods, TyRef ty ) : void
InsertVar ( string varName, TyRef ty, bool isMut ) : void
Lookup ( string name ) : Symbol

Attempts to find a symbol with the given name. Returns the symbol if it was found, null otherwise.

Scope ( string name, Scope parent = null ) : System.Collections.Generic
ToString ( ) : string
WriteTo ( StringBuilder builder, int tabs ) : void

Приватные методы

Метод Описание
GetSymbol ( string name, Symbol &symbol ) : bool

Описание методов

AddChild() публичный Метод

public AddChild ( Scope scope ) : void
scope Scope
Результат void

GetScope() публичный Метод

public GetScope ( int index ) : Scope
index int
Результат Scope

InsertFn() публичный Метод

public InsertFn ( string fnName, Modifiers mods, FnTyRef ty ) : void
fnName string
mods Modifiers
ty Ty.FnTyRef
Результат void

InsertType() публичный Метод

public InsertType ( string typeName, Modifiers mods, TyRef ty ) : void
typeName string
mods Modifiers
ty Ty.TyRef
Результат void

InsertVar() публичный Метод

public InsertVar ( string varName, TyRef ty, bool isMut ) : void
varName string
ty Ty.TyRef
isMut bool
Результат void

Lookup() публичный Метод

Attempts to find a symbol with the given name. Returns the symbol if it was found, null otherwise.
public Lookup ( string name ) : Symbol
name string
Результат Symbol

Scope() публичный Метод

public Scope ( string name, Scope parent = null ) : System.Collections.Generic
name string
parent Scope
Результат System.Collections.Generic

ToString() публичный Метод

public ToString ( ) : string
Результат string

WriteTo() публичный Метод

public WriteTo ( StringBuilder builder, int tabs ) : void
builder System.Text.StringBuilder
tabs int
Результат void

Описание свойств

name публичное свойство

public string name
Результат string

parent публичное свойство

public Scope parent
Результат Scope