C# 클래스 Pchp.CodeAnalysis.CodeGen.CodeGenerator.WriteBackInfo

Temporary data used to call routines that expect ref or out parameters when given variable can't be passed by ref.
파일 보기 프로젝트 열기: iolevel/peachpie

공개 프로퍼티들

프로퍼티 타입 설명
Target Pchp.CodeAnalysis.Semantics.BoundReferenceExpression
TmpLocal Microsoft.CodeAnalysis.CodeGen.LocalDefinition

공개 메소드들

메소드 설명
CreateAndLoad ( CodeGenerator cg, ParameterSymbol targetp, BoundReferenceExpression expr ) : WriteBackInfo

Loads temporary local variable as an argument to targetp.

WriteBackAndFree ( CodeGenerator cg ) : void

Writes the value back to Target and free resources.

WriteBackAndFree ( CodeGenerator cg, IList writebacks ) : void

비공개 메소드들

메소드 설명
EmitLoadArgument ( CodeGenerator cg, ParameterSymbol targetp ) : void

메소드 상세

CreateAndLoad() 공개 정적인 메소드

Loads temporary local variable as an argument to targetp.
public static CreateAndLoad ( CodeGenerator cg, ParameterSymbol targetp, BoundReferenceExpression expr ) : WriteBackInfo
cg CodeGenerator
targetp Pchp.CodeAnalysis.Symbols.ParameterSymbol Target parameter.
expr Pchp.CodeAnalysis.Semantics.BoundReferenceExpression Value to be passed as its argument.
리턴 WriteBackInfo

WriteBackAndFree() 공개 메소드

Writes the value back to Target and free resources.
public WriteBackAndFree ( CodeGenerator cg ) : void
cg CodeGenerator
리턴 void

WriteBackAndFree() 공개 정적인 메소드

public static WriteBackAndFree ( CodeGenerator cg, IList writebacks ) : void
cg CodeGenerator
writebacks IList
리턴 void

프로퍼티 상세

Target 공개적으로 프로퍼티

Original variable passed to the function call. Target of the write-back routine.
public BoundReferenceExpression,Pchp.CodeAnalysis.Semantics Target
리턴 Pchp.CodeAnalysis.Semantics.BoundReferenceExpression

TmpLocal 공개적으로 프로퍼티

The temporary local passed by reference to a function call. After the call, it's value has to be written back to Target.
public LocalDefinition,Microsoft.CodeAnalysis.CodeGen TmpLocal
리턴 Microsoft.CodeAnalysis.CodeGen.LocalDefinition