C# Класс Mono.CSharp.ToplevelBlock

Наследование: ExplicitBlock
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
HoistedThisVariable HoistedVariable

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

Метод Описание
AddLabel ( string name, LabeledStatement label ) : void
AddLocalName ( string name, INamedBlockVariable li ) : void
AddThisVariable ( BlockContext bc, TypeContainer ds, Mono.CSharp.Location l ) : LocalVariable

This is used by non-static `struct' constructors which do not have an initializer - in this case, the constructor must initialize all of the struct's fields. To do this, we add a "this" variable and use the flow analysis code to ensure that it's been fully initialized before control leaves the constructor.

Emit ( EmitContext ec ) : void
GetAllParametersArguments ( ) : Arguments
GetLabel ( string name, Block block ) : LabeledStatement
GetLocalName ( string name, Block block, INamedBlockVariable &variable ) : bool
IsThisAssigned ( BlockContext ec ) : bool
ToplevelBlock ( CompilerContext ctx, Mono.CSharp.Location loc ) : System
ToplevelBlock ( CompilerContext ctx, ParametersCompiled parameters, Mono.CSharp.Location start ) : System
ToplevelBlock ( ParametersBlock source, ParametersCompiled parameters ) : System

Защищенные методы

Метод Описание
EmitSymbolInfo ( EmitContext ec ) : void

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

AddLabel() публичный метод

public AddLabel ( string name, LabeledStatement label ) : void
name string
label LabeledStatement
Результат void

AddLocalName() публичный метод

public AddLocalName ( string name, INamedBlockVariable li ) : void
name string
li INamedBlockVariable
Результат void

AddThisVariable() публичный метод

This is used by non-static `struct' constructors which do not have an initializer - in this case, the constructor must initialize all of the struct's fields. To do this, we add a "this" variable and use the flow analysis code to ensure that it's been fully initialized before control leaves the constructor.
public AddThisVariable ( BlockContext bc, TypeContainer ds, Mono.CSharp.Location l ) : LocalVariable
bc BlockContext
ds TypeContainer
l Mono.CSharp.Location
Результат LocalVariable

Emit() публичный метод

public Emit ( EmitContext ec ) : void
ec EmitContext
Результат void

EmitSymbolInfo() защищенный метод

protected EmitSymbolInfo ( EmitContext ec ) : void
ec EmitContext
Результат void

GetAllParametersArguments() публичный метод

public GetAllParametersArguments ( ) : Arguments
Результат Arguments

GetLabel() публичный метод

public GetLabel ( string name, Block block ) : LabeledStatement
name string
block Block
Результат LabeledStatement

GetLocalName() публичный метод

public GetLocalName ( string name, Block block, INamedBlockVariable &variable ) : bool
name string
block Block
variable INamedBlockVariable
Результат bool

IsThisAssigned() публичный метод

public IsThisAssigned ( BlockContext ec ) : bool
ec BlockContext
Результат bool

ToplevelBlock() публичный метод

public ToplevelBlock ( CompilerContext ctx, Mono.CSharp.Location loc ) : System
ctx CompilerContext
loc Mono.CSharp.Location
Результат System

ToplevelBlock() публичный метод

public ToplevelBlock ( CompilerContext ctx, ParametersCompiled parameters, Mono.CSharp.Location start ) : System
ctx CompilerContext
parameters ParametersCompiled
start Mono.CSharp.Location
Результат System

ToplevelBlock() публичный метод

public ToplevelBlock ( ParametersBlock source, ParametersCompiled parameters ) : System
source ParametersBlock
parameters ParametersCompiled
Результат System

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

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

public HoistedVariable,Mono.CSharp HoistedThisVariable
Результат HoistedVariable