C# 클래스 Jurassic.Compiler.MemberAccessExpression

Represents a variable or member access.
상속: Jurassic.Compiler.OperatorExpression, IReferenceExpression
파일 보기 프로젝트 열기: paulbartrum/jurassic 1 사용 예제들

공개 메소드들

메소드 설명
DuplicateReference ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void

Outputs the values needed to get or set this reference.

GenerateCode ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void

Generates CIL for the expression.

GenerateDelete ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void

Deletes the reference and pushes true if the delete succeeded, or false if the delete failed.

GenerateGet ( ILGenerator generator, OptimizationInfo optimizationInfo, bool throwIfUnresolvable ) : void

Pushes the value of the reference onto the stack.

GenerateReference ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void

Outputs the values needed to get or set this reference.

GenerateSet ( ILGenerator generator, OptimizationInfo optimizationInfo, PrimitiveType valueType, bool throwIfUnresolvable ) : void

Stores the value on the top of the stack in the reference.

MemberAccessExpression ( Jurassic.Compiler.Operator @operator )

Creates a new instance of MemberAccessExpression.

ToString ( ) : string

Converts the expression to a string.

비공개 메소드들

메소드 설명
DetermineTypeOfMemberAccess ( OptimizationInfo optimizationInfo, string &propertyName ) : TypeOfMemberAccess

Determines the type of member access.

메소드 상세

DuplicateReference() 공개 메소드

Outputs the values needed to get or set this reference.
public DuplicateReference ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void
generator ILGenerator The generator to output the CIL to.
optimizationInfo OptimizationInfo Information about any optimizations that should be performed.
리턴 void

GenerateCode() 공개 메소드

Generates CIL for the expression.
public GenerateCode ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void
generator ILGenerator The generator to output the CIL to.
optimizationInfo OptimizationInfo Information about any optimizations that should be performed.
리턴 void

GenerateDelete() 공개 메소드

Deletes the reference and pushes true if the delete succeeded, or false if the delete failed.
public GenerateDelete ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void
generator ILGenerator The generator to output the CIL to.
optimizationInfo OptimizationInfo Information about any optimizations that should be performed.
리턴 void

GenerateGet() 공개 메소드

Pushes the value of the reference onto the stack.
public GenerateGet ( ILGenerator generator, OptimizationInfo optimizationInfo, bool throwIfUnresolvable ) : void
generator ILGenerator The generator to output the CIL to.
optimizationInfo OptimizationInfo Information about any optimizations that should be performed.
throwIfUnresolvable bool true to throw a ReferenceError exception if /// the name is unresolvable; false to output null instead.
리턴 void

GenerateReference() 공개 메소드

Outputs the values needed to get or set this reference.
public GenerateReference ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void
generator ILGenerator The generator to output the CIL to.
optimizationInfo OptimizationInfo Information about any optimizations that should be performed.
리턴 void

GenerateSet() 공개 메소드

Stores the value on the top of the stack in the reference.
public GenerateSet ( ILGenerator generator, OptimizationInfo optimizationInfo, PrimitiveType valueType, bool throwIfUnresolvable ) : void
generator ILGenerator The generator to output the CIL to.
optimizationInfo OptimizationInfo Information about any optimizations that should be performed.
valueType PrimitiveType The primitive type of the value that is on the top of the stack.
throwIfUnresolvable bool true to throw a ReferenceError exception if /// the name is unresolvable; false to create a new property instead.
리턴 void

MemberAccessExpression() 공개 메소드

Creates a new instance of MemberAccessExpression.
public MemberAccessExpression ( Jurassic.Compiler.Operator @operator )
@operator Jurassic.Compiler.Operator

ToString() 공개 메소드

Converts the expression to a string.
public ToString ( ) : string
리턴 string