C# 클래스 Mono.CSharp.ToplevelBlock

상속: ExplicitBlock
파일 보기 프로젝트 열기: kumpera/mono 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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