C# Class 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.
Afficher le fichier Open project: iolevel/peachpie

Méthodes publiques

Свойство Type Description
Target Pchp.CodeAnalysis.Semantics.BoundReferenceExpression
TmpLocal Microsoft.CodeAnalysis.CodeGen.LocalDefinition

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
EmitLoadArgument ( CodeGenerator cg, ParameterSymbol targetp ) : void

Method Details

CreateAndLoad() public static méthode

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.
Résultat WriteBackInfo

WriteBackAndFree() public méthode

Writes the value back to Target and free resources.
public WriteBackAndFree ( CodeGenerator cg ) : void
cg CodeGenerator
Résultat void

WriteBackAndFree() public static méthode

public static WriteBackAndFree ( CodeGenerator cg, IList writebacks ) : void
cg CodeGenerator
writebacks IList
Résultat void

Property Details

Target public_oe property

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

TmpLocal public_oe property

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
Résultat Microsoft.CodeAnalysis.CodeGen.LocalDefinition