C# Class Jurassic.Compiler.FunctionCallExpression

Represents a function call expression.
Inheritance: Jurassic.Compiler.OperatorExpression
Show file Open project: paulbartrum/jurassic

Public Methods

Method Description
FunctionCallExpression ( Jurassic.Compiler.Operator @operator ) : System.Collections.Generic

Creates a new instance of FunctionCallExpression.

GenerateCode ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void

Generates CIL for the expression.

Private Methods

Method Description
GenerateArgumentsArray ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void

Generates an array containing the argument values.

GenerateEval ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void

Generates CIL for a call to eval().

GenerateTemplateArgumentsArray ( ILGenerator generator, OptimizationInfo optimizationInfo, TemplateLiteralExpression templateLiteral ) : void

Generates an array containing the argument values for a tagged template literal.

Method Details

FunctionCallExpression() public method

Creates a new instance of FunctionCallExpression.
public FunctionCallExpression ( Jurassic.Compiler.Operator @operator ) : System.Collections.Generic
@operator Jurassic.Compiler.Operator
return System.Collections.Generic

GenerateCode() public method

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.
return void